refactor(testing): migrate from Jest to Vitest for testing framework
This commit is contained in:
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user