Skip to content

Commit

Permalink
Update the vitest configuraiton
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Feb 25, 2025
1 parent be1bbf3 commit 8ab2076
Show file tree
Hide file tree
Showing 4 changed files with 534 additions and 65 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,40 +35,48 @@ jobs:
name: Tests Bun
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Yarn
run: bun install -g npm:yarn
- name: Bootstrap
run: bun --bun ~/.bun/bin/yarn --immutable
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install
run: yarn install --frozen-lockfile
- name: Build
run: bun run --bun build
- name: Generate
run: bun run --bun generate
- uses: "./.github/actions/multi-runtime-tests"
with:
runtime: bun

test-deno:
name: Tests Deno
name: Test Deno
runs-on: ubuntu-latest
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: "22"
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
# There is an issue with Lerna+NX on Deno Runtime
# So we have to install dependencies with Node
- name: Install yarn
run: deno install --global -A npm:yarn
- name: Bootstrap
run: yarn --immutable
- name: Install
run: yarn install --frozen-lockfile
- name: Build
run: deno run -A build
- name: Generate
run: deno run -A generate
run: deno run -A generate
- name: Unit tests
run: deno run -A test:unit
- uses: "./.github/actions/multi-runtime-tests"
with:
runtime: deno
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"@types/node": "^22.10.2",
"@typescript-eslint/eslint-plugin": "^6",
"@typescript-eslint/parser": "^6",
"@vitest/browser": "^2.1.8",
"@vitest/coverage-v8": "^2.1.8",
"@vitest/browser": "^3.0.7",
"@vitest/coverage-v8": "^3.0.7",
"babel-loader": "^8.2.2",
"eslint": "^7.30.0",
"eslint-plugin-import": "^2.23.4",
Expand All @@ -42,9 +42,9 @@
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "~5.4.2",
"vite-plugin-node-polyfills": "^0.22.0",
"vitest": "^2.1.8",
"vitest-in-process-pool": "^1.0.0",
"vite-plugin-node-polyfills": "^0.23.0",
"vitest": "^3.0.7",
"vitest-in-process-pool": "^2.0.0",
"webdriverio": "^9.2.11",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1",
Expand Down
1 change: 1 addition & 0 deletions vitest.base.unit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function getPoolOptions(runtime: Runtime): ViteUserConfig["test"] {

return {
pool: "vitest-in-process-pool",
reporters: [["default", { summary: false }]],
coverage: {
enabled: false,
},
Expand Down
Loading

0 comments on commit 8ab2076

Please sign in to comment.