testing-library / svelte-testing-library

:chipmunk: Simple and complete Svelte DOM testing utilities that encourage good testing practices
https://testing-library.com/docs/svelte-testing-library/intro
MIT License
615 stars 33 forks source link

feat(vitest): add vitest cleanup export #294

Closed mcous closed 8 months ago

mcous commented 8 months ago

Overview

This is the first PR in a series to add multiple Svelte versions and test runners to our CI test matrix.

  1. 294 <-- you are here

  2. 295

  3. TODO add multiple Vitest environments to CI matrix
  4. TODO add Jest to CI matrix

Change log

This PR concentrates on getting Vitest fully working, since there are a few issues with the setup

Review requests

~I'm keeping this PR in draft mode until I can verify that the @testing-library/svelte/vitest import works in a real project. Importing vitest in library code has given me issues before, so I want to verify before this is merged/released. It definitely works for our own test suite, though!~ Verified, works like a charm

github-actions[bot] commented 8 months ago

:tada: This PR is included in version 4.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: