Skip to content

Commit 49ad862

Browse files
committed
tmp
1 parent 1af671b commit 49ad862

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import * as common from '../common/index.mjs';
2+
import * as fixtures from '../common/fixtures.mjs';
3+
import { join } from 'node:path';
4+
import { describe, it, run } from 'node:test';
5+
import assert from 'node:assert';
6+
7+
const testFixtures = fixtures.path('test-runner');
8+
9+
describe('test runner watch mode', { concurrency: true }, () => {
10+
11+
it('should run a test repeatedly when its dependencies change', async () => {
12+
const stream = run({ files: [] });
13+
stream.setEncoding('utf8');
14+
stream.on('test:fail', common.mustNotCall());
15+
stream.on('test:pass', common.mustNotCall());
16+
// eslint-disable-next-line no-unused-vars
17+
for await (const _ of stream); // TODO(MoLow): assert.snapshot
18+
});
19+
});

0 commit comments

Comments
 (0)