Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit f4c1724

Browse files
committed
All browsers in parallel
1 parent 8973dcc commit f4c1724

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/parallel.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { spawn } from 'child_process'
2+
3+
const exec = (browser = 'chromium') => {
4+
spawn('node', ['node_modules/.bin/jest'], {
5+
stdio: 'inherit',
6+
shell: true,
7+
env: {
8+
...process.env,
9+
BROWSER: browser,
10+
},
11+
})
12+
}
13+
14+
exec()
15+
exec('firefox')
16+
exec('webkit')

0 commit comments

Comments
 (0)