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' ;
22import { spawn } from 'child_process' ;
33import { execPath } from 'process' ;
44
55
66// 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
88
99const child = spawn ( execPath , [
10- '--experimental- loader' ,
10+ '--loader' ,
1111 './loader.js' ,
1212 './fixtures/index.js'
1313] ) ;
@@ -20,6 +20,6 @@ child.stdout.on('data', (data) => {
2020
2121child . on ( 'close' , ( code , signal ) => {
2222 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 / ) ;
2525} ) ;
You can’t perform that action at this time.
0 commit comments