You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@patricklafrance I think you should remove testEnvironment: "jsdom" from your Jest config file because you are testing a Node.js library, not a client library.
Version
System: OS: Windows 11 10.0.22631 CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13700H Memory: 9.70 GB / 31.62 GB Browsers: Edge: Chromium (127.0.2651.74) Internet Explorer: 11.0.22621.3527 npmPackages: @rsbuild/core: 1.1.8 => 1.1.8
Details
When executing the
defineConfig
function in a Jest test, I get the following error:The code under test:
The test:
I found this example which inspired most of my reproduction configs. It seems like something changed since this example has been created.
Reproduce link
https://github.com/patricklafrance/rsbuild-jest
Reproduce Steps
pnpm install
pnpm test
The text was updated successfully, but these errors were encountered: