Skip to content

Commit 88b6f90

Browse files
committed
Only use Babel for Jest
1 parent 1b1a141 commit 88b6f90

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.babelrc

-3
This file was deleted.
File renamed without changes.

jest.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
/** @type {import('ts-jest').JestConfigWithTsJest} **/
1+
/** @type {import("ts-jest").JestConfigWithTsJest} **/
22
module.exports = {
33
testEnvironment: "node",
44
preset: "ts-jest",
55
moduleNameMapper: {
6-
'^@/(.*)$': '<rootDir>/src/$1',
6+
"^@/(.*)$": "<rootDir>/src/$1",
77
},
88
setupFilesAfterEnv: ["./src/test/dbMock.ts", "./src/test/authMock.ts"],
99
transform: {
10-
'^.+\\.(ts|tsx)?$': 'ts-jest',
11-
'^.+\\.(js|jsx)$': 'babel-jest',
10+
"^.+\\.(ts|tsx)?$": "ts-jest",
11+
"^.+\\.(js|jsx)$": ["babel-jest", { "configFile": "./babel.config.jest.js" }],
1212
},
1313
transformIgnorePatterns: [
1414
"node_modules/(?!@auth)/"

0 commit comments

Comments
 (0)