test(frontend): extract CancellableLoader; pin debounce-race invariants in unit tests (0.87.23)
0.87.16 followup. Extract the four debounce-race invariants (predecessor abort, late-result suppression, AbortError swallow, ownership-aware finally) from `loadCoverage` into a reusable `CancellableLoader` helper at $lib/util/cancellable, with 9 unit tests covering each. Page rewrite uses the helper. Also corrects: hooks.server.test.ts (added Node-fetch rejection shape for already-aborted entry; removed redundant tick); admin.test.ts (AbortError-propagation now uses pre-aborted signal + mockRejectedValueOnce mirroring real Node fetch). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2
backend/Cargo.lock
generated
2
backend/Cargo.lock
generated
@@ -1517,7 +1517,7 @@ checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
|
||||
|
||||
[[package]]
|
||||
name = "mangalord"
|
||||
version = "0.87.22"
|
||||
version = "0.87.23"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"argon2",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "mangalord"
|
||||
version = "0.87.22"
|
||||
version = "0.87.23"
|
||||
edition = "2021"
|
||||
default-run = "mangalord"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user