browsertrix-crawler/jest.config.js
Emma Segal-Grossman 64fdaf0d11
Convert tests from JS to TS (#1003)
- sets up ts-jest for typescript tests
- various type improvements, some shared functions add in utils.ts
- fixes sitemap test to not check sitemapDone, as it does not mean all URLs have been queued, uses sitemap path to avoid redirect
---------

Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2026-04-02 17:05:41 -07:00

18 lines
364 B
JavaScript

/** @type {import("ts-jest").JestConfigWithTsJest} **/
export default {
testEnvironment: "node",
extensionsToTreatAsEsm: [".ts"],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
useESM: true,
tsconfig: "tsconfig.test.json",
},
],
},
testTimeout: 90000,
};