{
  "id": "node-assert-table",
  "kind": "table",
  "slug": "node-assert",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/node-assert/",
  "title": "node:assert/strict provides assertion functions for tests and invariants",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "assert.deepStrictEqual(actual, expected)",
      "source": "Node.js docs (API)",
      "detail": "tests for deep equality; the enumerable \"own\" properties of child objects are recursively evaluated."
    },
    {
      "name": "assert.throws(fn[, error])",
      "source": "Node.js docs (API)",
      "detail": "expects fn to throw; error can be a class, RegExp, object or validation function."
    },
    {
      "name": "assert.rejects(asyncFn[, error])",
      "source": "Node.js docs (API)",
      "detail": "awaits the asyncFn promise, or calls the function and awaits the returned promise, then checks that it is rejected."
    }
  ],
  "related_slugs": [
    "vitest-test-runner",
    "python-unittest"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT (Node.js docs (API)); MIT (Node.js docs (Learn)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}