diff --git a/doc/api/test.md b/doc/api/test.md index c2d0514a3e6a0a..21860fb1925a62 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -3014,6 +3014,24 @@ test('top level test', async (t) => { }); ``` +### `context.assert` + + + +An object containing assertion methods bound to `context`. The top-level +functions from the `node:assert` module are exposed here for the purpose of +creating test plans. + +```js +test('test', (t) => { + t.plan(1); + t.assert.strictEqual(true, true); +}); +``` + ### `context.diagnostic(message)`