Skip to content

Commit

Permalink
test(client): fixed progress test css path
Browse files Browse the repository at this point in the history
  • Loading branch information
knagaitsev committed Jun 8, 2019
1 parent 3cdf809 commit 57b97e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions test/e2e/Progress.test.js
Expand Up @@ -4,14 +4,15 @@
no-undef
*/
const fs = require('fs');
const path = require('path');
const { resolve } = require('path');
const testServer = require('../helpers/test-server');
const reloadConfig = require('../fixtures/reload-config/webpack.config');
const runBrowser = require('../helpers/run-browser');

const cssFilePath = resolve(__dirname, '../fixtures/reload-config/main.css');

describe('client progress', () => {
describe('using hot', () => {
const cssFilePath = path.resolve(__dirname, '../temp/main.css');
beforeAll((done) => {
fs.writeFileSync(
cssFilePath,
Expand Down Expand Up @@ -47,6 +48,7 @@ describe('client progress', () => {
);
page.waitFor(10000).then(() => {
expect(res.includes('[WDS] 0% - compiling.')).toBeTruthy();
fs.unlinkSync(cssFilePath);
browser.close().then(done);
});
});
Expand Down
3 changes: 0 additions & 3 deletions test/temp/main.css

This file was deleted.

0 comments on commit 57b97e6

Please sign in to comment.