Skip to content

Commit

Permalink
fix: test failing
Browse files Browse the repository at this point in the history
  • Loading branch information
Banidja committed Nov 1, 2024
1 parent fb00d47 commit afcb7c3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
23 changes: 11 additions & 12 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js'],
testMatch: ['**/test/**/*.test.ts'],
globals: {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'json', 'node'],
testMatch: ['**/test/**/*.test.ts'],
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
tsconfig: 'tsconfig.json',
},
},
};

},
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": "Branislav Jaksic",
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/jest": "^29.5.14",
"@types/node": "^22.5.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"extends": "./tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist/test"
"outDir": "./dist/test",
"rootDir": "./"
},
"include": [
"src/**/*",
"test/**/*"
],
"exclude": [
Expand Down

0 comments on commit afcb7c3

Please sign in to comment.