diff --git a/src/index.test.js b/e2e/index.test.js similarity index 98% rename from src/index.test.js rename to e2e/index.test.js index 3b26b27..d37555b 100644 --- a/src/index.test.js +++ b/e2e/index.test.js @@ -3,7 +3,7 @@ import fs from 'fs'; import path from 'path'; import async from 'async'; -import nativefier from './index'; +import nativefier from '../src'; const PLATFORMS = ['darwin', 'linux']; tmp.setGracefulCleanup(); diff --git a/jest.config.js b/jest.config.js index 92d109f..25c9bac 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,3 @@ module.exports = { - testMatch: ['**/src/**/?(*.)(test).js?(x)'], testEnvironment: 'node', }; diff --git a/package.json b/package.json index 8a12c6b..3b21ae1 100644 --- a/package.json +++ b/package.json @@ -13,11 +13,12 @@ "scripts": { "dev-up": "npm install && (cd ./app && npm install) && npm run build", "dev-up-win": "npm install & cd app & npm install & cd .. & npm run build", - "test": "jest", + "test": "jest src", + "e2e": "jest e2e", "tdd": "gulp tdd", "lint": "eslint .", "lint:fix": "eslint . --fix", - "ci": "npm run lint && npm test", + "ci": "npm run lint && npm test && npm run e2e", "clean": "gulp clean", "build": "gulp build", "watch": "while true ; do gulp watch ; done",