refactor(testing): migrate from Jest to Vitest for testing framework

This commit is contained in:
Naoki Oketani
2025-05-02 14:03:34 +00:00
parent a898de739e
commit 2564984eab
11 changed files with 3190 additions and 467 deletions

View File

@@ -17,15 +17,14 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies and run all scripts
- name: Install dependencies and run tests
run: |
npm ci
npm run all
npm run test -- --run
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# Adding a comment to clarify the purpose of the Windows build job
build-on-windows:
strategy:
matrix:
@@ -36,11 +35,10 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
# Node.js 20 already includes a recent npm version, so npm upgrade is not needed
- name: Install dependencies and run all scripts
- name: Install dependencies and run tests
run: |
npm ci
npm run all
npm run test -- --run
test: # make sure the action works on a clean machine without building
strategy: