Skip to content

Commit

Permalink
Question: Añadido jest config correcto
Browse files Browse the repository at this point in the history
  • Loading branch information
Etihw32 authored Mar 9, 2025
1 parent b20c5ea commit ba8518c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions questions/jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/

const testEnvironment = "node";
const transform = { "^.+.tsx?$": ["ts-jest",{}] }

module.exports = {
preset: 'ts-jest', // Usa el preset ts-jest
testEnvironment: 'node',
transform: {
'^.+\\.ts$': 'ts-jest',
},
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json', // Usa tu archivo tsconfig.json
},
},

};

0 comments on commit ba8518c

Please sign in to comment.