File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 4
4
no-undef
5
5
*/
6
6
const fs = require ( 'fs' ) ;
7
- const path = require ( 'path' ) ;
7
+ const { resolve } = require ( 'path' ) ;
8
8
const testServer = require ( '../helpers/test-server' ) ;
9
9
const reloadConfig = require ( '../fixtures/reload-config/webpack.config' ) ;
10
10
const runBrowser = require ( '../helpers/run-browser' ) ;
11
11
12
+ const cssFilePath = resolve ( __dirname , '../fixtures/reload-config/main.css' ) ;
13
+
12
14
describe ( 'client progress' , ( ) => {
13
15
describe ( 'using hot' , ( ) => {
14
- const cssFilePath = path . resolve ( __dirname , '../temp/main.css' ) ;
15
16
beforeAll ( ( done ) => {
16
17
fs . writeFileSync (
17
18
cssFilePath ,
@@ -47,6 +48,7 @@ describe('client progress', () => {
47
48
) ;
48
49
page . waitFor ( 10000 ) . then ( ( ) => {
49
50
expect ( res . includes ( '[WDS] 0% - compiling.' ) ) . toBeTruthy ( ) ;
51
+ fs . unlinkSync ( cssFilePath ) ;
50
52
browser . close ( ) . then ( done ) ;
51
53
} ) ;
52
54
} ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments