diff --git a/doc/api/test.md b/doc/api/test.md index cff6e44ff06f42..cbc7083bbbd0ec 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -910,7 +910,7 @@ changes: import { tap } from 'node:test/reporters'; import { run } from 'node:test'; import process from 'node:process'; -import path from 'path'; +import path from 'node:path'; run({ files: [path.resolve('./tests/test.js')] }) .compose(tap) @@ -920,7 +920,7 @@ run({ files: [path.resolve('./tests/test.js')] }) ```cjs const { tap } = require('node:test/reporters'); const { run } = require('node:test'); -const path = require('path'); +const path = require('node:path'); run({ files: [path.resolve('./tests/test.js')] }) .compose(tap)