Replies: 1 comment
-
|
This is how you do it for Vitest: export default defineConfig({
test: {
environment: 'happy-dom',
environmentOptions: {
happyDOM: {
settings: {
fetch: {
disableSameOriginPolicy: true
}
}
}
}
}You can read more about the various settings in the API Documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have a unit test that is failing within the following lines:
happy-dom/packages/happy-dom/src/fetch/Fetch.ts
Lines 217 to 232 in cf74f5f
So apparently, we want to set
disableSameOriginPolicy: truefor thehappy-domenvironment with thevitest.Is there a way to set it up without using the Global Registrator?
Beta Was this translation helpful? Give feedback.
All reactions