continue-custom/core/jest.config.js
Patrick Erichsen d7dbdfff48
feat: configure docs through config.json (#1864)
* feat: configure docs through config.json

* use correct baseUrl column

* add/remove docs through config.json

* add favicon

* add advanced section in form

* update package authors

* index all using sqlite

* use pre indexed doc

* refresh submenu on save

* setup tests

* stash apply

* update tests

* create singleton

* remove unused code

* fix migration err

* remove unused code

* bugfix: isPreindexedDoc
2024-08-01 16:56:27 -07:00

22 lines
681 B
JavaScript

import path from "path";
import { fileURLToPath } from "url";
export default {
transform: {
"^.+\\.(ts|js)$": ["ts-jest", { useESM: true, useIsolatedModules: true }],
},
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
"^uuid$": "uuid", // https://stackoverflow.com/a/73626360
},
extensionsToTreatAsEsm: [".ts"],
preset: "ts-jest/presets/default-esm",
testTimeout: 10000,
testEnvironment: "node",
globals: {
__dirname: path.dirname(fileURLToPath(import.meta.url)),
__filename: path.resolve(fileURLToPath(import.meta.url)),
},
globalSetup: "<rootDir>/jest.global-setup.ts",
setupFilesAfterEnv: ["<rootDir>/jest.setup-after-env.ts"],
};