Repository navigation
fix(dox): select the Chromium-only browser tests by file name, not skipIf - #597
craig-o-curtis wants to merge 2 commits into
Conversation
…ipIf Two browser tests used describe.skipIf, which the disabled-test check forbids, so `Story consistency` failed on main. Name them *.chromium.browser.test.ts. The browser test config leaves them out of a run without Chromium.
baldurpan
left a comment
There was a problem hiding this comment.
I read this at 1e0b5cb and listed the files each engine selects with vitest list --config vitest.browser.config.ts --filesOnly:
DOX_BROWSERS |
Files | *.chromium.browser.test.ts |
|---|---|---|
| unset | 15 | both |
chromium,webkit |
15 | both |
webkit |
13 | none |
firefox |
13 | none |
The 13 are every other browser test, so the new exclude composes with BROWSER_TEST_GLOB and nothing else drops out. The renamed files still match the .browser.test.ts suffix that dist-tests.mjs, isolation.ts and the default config key on. No path-based caller in ci.yml or affected.mjs names the old files. testsRunIn is still used by the config, so it is not dead. I ran the file listing only, not the browser tests.
One nit is below.
baldurpan
left a comment
There was a problem hiding this comment.
The one nit is fixed in 66909c8, and I read the whole change: each engine selects the right browser tests, and both docs now say the WebKit leg skips the two Chromium-only files. CI was still running 5 checks when I approved.
What changes
Story consistencyfails onmainsince #595. That change wrapped two Chromium-only browser tests indescribe.skipIf, and no skipped test may merge.*.chromium.browser.test.tsand hold no skip.vitest.browser.config.tsleaves those files out of a run whoseDOX_BROWSERShas no Chromium, such as the weekly WebKit run.context/dox/built/match.#596 waits for this: its
Story consistencyjob fails on the same two lines.Checks
test-markers checkpasses; it finds two problems onmain.sound-peaks.chromium.browser.test.tspasses in Chromium (8).zone-map-forced-colorsneeds a built site, so CI runs it.oxfmt --checkandchangeset:statuspass. The changeset is empty: no release.pnpm run validatewas not run locally.