forked from nodejs/node-core-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): ensure all tests are run and fix failing ones (nodejs#33)
- Loading branch information
Showing
7 changed files
with
50 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env node | ||
|
||
import { once } from 'node:events' | ||
import { spawn } from 'node:child_process' | ||
import fs from 'node:fs/promises' | ||
import process from 'node:process' | ||
import { fileURLToPath } from 'node:url' | ||
|
||
const PARALLEL_DIR = new URL('./parallel/', import.meta.url) | ||
const dir = await fs.opendir(PARALLEL_DIR) | ||
|
||
for await (const { name } of dir) { | ||
if (!name.endsWith('.js')) continue | ||
const cp = spawn( | ||
process.execPath, | ||
[fileURLToPath(new URL(name, PARALLEL_DIR))], | ||
{ stdio: 'inherit' } | ||
) | ||
const [code] = await once(cp, 'exit') | ||
if (code) process.exit(code) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters