Skip to content

Commit cfa1c4c

Browse files
refactor(tests): disable concurrent tests for weval runs
1 parent e736e43 commit cfa1c4c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/bindings.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ suite('Bindings', async () => {
1717
const bindingsCases = await readdir(new URL('./cases', import.meta.url));
1818

1919
for (const name of bindingsCases) {
20-
test.concurrent(name, async () => {
20+
const testFn = WEVAL_TEST_ENABLED ? test : test.concurrent;
21+
testFn(name, async () => {
2122
const source = await readFile(
2223
new URL(`./cases/${name}/source.js`, import.meta.url),
2324
'utf8',

test/builtins.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ suite('Builtins', async () => {
1919

2020
for (const filename of builtins) {
2121
const name = filename.slice(0, -3);
22-
test.concurrent(name, async () => {
22+
const testFn = WEVAL_TEST_ENABLED ? test : test.concurrent;
23+
testFn(name, async () => {
2324
const {
2425
source,
2526
test: runTest,

0 commit comments

Comments
 (0)