|
| 1 | +import assert from 'node:assert/strict' |
1 | 2 | import { spawn } from 'node:child_process' |
2 | 3 | import { createReadStream } from 'node:fs' |
3 | 4 | import { join } from 'node:path' |
4 | 5 | import { describe, it } from 'node:test' |
5 | | -import assert from 'node:assert/strict' |
6 | 6 |
|
7 | 7 | void describe('console-reporter', () => { |
8 | 8 | void it('should exit with code 0 if the previous process runs successfully', async () => { |
9 | 9 | const consoleReporter = spawn( |
10 | | - 'npx', |
11 | | - ['tsx', join('features', 'console-reporter.ts')], |
| 10 | + 'node', |
| 11 | + [ |
| 12 | + '--experimental-transform-types', |
| 13 | + '--no-warnings', |
| 14 | + join('features', 'console-reporter.ts'), |
| 15 | + ], |
12 | 16 | { |
13 | 17 | cwd: process.cwd(), |
14 | 18 | }, |
@@ -36,8 +40,12 @@ void describe('console-reporter', () => { |
36 | 40 |
|
37 | 41 | void it('should exit with code 1 if the previous process is failed', async () => { |
38 | 42 | const consoleReporter = spawn( |
39 | | - 'npx', |
40 | | - ['tsx', join('features', 'console-reporter.ts')], |
| 43 | + 'node', |
| 44 | + [ |
| 45 | + '--experimental-transform-types', |
| 46 | + '--no-warnings', |
| 47 | + join('features', 'console-reporter.ts'), |
| 48 | + ], |
41 | 49 | { |
42 | 50 | cwd: process.cwd(), |
43 | 51 | }, |
|
0 commit comments