Skip to content

Commit b54ffe8

Browse files
committed
test(client): fixed progress test css path
1 parent a06dd1b commit b54ffe8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

test/e2e/Progress.test.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
no-undef
55
*/
66
const fs = require('fs');
7-
const path = require('path');
7+
const { resolve } = require('path');
88
const testServer = require('../helpers/test-server');
99
const reloadConfig = require('../fixtures/reload-config/webpack.config');
1010
const runBrowser = require('../helpers/run-browser');
1111

12+
const cssFilePath = resolve(__dirname, '../fixtures/reload-config/main.css');
13+
1214
describe('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
});

test/temp/main.css

-3
This file was deleted.

0 commit comments

Comments
 (0)