* cleaner indexing progress updates messages * chunking tests * first round of testing for walkDir in .ts * few more tests * swap fs with ide * clean up dead code * replace traverseDirectory * fix listFolders * smoother indexing updates for chunking * ide pathSetp * absolute paths test * fix path sep error with abs paths on windows * clean up tests
22 lines
527 B
JavaScript
22 lines
527 B
JavaScript
import path from "path";
|
|
import { fileURLToPath } from "url";
|
|
|
|
process.env.NODE_OPTIONS = "--experimental-vm-modules";
|
|
|
|
export default {
|
|
transform: {
|
|
"\\.[jt]sx?$": ["ts-jest", { useESM: true }],
|
|
},
|
|
|
|
moduleNameMapper: {
|
|
"(.+)\\.js": "$1",
|
|
},
|
|
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)),
|
|
},
|
|
};
|