Skip to content

Commit

Permalink
fix(tests): ensure all tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock committed Jan 6, 2025
1 parent a1c4f9e commit 38795ec
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.

This file was deleted.

16 changes: 16 additions & 0 deletions lambdas/user-list-search-corpus-parser-hydration/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { Config } from 'jest';

const config: Config = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|integration).ts'],
testPathIgnorePatterns: ['/dist/'],
setupFiles: ['./jest.setup.ts'],
displayName: 'corpus-parser-hyration-lambda',
moduleNameMapper: {
"^(\\.\\/.+)\\.js$": "$1",
"^(\\..\\/.+)\\.js$": "$1"
},
};

export default config;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"outDir": "dist",
"rootDir": "src"
},
"exclude": ["node_modules", "jest.config.js", "jest.setup.js"],
"exclude": ["node_modules", "jest.config.ts", "jest.setup.ts"],
"include": ["src/**/*.ts"]
}
1 change: 1 addition & 0 deletions packages/ts-logger/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const config: Config = {
testEnvironment: 'node',
testMatch: ['**/?(*.)+(jest|spec).[jt]s?(x)'],
testPathIgnorePatterns: ['/dist/'],
setupFiles: ['./jest.setup.ts'],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/ts-logger/jest.setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
process.env.NODE_ENV = undefined;

0 comments on commit 38795ec

Please sign in to comment.