Download sdk/typescript/jest.config.cjs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 838 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/sdk/typescript/jest.config.cjs
- Command line
-
hf download hf://SaylorTwift/codex/sdk/typescript/jest.config.cjs
-
curl -L -o jest.config.cjs https://huggingface.co/SaylorTwift/codex/resolve/main/sdk/typescript/jest.config.cjs
838 Bytes
| /** @type {import('jest').Config} */ | |
| module.exports = { | |
| preset: "ts-jest/presets/default-esm", | |
| testEnvironment: "node", | |
| extensionsToTreatAsEsm: [".ts"], | |
| setupFilesAfterEnv: ["<rootDir>/tests/setupCodexHome.ts"], | |
| moduleNameMapper: { | |
| "^(\\.{1,2}/.*)\\.js$": "$1", | |
| }, | |
| testMatch: ["**/tests/**/*.test.ts"], | |
| transform: { | |
| "^.+\\.tsx?$": [ | |
| "ts-jest", | |
| { | |
| useESM: true, | |
| tsconfig: "tsconfig.json", | |
| diagnostics: { | |
| ignoreCodes: [1343], | |
| }, | |
| astTransformers: { | |
| before: [ | |
| { | |
| path: "ts-jest-mock-import-meta", | |
| // Workaround for meta.url not working in jest | |
| options: { metaObjectReplacement: { url: "file://" + __dirname + "/dist/index.js" } }, | |
| }, | |
| ], | |
| }, | |
| }, | |
| ], | |
| }, | |
| }; | |