Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible regression from 0.10.5 to 0.11.0 onward #1335

Closed
6 tasks done
Escapado opened this issue May 19, 2022 · 0 comments · Fixed by #1340
Closed
6 tasks done

Possible regression from 0.10.5 to 0.11.0 onward #1335

Escapado opened this issue May 19, 2022 · 0 comments · Fixed by #1340

Comments

@Escapado
Copy link

Describe the bug

Hi, I found when upgrading to a newer version to vitest, my tests in a react app (with react-easy-state) break which were fine before and the code itself is working as intended.

I get the following error:

 FAIL  test/component.spec.tsx [ test/component.spec.tsx ]
RangeError: Maximum call stack size exceeded
 ❯ timerInitializationSteps node_modules/jsdom/lib/jsdom/browser/Window.js:535:25
 ❯ Window.setTimeout node_modules/jsdom/lib/jsdom/browser/Window.js:465:12
 ❯ Object.apply node_modules/@risingstack/react-easy-state/dist/cjs.es6.js:280:24

Reproduction

I created a minimal example to reproduce.
If the vitest version is set to 0.10.5 or ealier it works perfectly fine, later versions break.

https://stackblitz.com/edit/vitest-dev-vitest-cvqafs?file=test%2Fcomponent.tsx

System Info

See Stackblitz

Used Package Manager

npm

Validations

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant