cloudflare/cloudflare-typescript
Publicmirrored from https://github.com/cloudflare/cloudflare-typescriptAvailable
jest.config.ts
19lines · modeblame
2d51afdcstainless-app[bot]2 years ago | 1 | import type { JestConfigWithTsJest } from 'ts-jest'; |
| 2 | | |
| 3 | const config: JestConfigWithTsJest = { | |
| 4 | preset: 'ts-jest/presets/default-esm', | |
| 5 | testEnvironment: 'node', | |
| 6 | moduleNameMapper: { | |
| 7 | '^cloudflare$': '<rootDir>/src/index.ts', | |
| 8 | '^cloudflare/_shims/auto/(.*)$': '<rootDir>/src/_shims/auto/$1-node', | |
| 9 | '^cloudflare/(.*)$': '<rootDir>/src/$1', | |
| 10 | }, | |
| 11 | modulePathIgnorePatterns: [ | |
| 12 | '<rootDir>/ecosystem-tests/', | |
| 13 | '<rootDir>/dist/', | |
| 14 | '<rootDir>/deno/', | |
| 15 | '<rootDir>/deno_tests/', | |
| 16 | ], | |
| 17 | }; | |
| 18 | | |
| 19 | export default config; |