mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
af89e9ac30
* test(core): add ut for app add ut for app * fix(jest): remove jest setup remove jest setup * fix(ut): mock env viriables mock env viriables * refactor(ut): add env variable test utils add env variable test util * fix(core): fix rebase issue fix rebase issue * fix(ut): update app ut update app ut * fix(core): remove supertest dependency remove supertest * fix(ut): cr fix cr fix
17 lines
508 B
JavaScript
17 lines
508 B
JavaScript
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
setupFilesAfterEnv: ['jest-matcher-specific-error'],
|
|
globals: {
|
|
'ts-jest': {
|
|
tsconfig: 'tsconfig.test.json',
|
|
},
|
|
},
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'^jose/(.*)$': '<rootDir>/node_modules/jose/dist/node/cjs/$1',
|
|
},
|
|
coveragePathIgnorePatterns: ['/node_modules/', '/build/'],
|
|
coverageReporters: ['text-summary', 'lcov'],
|
|
};
|