Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/static/jest.config.js
5750 views
1
/** @type {import('ts-jest').JestConfigWithTsJest} */
2
module.exports = {
3
preset: "ts-jest",
4
testEnvironment: "jsdom",
5
testEnvironmentOptions: {
6
// needed or jest imports the ts directly rather than the compiled
7
// dist exported from our package.json. Without this imports won't work.
8
// See https://jestjs.io/docs/configuration#testenvironment-string
9
customExportConditions: ["node", "node-addons"],
10
},
11
testMatch: ["**/?(*.)+(spec|test).ts?(x)"],
12
setupFilesAfterEnv: ["./test/setup.js"],
13
moduleNameMapper: {
14
".+\\.(svg|css)$": "identity-obj-proxy",
15
},
16
};
17
18