I've tried:
Different versions of packages.
Wrapping my test render with the react-spectrum Provider to make sure the theme wasn't the problem.
Changing which dom package Vitest is using.
This is a 1:1 copy of my repo, it's a private repo but there is nothing private in the repo yet so I copied all the components/deps over. FWIW the placeholder files are mock data.
If you run npm run test you'll see the error I am seeing locally.
Again I want to point out the only thing that changed between tests working and not working is installing the @adobe/react-spectrum package.
π Bug Report
After installing @adobe/react-spectrum and using it rather than react-select I started seeing errors when trying to run vitest.
π€ Expected Behavior
The test runs without failure.
π― Current Behavior
π Possible Solution
I've tried: Different versions of packages. Wrapping my test render with the react-spectrum Provider to make sure the theme wasn't the problem. Changing which dom package Vitest is using.
π¦ Context
idk
π» Code Sample
Will produce a codesandbox later when I have a bit more time.Codesandbox link: https://codesandbox.io/s/pensive-boyd-inj2opThis is a 1:1 copy of my repo, it's a private repo but there is nothing private in the repo yet so I copied all the components/deps over. FWIW the placeholder files are mock data.
If you run
npm run test
you'll see the error I am seeing locally. Again I want to point out the only thing that changed between tests working and not working is installing the@adobe/react-spectrum
package.π Your Environment
Current versions of packages: