Skip to content

Commit

Permalink
SLSCMN-18 Node.js 20 (#18)
Browse files Browse the repository at this point in the history
* SLSCMN-18 use Node 20.11.1

* SLSCMN-18 upgrade deps

* SLSCMN-18 upgrade dependencies

* SLSCMN-18 package scripts

* SLSCMN-18 docs
  • Loading branch information
mwarman authored Feb 29, 2024
1 parent f6cf2d7 commit 290c266
Show file tree
Hide file tree
Showing 11 changed files with 1,326 additions and 952 deletions.
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

0 comments on commit 290c266

Please sign in to comment.