summaryrefslogtreecommitdiff
path: root/jest.config.js
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-08-17 23:50:24 -0700
committerElizabeth Hunt <me@liz.coffee>2025-08-17 23:53:38 -0700
commit1a4fc9535a89b58e8b67c8996ade0b833116af3a (patch)
treed16f3129d7bb69f204bba8422e909354195a0042 /jest.config.js
parent157dc327e8fe63541b517cfbeeaf202a3e8553a5 (diff)
downloaduptime-1a4fc9535a89b58e8b67c8996ade0b833116af3a.tar.gz
uptime-1a4fc9535a89b58e8b67c8996ade0b833116af3a.zip
Move to pengueno.
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js17
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'],
+};