File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
commonjs-extension-resolution-loader Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- import { ok } from 'assert' ;
1
+ import { match } from 'assert' ;
2
2
import { spawn } from 'child_process' ;
3
3
import { execPath } from 'process' ;
4
4
5
5
6
6
// Run this test yourself with debugging mode via:
7
- // node --inspect-brk --experimental- loader ./loader.js ./fixtures/index.js
7
+ // node --inspect-brk --loader ./loader.js ./fixtures/index.js
8
8
9
9
const child = spawn ( execPath , [
10
- '--experimental- loader' ,
10
+ '--loader' ,
11
11
'./loader.js' ,
12
12
'./fixtures/index.js'
13
13
] ) ;
@@ -20,6 +20,6 @@ child.stdout.on('data', (data) => {
20
20
21
21
child . on ( 'close' , ( code , signal ) => {
22
22
stdout = stdout . toString ( ) ;
23
- ok ( stdout . includes ( ' hello from file.js' ) ) ;
24
- ok ( stdout . includes ( ' hello from folder/index.js' ) ) ;
23
+ match ( stdout , / h e l l o f r o m f i l e \ .j s / ) ;
24
+ match ( stdout , / h e l l o f r o m f o l d e r \ /i n d e x \ .j s / ) ;
25
25
} ) ;
You can’t perform that action at this time.
0 commit comments