Skip to content

Commit e8eda57

Browse files
committed
chore(cli): restore to run snap-test parallel
1 parent 40d534a commit e8eda57

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

packages/tools/src/snap-test.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,19 @@ process.on('exit', () => fs.rmSync(tempTmpDir, { recursive: true, force: true })
3636
const casesDir = path.resolve('snap-tests');
3737

3838
const filter = process.argv[2] ?? ''; // Optional filter to run specific test cases
39-
const isCI = process.env.CI === 'true';
4039

4140
const tasks: Promise<void>[] = [];
4241
for (const caseName of fs.readdirSync(casesDir)) {
4342
if (caseName.startsWith('.')) continue; // Skip hidden files like .DS_Store
4443
if (caseName.includes(filter)) {
45-
if (isCI) {
46-
// FIXME: parallel run will cause panicked: Access tokio runtime failed in spawn, maybe related to napi-3.3.0/src/tokio_runtime.rs:113:6
47-
// see https://app.graphite.dev/github/pr/voidzero-dev/vite-plus/251/chore(cli)-restore-to-run-snap-test-parallel
48-
await runTestCase(caseName);
49-
} else {
50-
// let snap-test run faster on local machine
51-
tasks.push(runTestCase(caseName));
52-
}
44+
tasks.push(runTestCase(caseName));
5345
}
5446
}
5547

5648
if (tasks.length > 0) {
5749
await Promise.all(tasks);
5850
}
51+
5952
interface Steps {
6053
ignoredPlatforms?: string[];
6154
env: Record<string, string>;

0 commit comments

Comments
 (0)