Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow committed Nov 6, 2022
1 parent 1af671b commit 49ad862
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/parallel/test-runner-run-watch-mode.mjs
@@ -0,0 +1,19 @@
import * as common from '../common/index.mjs';
import * as fixtures from '../common/fixtures.mjs';
import { join } from 'node:path';
import { describe, it, run } from 'node:test';
import assert from 'node:assert';

const testFixtures = fixtures.path('test-runner');

describe('test runner watch mode', { concurrency: true }, () => {

it('should run a test repeatedly when its dependencies change', async () => {
const stream = run({ files: [] });
stream.setEncoding('utf8');
stream.on('test:fail', common.mustNotCall());
stream.on('test:pass', common.mustNotCall());
// eslint-disable-next-line no-unused-vars
for await (const _ of stream); // TODO(MoLow): assert.snapshot
});
});

0 comments on commit 49ad862

Please sign in to comment.