Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.17.1
20.11.1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A suite of common components used to compose serverless application components f

This library requires the following:

- Node >= 18.17.x
- Node >= 20.11.x

## Install

Expand Down
28 changes: 14 additions & 14 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export default {
// Make calling deprecated APIs throw helpful error messages
// errorOnDeprecated: false,

extensionsToTreatAsEsm: ['.ts'],

// The default configuration for fake timers
// fakeTimers: {
// "enableGlobally": false
Expand Down Expand Up @@ -86,15 +88,9 @@ export default {
// ],

// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
// moduleNameMapper: {
// '@fixtures/(.*)': '<rootDir>/src/__fixtures__/$1',
// '@errors/(.*)': '<rootDir>/src/errors/$1',
// '@handlers/(.*)': '<rootDir>/src/handlers/$1',
// '@middleware/(.*)': '<rootDir>/src/middleware/$1',
// '@models/(.*)': '<rootDir>/src/models/$1',
// '@services/(.*)': '<rootDir>/src/services/$1',
// '@utils/*': '<rootDir>/src/utils/$1',
// },
moduleNameMapper: {
'^@middy$': '<rootDir>/node_modules/@middy',
},

// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
// modulePathIgnorePatterns: [],
Expand Down Expand Up @@ -179,13 +175,17 @@ export default {
// testRunner: "jest-circus/runner",

// A map from regular expressions to paths to transformers
// transform: undefined,
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
useESM: true,
},
],
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
// "/node_modules/",
// "\\.pnp\\.[^\\/]+$"
// ],
transformIgnorePatterns: ['/node_modules/(?!(@middy)/)'],

// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
// unmockedModulePathPatterns: undefined,
Expand Down
Loading