@@ -14,13 +14,14 @@ const CHECK_CHUNKS = ["goodbye", "parent"] as const;
14
14
for ( const nodeVersion of [ 8 , 6 , 0.12 ] ) {
15
15
describe ( `Goodbye delay with node ${ nodeVersion } target` , function ( ) {
16
16
const outDir = join ( context , "dist" , `v${ nodeVersion } ` ) ;
17
- let compileProblems = "" ;
17
+ const configName = `goodbye-v${ nodeVersion } ` ;
18
+ let log : string | undefined ;
18
19
19
20
before ( "Run Webpack" , function ( done ) {
20
21
this . timeout ( "5s" ) ;
21
22
webpack (
22
23
{
23
- name : `goodbye-node ${ nodeVersion } ` ,
24
+ name : configName ,
24
25
context,
25
26
entry : Object . fromEntries (
26
27
ENTRY_NAMES . map ( ( name ) => [ name , `./src/${ name } .js` ] ) ,
@@ -43,16 +44,14 @@ for (const nodeVersion of [8, 6, 0.12]) {
43
44
node : false ,
44
45
} ,
45
46
( err , stats ) => {
46
- if ( stats ?. hasErrors ( ) ) {
47
- compileProblems = stats . toString ( "errors-only" ) ;
48
- }
47
+ log = stats ?. toString ( "errors-warnings" ) ;
49
48
done ( err ) ;
50
49
} ,
51
50
) ;
52
51
} ) ;
53
52
54
- it ( "Compiles without errors" , async function ( ) {
55
- expect ( compileProblems , compileProblems ) . to . be . empty ;
53
+ it ( "Compiles without errors or warnings " , async function ( ) {
54
+ expect ( log , log ) . to . equal ( ` ${ configName } compiled successfully` ) ;
56
55
} ) ;
57
56
58
57
for ( const name of CHECK_CHUNKS ) {
0 commit comments