jest.config.js
module.exports = {
preset: "ts-jest",
moduleFileExtensions: [
"ts",
"js"
],
testMatch: [
"**/__tests__/**/*.spec.ts"
],
roots: ['<rootDir>'],
transform: {
".ts": "ts-jest",
'^.+\\.{ts|tsx}?$': ['ts-jest', {
compiler: "ttypescript",
transformIgnorePatterns: ['^.+\\\\.js$']
}]
}
};