@@ -61,21 +61,6 @@ describeBuilder(buildApplication, APPLICATION_BUILDER_INFO, (harness) => {
6161 harness . expectFile ( 'dist/browser/polyfills.js' ) . content . toContain ( `console.log("main")` ) ;
6262 } ) ;
6363
64- it ( 'uses a provided file with a single quote in its path' , async ( ) => {
65- await harness . writeFile ( `src/dev's polyfills/polyfills.js` , `console.log('main');` ) ;
66-
67- harness . useTarget ( 'build' , {
68- ...BASE_OPTIONS ,
69- polyfills : [ `src/dev's polyfills/polyfills.js` ] ,
70- } ) ;
71-
72- const { result } = await harness . executeOnce ( ) ;
73-
74- expect ( result ?. success ) . toBe ( true ) ;
75-
76- harness . expectFile ( 'dist/browser/polyfills.js' ) . content . toContain ( `console.log("main")` ) ;
77- } ) ;
78-
7964 it ( 'fails and shows an error when file does not exist' , async ( ) => {
8065 harness . useTarget ( 'build' , {
8166 ...BASE_OPTIONS ,
@@ -104,5 +89,21 @@ describeBuilder(buildApplication, APPLICATION_BUILDER_INFO, (harness) => {
10489 } ) ;
10590 } ) ;
10691 }
92+
93+ it ( 'uses a provided file with a single quote in its path' , async ( ) => {
94+ await harness . writeFile ( 'src/main.ts' , 'console.log("TEST");' ) ;
95+ await harness . writeFile ( `src/dev's polyfills/polyfills.js` , `console.log('main');` ) ;
96+
97+ harness . useTarget ( 'build' , {
98+ ...BASE_OPTIONS ,
99+ polyfills : [ `src/dev's polyfills/polyfills.js` ] ,
100+ } ) ;
101+
102+ const { result } = await harness . executeOnce ( ) ;
103+
104+ expect ( result ?. success ) . toBe ( true ) ;
105+
106+ harness . expectFile ( 'dist/browser/polyfills.js' ) . content . toContain ( `console.log("main")` ) ;
107+ } ) ;
107108 } ) ;
108109} ) ;
0 commit comments