updates jest.config.ts and tsconfig.json to get dependencies on tests
This commit is contained in:
@ -3,12 +3,14 @@ import type { Config } from 'jest';
|
||||
const config: Config = {
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node',
|
||||
roots: ['<rootDir>/src'],
|
||||
testMatch: ['**/__tests__/**/*.test.ts'],
|
||||
extensionsToTreatAsEsm: ['.ts'],
|
||||
transform: {
|
||||
'^.+\\.ts$': ['ts-jest', { useESM: true }],
|
||||
'^.+\.ts$': ['ts-jest', { useESM: true }],
|
||||
},
|
||||
moduleNameMapper: {
|
||||
'^(\\.{1,2}/.*)\\.js$': '$1',
|
||||
'^(\.{1,2}/.*)\.js$': '$1',
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user