(args = [], options = {})
| 110 | } |
| 111 | |
| 112 | function runProcess(args = [], options = {}) { |
| 113 | return spawnSync('node', [SCRIPT, ...args], { |
| 114 | cwd: options.cwd || path.join(__dirname, '..', '..'), |
| 115 | encoding: 'utf8', |
| 116 | stdio: ['pipe', 'pipe', 'pipe'], |
| 117 | timeout: 10000, |
| 118 | }); |
| 119 | } |
| 120 | |
| 121 | function test(name, fn) { |
| 122 | try { |