mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
ts-jest transformer for typescript files
This commit is contained in:
parent
c3a572b816
commit
30d69b1ee5
1 changed files with 3 additions and 5 deletions
|
|
@ -5,10 +5,10 @@ module.exports = {
|
|||
testEnvironment: "node",
|
||||
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
|
||||
testEnvironmentOptions: {
|
||||
NODE_ENV: "test"
|
||||
NODE_ENV: "test",
|
||||
},
|
||||
transform: {
|
||||
"^.+\\.tsx?$": [
|
||||
"^.+\\\\.(ts | tsx)$": [
|
||||
"ts-jest",
|
||||
{
|
||||
useESM: true,
|
||||
|
|
@ -18,9 +18,7 @@ module.exports = {
|
|||
moduleNameMapper: {
|
||||
"^(\\.{1,2}/.*)\\.js$": "$1",
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
'node_modules/(?!(@codeflash-ai)/)'
|
||||
],
|
||||
transformIgnorePatterns: ["node_modules/(?!(@codeflash-ai)/)"],
|
||||
extensionsToTreatAsEsm: [".ts", ".tsx"],
|
||||
testRegex: ".*\\.test\\.ts$",
|
||||
testPathIgnorePatterns: process.env.CI ? ["e2e.test.ts"] : [],
|
||||
|
|
|
|||
Loading…
Reference in a new issue