fix: use testenv in jest to avoid CORS
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Aravinth Manivannan 2023-09-19 01:34:31 +05:30
parent 9a6046c563
commit 64e41c716d
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -1,3 +1,5 @@
const foo = require("./tmp/user1-accesstoken.json");
module.exports = {
transform: {
"^.+\\.(t|j)sx?$": "@swc/jest",
@ -11,4 +13,7 @@ module.exports = {
"setUpTests.ts",
"setUpTests.js",
],
testEnvironmentOptions: {
url: foo["forgejo_url"],
},
};