Commit 6b60fed
committed
test: align pre-push suites with app refactor
The pre-push package test gate failed on stale test assumptions instead of runtime behavior.
Kits now marks the browser canvas-id lookup test as jsdom. Core mocks now expose
the current legacy binding context API and assert the supported container compatibility export.
Constraint: keep runtime code unchanged; only fix tests that blocked push.
Rejected: change package jest environment globally | only one test requires DOM.
Confidence: high
Scope-risk: narrow
Tested: targeted vrender-kits browser-window-canvas-id test.
Tested: targeted vrender-core explicit-bindings and index-side-effect tests.
Tested: node common/scripts/install-run-rush.js test --only tag:package.1 parent d0ef1db commit 6b60fed
3 files changed
Lines changed: 10 additions & 1 deletion
File tree
- packages
- vrender-core/__tests__/unit
- core
- modules
- vrender-kits/__tests__/unit/window
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
| |||
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
| 331 | + | |
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
| |||
377 | 379 | | |
378 | 380 | | |
379 | 381 | | |
| 382 | + | |
380 | 383 | | |
381 | 384 | | |
382 | 385 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
0 commit comments