Skip to content

Commit

Permalink
fix(timeout): of e2e tests
Browse files Browse the repository at this point in the history
and cleanup the previous eyes session
  • Loading branch information
mastertheblaster committed Feb 26, 2019
1 parent 7892952 commit c9308ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"scripts": {
"start": "yoshi start",
"pretest": "yoshi build",
"test": "yoshi test",
"test": "WITH_EYES_TIMEOUT=60000 yoshi test",
"posttest": "yoshi lint",
"release": "yoshi release"
},
Expand Down
1 change: 1 addition & 0 deletions test/e2e/render.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('mjml-react', () => {
});

after(() => browser.close());
afterEach(() => eyes.abortIfNotClosed());

const renderInBrowser = async viewPortOptions => {
page = await browser.newPage();
Expand Down

0 comments on commit c9308ca

Please sign in to comment.