mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2026-06-18 11:51:42 +00:00
- 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>
18 lines
364 B
JavaScript
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,
|
|
};
|