Repository navigation
Commit 241c9c9
[FSSDK-13413] Remove the old browser/UMD test setup and Karma leftovers (#1187)
## Summary
Follow-up to #1186. `tests/browser` now runs browser and UMD tests in CI, so this removes the setup it replaced, plus leftovers from the Karma era.
- **Remove the old root browser/UMD setup.**
- Deleted: `vitest.browser.config.mts`, `vitest.umd.config.mts`, `scripts/run-browser-tests.js`, `scripts/run-umd-tests.js`, `scripts/patch-vitest-viewport.js`, `vitest/umd-plugin.ts`.
- Root `package.json`: removed the `test-browser*` / `test-umd*` scripts and the `@vitest/browser`, `browserstack-local` and `webdriverio` devDependencies.
- Root lockfile: 220 entries removed, none added. `npm uninstall` alone would have kept `@vitest/browser`/`webdriverio` and their dependencies as optional peers of the root Vitest, so those were pruned too. Re-resolving moved `@babel/runtime` from 7.28.4 to 7.29.13 (in range).
- **Make `tests/browser` self-contained.** It no longer imports from the root `vitest/` folder, which is gone.
- The request logger and `public/console-capture.js` moved into it.
- The console-capture plugin was merged into the local one: it keeps the `/__vitest_console__` endpoint and injects the script via `transformIndexHtml`.
- The UMD bundle is copied to `tests/browser/public/dist`, which is gitignored via `dist/`.
- **Remove Karma leftovers.**
- Deleted `lib/index.browser.umdtests.js`. Nothing ran it, and two of its imports no longer exist.
- Removed the `*.umdtests.js` patterns from `.eslintignore`, both tsconfigs, `.platform-isolation.config.js` and `scripts/platform-utils.js`.
- Removed the `BROWSER_STACK_*` env var fallbacks and the commented-out `crossbrowser_and_umd_unit_tests` CI job.
- **Update docs and comments.**
- Comments and the `tests/browser` README describe the current setup instead of comparing it with the removed one.
- `vitest3-compat.setup.ts` is renamed to `restore-all-mocks.setup.ts`.
- The root README's testing section points to `tests/browser`.
- `CHANGELOG.md` keeps its historical entries.
No SDK source changes.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 525e71d commit 241c9c9
29 files changed
Lines changed: 216 additions & 4548 deletions
File tree
- .github/workflows
- lib
- scripts
- tests/browser
- public
- vitest
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
| 110 | + | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
| |||
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | 137 | | |
158 | 138 | | |
159 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
246 | 250 | | |
247 | 251 | | |
248 | 252 | | |
| |||
256 | 260 | | |
257 | 261 | | |
258 | 262 | | |
259 | | - | |
| 263 | + | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
| |||
This file was deleted.
0 commit comments