Skip to content

Vitest 5 - #4146

Merged
nstepien merged 14 commits into
mainfrom
vitest-5
Sep 3, 2026
Merged

nstepien merged 14 commits into
mainfrom
vitest-5

Conversation

@nstepien

@nstepien nstepien commented Aug 19, 2026 •

Copy link
Copy Markdown
Collaborator

@nstepien nstepien self-assigned this Aug 19, 2026
Comment thread test/setupBrowser.ts
// chromium defaults to 10
// firefox defaults to 128
// @ts-expect-error
Error.stackTraceLimit = 10;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nstepien
nstepien marked this pull request as ready for review September 3, 2026 21:02
@nstepien
nstepien enabled auto-merge (squash) September 3, 2026 21:23
@nstepien
nstepien disabled auto-merge September 3, 2026 21:23
@nstepien
nstepien merged commit 0e979ff into main Sep 3, 2026
2 checks passed
@nstepien
nstepien deleted the vitest-5 branch September 3, 2026 21:23
Comment thread vite.config.ts
test: {
dir: 'test',
globals: true,
injectCjsGlobals: false,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, but it seems good to have to validate that we don't depend on them
https://vitest.dev/config/injectcjsglobals

Comment thread .github/workflows/ci.yml
test/**/__screenshots__/**
test/**/__traces__/**
.vitest-attachments/test/**
path: .vitest/attachments/**

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do the failed screenshots go under vitest/attachment. Wonder if we should archive the whole .vitest folder?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do the failed screenshots go under vitest/attachment.

Yes
https://main.vitest.dev/guide/migration/#generated-reports-and-artifacts-use-the-vitest-directory

Wonder if we should archive the whole .vitest folder?

I don't think we generate anything else under .vitest at the moment.
Traces are also saved under .vitest/attachments/.
We can change this later if we need to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants