Skip to content

Commit

Permalink
fix(test script): to make it work on windows too
Browse files Browse the repository at this point in the history
  • Loading branch information
mastertheblaster committed May 21, 2019
1 parent d9fb929 commit 33cc366
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
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": "WITH_EYES_TIMEOUT=120000 yoshi test",
"test": "yoshi test",
"posttest": "yoshi lint",
"release": "yoshi release"
},
Expand Down
17 changes: 7 additions & 10 deletions test/e2e/render.e2e.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
import {expect} from 'chai';
import puppeteer from 'puppeteer';
import {eyes} from 'with-eyes';
process.env.WITH_EYES_TIMEOUT = 120000;

import renderEmail from './render-email';
const {expect} = require('chai');
const puppeteer = require('puppeteer');
const {eyes} = require('with-eyes');

describe('mjml-react', () => {
const renderEmail = require('./render-email').default;

describe('mjml-react', () => {
let browser;
let page;

before(async () => {
browser = await puppeteer.launch({
args: [
'--no-sandbox',
'--disable-setuid-sandbox'
],
args: ['--no-sandbox', '--disable-setuid-sandbox'],
devtools: false,
headless: false
});
Expand Down Expand Up @@ -46,7 +44,6 @@ describe('mjml-react', () => {
await eyes.checkImage(await page.screenshot({fullPage: true}), 'mobile');
});
});

});

function htmlToDataUri(html) {
Expand Down

0 comments on commit 33cc366

Please sign in to comment.