Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ jobs:
- run: pnpm install --frozen-lockfile
- run: pnpm test

test-node-26:
name: 3 - test (node 26)
runs-on: ubuntu-latest
if: github.event.action != 'edited'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- run: corepack enable
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 26
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test

commitlint:
name: 4 - commitlint
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions canton-connect/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export default defineConfig({
test: {
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
// Node 26's own localStorage global shadows jsdom's under vitest 4; vitest 5 fixes it.
execArgv: ['--no-experimental-webstorage'],
// The suite's wall clock is SDK timer waits, not CPU; without an explicit count,
// core-starved CI runners get too few workers to overlap the files.
maxWorkers: 8,
Expand Down
2 changes: 2 additions & 0 deletions canton-dappbooster/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export default defineConfig({
test: {
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
// Node 26's own localStorage global shadows jsdom's under vitest 4; vitest 5 fixes it.
execArgv: ['--no-experimental-webstorage'],
// A stub or spy surviving into the next test is an order-dependent pass; undo both centrally.
restoreMocks: true,
unstubGlobals: true,
Expand Down
2 changes: 2 additions & 0 deletions dapp/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export default defineConfig(({ mode }) => {
// jsdom despite no DOM assertions: the wallet SDK touches DOM globals on import.
test: {
environment: 'jsdom',
// Node 26's own localStorage global shadows jsdom's under vitest 4; vitest 5 fixes it.
execArgv: ['--no-experimental-webstorage'],
},
}
})