SolidJSS
SolidJSโ€ข2y ago
Basil

`createMutable` fails Vitest's `toStrictEqual` when `vite-plugin-solid` is active

When the vite-plugin-solid plugin is not enabled, the following test passes:

expect(createMutable([1,2,3])).toStrictEqual([1,2,3]);


However, when the plugin is enabled, the test fails. I have a bunch of tests that rely on toStrictEqual working with createMutable, and adding vite-plugin-solid has caused them to fail.

Why?

I can't seem to wrangle the include and exclude options in the plugin to fix this either. Is there a way to get around this other than using toEqual, or do I have to refactor a lot of my test suite for this?
Was this page helpful?