Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/jest.config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'jest.config.ts')
-rw-r--r--jest.config.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/jest.config.ts b/jest.config.ts
new file mode 100644
index 0000000..8d3f65e
--- /dev/null
+++ b/jest.config.ts
@@ -0,0 +1,24 @@
+export default {
+ clearMocks: true,
+ moduleFileExtensions: ['js', 'ts'],
+ roots: ['<rootDir>'],
+ testEnvironment: 'node',
+ testMatch: ['**/*.test.ts'],
+ transform: {
+ '^.+\\.ts$': [
+ 'ts-jest',
+ {
+ useESM: true,
+ diagnostics: {
+ ignoreCodes: [151002]
+ }
+ }
+ ]
+ },
+ extensionsToTreatAsEsm: ['.ts'],
+ transformIgnorePatterns: ['node_modules/(?!(@actions)/)'],
+ moduleNameMapper: {
+ '^(\\.{1,2}/.*)\\.js$': '$1'
+ },
+ verbose: true
+}