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

Updating to vitest 0.25.7 breaks unit tests with Svelte #2839

Closed
6 tasks done
DirkRaeder-KDO opened this issue Feb 8, 2023 · 1 comment
Closed
6 tasks done

Updating to vitest 0.25.7 breaks unit tests with Svelte #2839

DirkRaeder-KDO opened this issue Feb 8, 2023 · 1 comment

Comments

@DirkRaeder-KDO
Copy link

Describe the bug

Updating vitest to version 0.25.7 breaks unit tests for Svelte-based website.

Reproduction

Expected behavior: In both cases, the unit test succeeds.

Actual behavior: The unit tests succeeds only with vitest@0.25.6. It fails with vitest@0.25.7.

Later versions of Vitest: The test fails with 0.28.4 (latest) as well.

Notable changes from 0.25.6 to 0.25.7:

  • Vite has been upgraded from 3 to 4.
  • Rollup is a dependency of Vite and has been upgraded from 2 to 3

System Info

System:
    OS: Linux 6.1 Arch Linux
    CPU: (16) x64 AMD Ryzen 7 5700U with Radeon Graphics
    Memory: 1.67 GB / 15.02 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 18.13.0 - /usr/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 8.19.2 - /usr/bin/npm
  Browsers:
    Chromium: 110.0.5481.77
  npmPackages:
    @testing-library/dom: ^8.20.0 => 8.20.0
    @testing-library/svelte: ^3.2.2 => 3.2.2
    vite: ^4.0.0 => 4.1.1
    vitest: 0.25.7 => 0.25.7

Used Package Manager

pnpm

Validations

@DirkRaeder-KDO
Copy link
Author

DirkRaeder-KDO commented Feb 8, 2023

Checked for duplicates before beginning to write this issue, none found.
Checked again after posting, found #2834 as a potential dupe.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant