CSS.supports undefined #1166
-
|
Hello, It seems I need to test a script that makes calls to /**
* @vitest-environment happy-dom
*/
test('CSS.supports', (ctx) => {
expect(window).toBeDefined(); // pass
expect(document).toBeDefined(); // pass
expect(window.CSS).toBeDefined(); // pass
expect(CSS).toBeDefined(); // pass
// throws "expected undefined not to be undefined"
expect(CSS.supports).toBeDefined();
// throws "expected false to be truthy"
expect('supports' in window.CSS).toBeTruthy();
})Why does What am I missing here? Thanks 4 help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Sorry for answering this so late. I believe this was a Vitest bug and was fixed by vitest-dev/vitest#4601 |
Beta Was this translation helpful? Give feedback.
Sorry for answering this so late.
I believe this was a Vitest bug and was fixed by vitest-dev/vitest#4601