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

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
1 changed files with 5 additions and 0 deletions

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"],
},
};