feat: add snjs package
This commit is contained in:
37
packages/snjs/jest.config.js
Normal file
37
packages/snjs/jest.config.js
Normal file
@@ -0,0 +1,37 @@
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
||||
|
||||
module.exports = {
|
||||
...base,
|
||||
moduleNameMapper: {
|
||||
'@Lib/(.*)': '<rootDir>/lib/$1',
|
||||
'@Services/(.*)': '<rootDir>/lib/Services/$1',
|
||||
},
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
tsconfig: '<rootDir>/lib/tsconfig.json',
|
||||
isolatedModules: true,
|
||||
babelConfig: 'babel.config.js',
|
||||
},
|
||||
},
|
||||
clearMocks: true,
|
||||
collectCoverageFrom: ['lib/**/{!(index),}.ts'],
|
||||
coverageDirectory: 'coverage',
|
||||
coverageReporters: ['json', 'text', 'html'],
|
||||
resetMocks: true,
|
||||
resetModules: true,
|
||||
roots: ['<rootDir>/lib'],
|
||||
setupFiles: ['<rootDir>/jest-global.ts'],
|
||||
setupFilesAfterEnv: [],
|
||||
transform: {
|
||||
'^.+\\.(ts|js)?$': 'ts-jest',
|
||||
},
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
branches: 13,
|
||||
functions: 22,
|
||||
lines: 27,
|
||||
statements: 28,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user