Skip to content

Commit

Permalink
Created separate file for jest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschwendener committed May 22, 2018
1 parent 57a13c9 commit 0e811e1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
12 changes: 12 additions & 0 deletions jest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"verbose": true,
"testRegex": "((test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"js",
"json"
]
}
22 changes: 5 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"description": "A cross-platform alt+space launcher",
"main": "./build/main.js",
"scripts": {
"build": "webpack",
"build:watch": "webpack --watch",
"build": "./node_modules/.bin/webpack",
"build:watch": "./node_modules/.bin/webpack --watch",
"start": "./node_modules/.bin/electron . --enable-logging",
"lint": "./node_modules/.bin/tslint src/**/*.ts",
"test:unit": "./node_modules/.bin/jest --silent ./src/tests/unit",
"test:integration": "./node_modules/.bin/jest --silent ./src/tests/integration",
"test:all": "./node_modules/.bin/jest --silent ./src/tests",
"test:unit": "./node_modules/.bin/jest --config jest.json --silent ./src/tests/unit",
"test:integration": "./node_modules/.bin/jest --config jest.json --silent ./src/tests/integration",
"test:all": "./node_modules/.bin/jest --config jest.json --silent ./src/tests",
"coverage": "./node_modules/.bin/coveralls < ./coverage/lcov.info",
"package:publish": "./node_modules/.bin/electron-builder --config electron-builder-config.yml --publish onTag",
"package": "./node_modules/.bin/electron-builder --dir --config electron-builder-config.yml --publish never"
Expand All @@ -27,18 +27,6 @@
"pre-push": "yarn lint && yarn test:all && yarn build"
}
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"verbose": true,
"testRegex": "((test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"js",
"json"
]
},
"devDependencies": {
"@types/electron-is-dev": "^0.3.0",
"@types/jest": "^22.1.3",
Expand Down

0 comments on commit 0e811e1

Please sign in to comment.