File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 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+ } ) ;
You can’t perform that action at this time.
0 commit comments