Skip to content

Commit

Permalink
Change jest config from js to json (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheiny authored Jun 22, 2018
1 parent d6c32fc commit 10ef22e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 38 deletions.
36 changes: 0 additions & 36 deletions jest.config.js

This file was deleted.

32 changes: 32 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"collectCoverage": true,
"collectCoverageFrom": [
"<rootDir>/src/**/*.ts"
],
"coveragePathIgnorePatterns": [
".*Tests\\.ts",
".*Spec\\.ts",
"index.ts",
"src/quantity/.*"
],
"coverageThreshold": {
"global": {
"branches": 95,
"functions": 95,
"lines": 95,
"statements": 95
}
},
"globals": {
"ts-jest": {
"tsConfigFile": "src/tsconfig.json"
}
},
"moduleFileExtensions": ["js", "json", "ts"],
"testEnvironment": "jsdom",
"testMatch": ["<rootDir>/src/**/__test__/**/*Tests.ts"],
"transform": {
"^.+\\.ts$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"verbose": true
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"build": "npm-run-all -s codegen compile:src",
"codegen": "npm-run-all -s compile:codegen node:codegen",
"compile:src": "tsc -p src",
"compile:codegen": "tsc -p codegen",
"lint": "tslint -p src/tsconfig.json -c tslint.json '{src,codegen}/**/*.ts'",
"lint:fix": "yarn lint --fix",
"node:codegen": "node codegen/dist/emit",
"test": "jest --config jest.config.js",
"verify": "npm-run-all -s codegen compile:src lint test"
"test": "jest --config jest.config.json",
"verify": "npm-run-all -s build lint test"
},
"devDependencies": {
"@types/jest": "^22.2.3",
Expand Down

0 comments on commit 10ef22e

Please sign in to comment.