Skip to content

Migrate Jest to vitest #5251

Migrate Jest to vitest

Migrate Jest to vitest #5251

Workflow file for this run

name: Run tests
on:
pull_request:
push:
schedule:
- cron: '3 22 * * SUN'
permissions: {}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: [22, 24]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.version }}
- run: npm ci
- run: npm run test:coverage
- run: npm run build
- run: npm run build:docs
- run: npm link
- run: npm ci
working-directory: e2e/js
- run: npm link '@maxmind/minfraud-api-node'
working-directory: e2e/js
- run: npx vitest run
working-directory: e2e/js
- run: npm ci
working-directory: e2e/ts
- run: npm link '@maxmind/minfraud-api-node'
working-directory: e2e/ts
- run: npx vitest run
working-directory: e2e/ts