Skip to content

Commit bc539ce

Browse files
Fix tests due to ESM Error - Not sure why
1 parent c51dcd4 commit bc539ce

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

lambdas/api-handler/jest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export const baseJestConfig = {
99
},
1010
],
1111
},
12+
transformIgnorePatterns: [
13+
"node_modules/(?!(@nhsdigital/nhs-notify-event-schemas-supplier-config)/)",
14+
],
1215

1316
// Automatically clear mock calls, instances, contexts and results before every test
1417
clearMocks: true,

lambdas/letter-updates-transformer/jest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export const baseJestConfig = {
99
},
1010
],
1111
},
12+
transformIgnorePatterns: [
13+
"node_modules/(?!(@nhsdigital/nhs-notify-event-schemas-supplier-config)/)",
14+
],
1215

1316
// Automatically clear mock calls, instances, contexts and results before every test
1417
clearMocks: true,

lambdas/mi-updates-transformer/jest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ export const baseJestConfig: Config = {
2626

2727
coveragePathIgnorePatterns: ["/__tests__/"],
2828
transform: { "^.+\\.ts$": "ts-jest" },
29+
transformIgnorePatterns: [
30+
"node_modules/(?!(@nhsdigital/nhs-notify-event-schemas-supplier-config)/)",
31+
],
2932
testPathIgnorePatterns: [".build"],
3033
testMatch: ["**/?(*.)+(spec|test).[jt]s?(x)"],
3134

0 commit comments

Comments
 (0)