Use turbo for all unit tests (#5815)

- Upgrade vitest from 1.x to 3.x.
  - Fix some tests that now became more strict and started failing
-  Add test command to all packages + needed dependencies
- Add turbo config for running tests

Another PR will completely redo the e2e test suite.
This commit is contained in:
Merlijn Vos 2025-07-12 13:21:35 +02:00 committed by GitHub
parent 33e4b37106
commit 7c609a56d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 697 additions and 467 deletions

View file

@ -1,4 +1,4 @@
name: Test different bundlers with Uppy
name: Bundlers
on:
push:

View file

@ -34,8 +34,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# fix node versions so we don't get sudden unrelated CI breakage
node-version: [18.20.8, 20.19.1]
node-version: [lts/*]
steps:
- name: Checkout sources
uses: actions/checkout@v4
@ -66,7 +65,7 @@ jobs:
- name: Build
run: corepack yarn run build
- name: Run tests
run: corepack yarn run test:unit
run: corepack yarn run test
types:
name: Type tests