diff options
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..46d2e51 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,17 @@ +export default { + preset: 'ts-jest/presets/default-esm', + testEnvironment: 'node', + extensionsToTreatAsEsm: ['.ts'], + moduleNameMapper: { + '^@emprespresso/uptime$': '<rootDir>/lib/index.ts', + }, + transform: { + '^.+\\.ts$': [ + 'ts-jest', + { + useESM: true, + }, + ], + }, + testMatch: ['**/tst/**/*.test.ts'], +}; |