File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -46,24 +46,6 @@ describe('frontend-webpack-project example', () => {
46
46
} ) ;
47
47
} ) ;
48
48
49
- it ( 'builds the project with header injection' , async ( ) => {
50
- await new Promise < void > ( ( done , reject ) => {
51
- webpack ( [ createOptions ( { headerInjection : true } ) ] , ( err , stats ) => {
52
- if ( err ) reject ( err ) ;
53
- if ( stats . hasErrors ( ) ) reject ( stats . toString ( ) ) ;
54
-
55
- const { children } = stats . toJson ( ) ;
56
- const [ { modules = [ ] } ] = children || [ ] ;
57
-
58
- expect (
59
- modules . some ( ( { source } ) => source ?. includes ( 'const configValue = undefined;' ) ) ,
60
- ) . toBe ( true ) ;
61
-
62
- done ( ) ;
63
- } ) ;
64
- } ) ;
65
- } ) ;
66
-
67
49
it ( 'reads environment variable for app-config' , async ( ) => {
68
50
process . env . APP_CONFIG = JSON . stringify ( { externalApiUrl : 'https://localhost:3999' } ) ;
69
51
You can’t perform that action at this time.
0 commit comments