File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 44 no-undef
55*/
66const fs = require ( 'fs' ) ;
7- const path = require ( 'path' ) ;
7+ const { resolve } = require ( 'path' ) ;
88const testServer = require ( '../helpers/test-server' ) ;
99const reloadConfig = require ( '../fixtures/reload-config/webpack.config' ) ;
1010const runBrowser = require ( '../helpers/run-browser' ) ;
1111
12+ const cssFilePath = resolve ( __dirname , '../fixtures/reload-config/main.css' ) ;
13+
1214describe ( 'client progress' , ( ) => {
1315 describe ( 'using hot' , ( ) => {
14- const cssFilePath = path . resolve ( __dirname , '../temp/main.css' ) ;
1516 beforeAll ( ( done ) => {
1617 fs . writeFileSync (
1718 cssFilePath ,
@@ -47,6 +48,7 @@ describe('client progress', () => {
4748 ) ;
4849 page . waitFor ( 10000 ) . then ( ( ) => {
4950 expect ( res . includes ( '[WDS] 0% - compiling.' ) ) . toBeTruthy ( ) ;
51+ fs . unlinkSync ( cssFilePath ) ;
5052 browser . close ( ) . then ( done ) ;
5153 } ) ;
5254 } ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments