1. Docs
  2. Testing
  3. Unit

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.

  1. default and named exports identify one Queue class
  2. constructor enables automatic execution by default
  3. constructor leaves the stop gate open by default
  4. constructor exposes an idle empty state
  5. constructor exposes an empty contents array
  6. queue instances keep independent pending storage
  7. add returns the receiving queue
  8. add stores function references in input order
  9. size reflects the number of pending tasks
  10. contents replacement adopts the provided array

Run this layer

Unit only, or the complete suite.

npm run test:unit
npm test