diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-07-27 17:03:10 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-07-27 18:30:30 -0700 |
commit | 9970036d203ba2d0a46b35ba6fad21d49441cdd4 (patch) | |
tree | a585d13933bf4149dcb07e28526063d071453105 /jest.config.js | |
download | pengueno-9970036d203ba2d0a46b35ba6fad21d49441cdd4.tar.gz pengueno-9970036d203ba2d0a46b35ba6fad21d49441cdd4.zip |
hai
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'], +}; |