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