fix: use testenv in jest to avoid CORS
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
9a6046c563
commit
64e41c716d
1 changed files with 5 additions and 0 deletions
|
@ -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"],
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue