forgejo-notifications-core/jest.config.ts
Aravinth Manivannan 64e41c716d
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
fix: use testenv in jest to avoid CORS
2023-09-19 01:34:31 +05:30

19 lines
403 B
TypeScript

const foo = require("./tmp/user1-accesstoken.json");
module.exports = {
transform: {
"^.+\\.(t|j)sx?$": "@swc/jest",
},
testEnvironment: "jsdom",
setupFiles: ["./setupJest.js"],
collectCoverage: true,
coveragePathIgnorePatterns: [
"/node_modules/",
"setupTests.ts",
"setUpTests.ts",
"setUpTests.js",
],
testEnvironmentOptions: {
url: foo["forgejo_url"],
},
};