-
I have configured I would like to not run a test with happy dom though. Is it possible to disable it just for a test? Thank you a lot! |
Beta Was this translation helpful? Give feedback.
Answered by
Amatewasu
Jan 16, 2024
Replies: 1 comment
-
I found a way! The technique is to unregister the happydom registrator before your tests (and register it back after your tests). describe('do not run happydom for these tests', () => {
beforeAll(() => {
GlobalRegistrator.unregister();
});
afterAll(() => {
GlobalRegistrator.register();
});
it('should not use happy dom', () => {
// ... your test here
})
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Amatewasu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a way!
The technique is to unregister the happydom registrator before your tests (and register it back after your tests).