Skip to content

Commit

Permalink
test(client): check end of progress updates in console
Browse files Browse the repository at this point in the history
  • Loading branch information
knagaitsev committed Jun 14, 2019
1 parent 3e06e8d commit 20b2310
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/e2e/Progress.test.js
Expand Up @@ -48,11 +48,8 @@ describe('client progress', () => {
);
page.waitFor(10000).then(() => {
browser.close().then(() => {
// example output that would match:
// "[WDS] 40% - building (0/1 modules)."
const testExp = /\[WDS\] [0-9]{1,3}% - building \([0-1]\/1 modules\)\./;
const match = res.find((line) => {
return testExp.test(line);
return line === '[WDS] 100% - Compilation completed.';
});
// eslint-disable-next-line no-undefined
expect(match).not.toEqual(undefined);
Expand Down

0 comments on commit 20b2310

Please sign in to comment.