File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/node/test/manual/webpack-domain Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const path = require('path');
2
2
const webpack = require ( 'webpack' ) ;
3
3
const { execSync } = require ( 'child_process' ) ;
4
4
5
+ // prettier-ignore
5
6
webpack (
6
7
{
7
8
entry : './index.js' ,
@@ -12,7 +13,7 @@ webpack(
12
13
target : 'node' ,
13
14
mode : 'development' ,
14
15
} ,
15
- ( err , stats ) => {
16
+ function ( err , stats ) {
16
17
if ( err ) {
17
18
console . error ( err . stack || err ) ;
18
19
if ( err . details ) {
@@ -32,14 +33,13 @@ webpack(
32
33
console . warn ( info . warnings ) ;
33
34
process . exit ( 1 ) ;
34
35
}
35
-
36
36
runTests ( ) ;
37
- } ,
37
+ }
38
38
) ;
39
39
40
40
function runTests ( ) {
41
41
try {
42
- execSync ( ` node ${ path . resolve ( __dirname , 'dist' , 'bundle.js' ) } ` ) ;
42
+ execSync ( ' node ' + path . resolve ( __dirname , 'dist' , 'bundle.js' ) ) ;
43
43
} catch ( _ ) {
44
44
process . exit ( 1 ) ;
45
45
}
You can’t perform that action at this time.
0 commit comments