10 checks · smallest surface
One API fact. One focused check.
Unit checks isolate exports, constructor defaults, per-instance storage, method returns, pending references, size, and contents replacement.
Exact inventory
All 10 Unit checks.
No workflow or packaging behavior is repeated here. Those contracts live in their own layers.
- default and named exports identify one Queue class
- constructor enables automatic execution by default
- constructor leaves the stop gate open by default
- constructor exposes an idle empty state
- constructor exposes an empty contents array
- queue instances keep independent pending storage
- add returns the receiving queue
- add stores function references in input order
- size reflects the number of pending tasks
- contents replacement adopts the provided array
Run this layer
Unit only, or the complete suite.
npm run test:unit
npm test