diff options
| author | Fuwn <[email protected]> | 2022-03-24 05:39:37 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-24 05:39:37 -0700 |
| commit | 020762b7cc2bbd7f09a792e744dc4e0c5eaab9eb (patch) | |
| tree | b918ed69978e962dbbb3f5a87b902a54cb616443 /jest.config.cjs | |
| download | node-senpy-020762b7cc2bbd7f09a792e744dc4e0c5eaab9eb.tar.xz node-senpy-020762b7cc2bbd7f09a792e744dc4e0c5eaab9eb.zip | |
feat: 0.1.0 :star:
Diffstat (limited to 'jest.config.cjs')
| -rw-r--r-- | jest.config.cjs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/jest.config.cjs b/jest.config.cjs new file mode 100644 index 0000000..78e8391 --- /dev/null +++ b/jest.config.cjs @@ -0,0 +1,15 @@ +module.exports = { + preset: "ts-jest/presets/default-esm", + extensionsToTreatAsEsm: [".ts"], + globals: { + "ts-jest": { + useESM: true + } + }, + moduleNameMapper: { + "^(\\.{1,2}/.*)\\.js$": "$1" + }, + transform: { + "\\.[jt]sx?$": "ts-jest" + } +}; |