@@ -3,7 +3,7 @@ import * as fixtures from '../common/fixtures.mjs';
33import { describe , it , run } from 'node:test' ;
44import { join } from 'node:path' ;
55
6- const testFixtures = fixtures . path ( 'test-runner' ) ;
6+ const testFixtures = fixtures . path ( 'test-runner' , 'plan' ) ;
77
88describe ( 'input validation' , ( ) => {
99 it ( 'throws if options is not an object' , ( t ) => {
@@ -37,7 +37,7 @@ describe('input validation', () => {
3737describe ( 'test planning' , ( ) => {
3838 it ( 'should pass when assertions match plan' , async ( ) => {
3939 const stream = run ( {
40- files : [ join ( testFixtures , 'plan' , ' match.mjs') ]
40+ files : [ join ( testFixtures , 'match.mjs' ) ]
4141 } ) ;
4242
4343 stream . on ( 'test:fail' , common . mustNotCall ( ) ) ;
@@ -49,7 +49,7 @@ describe('test planning', () => {
4949
5050 it ( 'should fail when less assertions than planned' , async ( ) => {
5151 const stream = run ( {
52- files : [ join ( testFixtures , 'plan' , ' less.mjs') ]
52+ files : [ join ( testFixtures , 'less.mjs' ) ]
5353 } ) ;
5454
5555 stream . on ( 'test:fail' , common . mustCall ( 1 ) ) ;
@@ -61,7 +61,7 @@ describe('test planning', () => {
6161
6262 it ( 'should fail when more assertions than planned' , async ( ) => {
6363 const stream = run ( {
64- files : [ join ( testFixtures , 'plan' , ' more.mjs') ]
64+ files : [ join ( testFixtures , 'more.mjs' ) ]
6565 } ) ;
6666
6767 stream . on ( 'test:fail' , common . mustCall ( 1 ) ) ;
@@ -73,7 +73,7 @@ describe('test planning', () => {
7373
7474 it ( 'should handle plan with subtests correctly' , async ( ) => {
7575 const stream = run ( {
76- files : [ join ( testFixtures , 'plan' , ' subtest.mjs') ]
76+ files : [ join ( testFixtures , 'subtest.mjs' ) ]
7777 } ) ;
7878
7979 stream . on ( 'test:fail' , common . mustNotCall ( ) ) ;
@@ -85,7 +85,7 @@ describe('test planning', () => {
8585
8686 it ( 'should handle plan via options' , async ( ) => {
8787 const stream = run ( {
88- files : [ join ( testFixtures , 'plan' , 'plan -via-options.mjs') ]
88+ files : [ join ( testFixtures , 'plan-via-options.mjs' ) ]
8989 } ) ;
9090
9191 stream . on ( 'test:fail' , common . mustCall ( 1 ) ) ;
@@ -97,7 +97,7 @@ describe('test planning', () => {
9797
9898 it ( 'should handle streaming with plan' , async ( ) => {
9999 const stream = run ( {
100- files : [ join ( testFixtures , 'plan' , ' streaming.mjs') ]
100+ files : [ join ( testFixtures , 'streaming.mjs' ) ]
101101 } ) ;
102102
103103 stream . on ( 'test:fail' , common . mustNotCall ( ) ) ;
@@ -109,7 +109,7 @@ describe('test planning', () => {
109109
110110 it ( 'should handle nested subtests with plan' , async ( ) => {
111111 const stream = run ( {
112- files : [ join ( testFixtures , 'plan' , ' nested-subtests.mjs') ]
112+ files : [ join ( testFixtures , 'nested-subtests.mjs' ) ]
113113 } ) ;
114114
115115 stream . on ( 'test:fail' , common . mustNotCall ( ) ) ;
@@ -122,7 +122,7 @@ describe('test planning', () => {
122122 describe ( 'with timeout' , ( ) => {
123123 it ( 'should handle basic timeout scenarios' , async ( ) => {
124124 const stream = run ( {
125- files : [ join ( testFixtures , 'plan' , ' timeout-basic.mjs') ]
125+ files : [ join ( testFixtures , 'timeout-basic.mjs' ) ]
126126 } ) ;
127127
128128 stream . on ( 'test:fail' , common . mustCall ( 1 ) ) ;
@@ -134,7 +134,7 @@ describe('test planning', () => {
134134
135135 it ( 'should fail when timeout expires before plan is met' , async ( t ) => {
136136 const stream = run ( {
137- files : [ join ( testFixtures , 'plan' , ' timeout-expired.mjs') ]
137+ files : [ join ( testFixtures , 'timeout-expired.mjs' ) ]
138138 } ) ;
139139
140140 stream . on ( 'test:fail' , common . mustCall ( 1 ) ) ;
@@ -146,7 +146,7 @@ describe('test planning', () => {
146146
147147 it ( 'should handle wait:true option specifically' , async ( ) => {
148148 const stream = run ( {
149- files : [ join ( testFixtures , 'plan' , ' timeout-wait-true.mjs') ]
149+ files : [ join ( testFixtures , 'timeout-wait-true.mjs' ) ]
150150 } ) ;
151151
152152 stream . on ( 'test:fail' , common . mustCall ( 1 ) ) ;
@@ -158,7 +158,7 @@ describe('test planning', () => {
158158
159159 it ( 'should handle wait:false option (should not wait)' , async ( ) => {
160160 const stream = run ( {
161- files : [ join ( testFixtures , 'plan' , ' timeout-wait-false.mjs') ]
161+ files : [ join ( testFixtures , 'timeout-wait-false.mjs' ) ]
162162 } ) ;
163163
164164 stream . on ( 'test:fail' , common . mustCall ( 1 ) ) ; // Fails because plan is not met immediately
0 commit comments