Skip to content

Commit

Permalink
build: 🔧 update jest.config for new ts-jest requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
djdembeck committed Sep 11, 2022
1 parent c1b4b8d commit 439bcbb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import type { Config } from '@jest/types'

const config: Config.InitialOptions = {
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tests/tsconfig.json'
}
},
moduleNameMapper: {
'#helpers/(.*)': '<rootDir>/src/helpers/$1',
'#config/(.*)': '<rootDir>/src/config/$1',
Expand All @@ -18,7 +13,12 @@ const config: Config.InitialOptions = {
roots: ['<rootDir>'],
testMatch: ['tests/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest'
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: '<rootDir>/tests/tsconfig.json'
}
]
}
}
export default config

0 comments on commit 439bcbb

Please sign in to comment.