Calcite React tests fail in vitest #7486
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Online
Issues logged by ArcGIS Online team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components-react
Issues specific to the @esri/calcite-components-react package.
impact - p1 - need for current milestone
User set priority impact status of p1 - need for current milestone
Milestone
Check existing issues
Actual Behavior
Calcite React tests fail in Vitest with the following error in Vite 0.33
In the latest Vitest (0.34.1), this can be worked around by in-lining Stencil so that the tests can run, but running Stencil in this environment leads to additional errors
Expected Behavior
Calcite React works with Vitest
Reproduction Sample
Vitest 0.33: https://github.com/mpayson/calcite-vitest-bug
Vitest 0.34.1: https://github.com/mpayson/calcite-vitest-bug/tree/latest-vite
Reproduction Steps
npm run test
Reproduction Version
1.5.0
Relevant Info
This is likely a cause of #7185, and was not an issue before because the components were imported outside the tested files
Regression?
1.4.3
Priority impact
p1 - need for current milestone
Impact
Unable to update Calcite
Calcite package
Esri team
ArcGIS Online
The text was updated successfully, but these errors were encountered: