-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Wouter Termont <woutermont@gmail.com>
- Loading branch information
1 parent
2a9fe60
commit 595afac
Showing
4 changed files
with
64 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
|
||
module.exports = { | ||
//bail: 1, // set to stop testing after N failures | ||
//clearMocks: true, // set to run jest.clearAllMocks() before each test | ||
collectCoverage: true, | ||
collectCoverageFrom: [ | ||
"**/*.{ts,js}", | ||
"!public-api.ts", | ||
"!node_modules", | ||
"!dist" | ||
], | ||
coverageDirectory: "<rootDir>/../", // since current reporters only output json summary | ||
coverageProvider: "babel", // maybe change to v8 for speed, if it detects full coverage good enough | ||
coverageReporters: [ "json-summary", "text-summary", "text" ], // disabled json, lcov and clover reporters | ||
errorOnDeprecated: true, | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: { | ||
//"allowJs": true, | ||
//"allowUnreachableCode": true, | ||
"baseUrl": "<rootDir>/", | ||
//"checkJs": true, | ||
//"composite": true, | ||
"declaration": false, // differs from tsconfig | ||
//"declarationMap": true, | ||
"downlevelIteration": true, | ||
//"emitDecoratorMetadata": true, | ||
"esModuleInterop": true, | ||
"experimentalDecorators": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"importHelpers": true, | ||
"inlineSourceMap": true, // differs from tsconfig | ||
"inlineSources": true, // differs from tsconfig | ||
"module": "es2020", // differs from tsconfig; switch to es2020 in v27 | ||
"moduleResolution": "node", | ||
//"newLine": "LF", | ||
"noFallthroughCasesInSwitch": true, | ||
//"noImplicitOverride": true, | ||
"noImplicitReturns": true, | ||
//"noPropertyAccessFromIndexSignature": true, | ||
//"noUncheckedIndexedAccess": true, | ||
//"noUnusedLocals": true, | ||
//"noUnusedParameters": true, | ||
"outDir": "<rootDir>/dist", | ||
"sourceMap": false, // differs from tsconfig | ||
"strict": false, // differs from tsconfig; should be true ! | ||
"target": "es2020" | ||
} | ||
}, | ||
}, | ||
moduleFileExtensions: [ "ts", "js" ], | ||
preset: "ts-jest", | ||
// resetMocks: true, // set to run jest.resetAllMocks() before each test | ||
// restoreMocks: true, // set to run jest.restoreAllMocks() before each test | ||
testMatch: [ "**/*.spec.ts" ], | ||
// testTimeout: 300000, | ||
transform: { | ||
'^.+\\.ts?$': 'ts-jest' | ||
}, | ||
// verbose: true, | ||
}; |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters