Repository navigation
test: run the tests in real browsers with vitest browser mode - #326
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Run all DOM tests in real browsers with Vitest browser mode and Playwright (Chromium, Firefox and WebKit), and remove jsdom.
IntersectionObserverand the Web Animations API. The spies in@awesome-reveal/test-utilscall the real API. Only fault injection (vi.stubGlobal, invalid input,withoutAnimate(),rejectEasing()) replaces a browser behavior.vitest-browser-react), Vue (vitest-browser-vue) and Astro. It mounts below the fold and scrolls the real page.:unittests. The oldastro:browserproject is nowastro:e2e.@testing-library/*,@vue/test-utilsas a direct dependency, and the fake observer andanimate.frameworkCI job runs the browser projects in Chromium with React 18, Astro 6 and the new Vue 3.5.0 entry. It uploads the failure screenshots and traces.vitest relatedalso fails on the React and Vue browser projects: Vitest 5.0.3 transforms the sources in the SSR environment, andvite:css-postthrows on thereveal.cssimport there.AGENTS.md,CONTRIBUTING.md, the.clauderules and the adapter skill.No
src/file of a published package changes.Admin action at merge: add
Test (Vue 3.5.0)to the "Require CI" ruleset. Do not add it before the merge, because the other open PRs tonextdo not have this job.Checklist
nextbranch.!and aBREAKING CHANGE:footer.pnpm test --coverage: 60 files and 1498 tests pass in the three browsers, with coverage 100 / 97.8 / 100 / 100.