Skip to content

Commit

Permalink
Update import and require statements to use 'node:path'
Browse files Browse the repository at this point in the history
In this commit, I update  import and require statements throughout the codebase to use 'node:path' instead of 'path'.
  • Loading branch information
OshriAsulin authored and atlowChemi committed Sep 6, 2023
1 parent 90c94c2 commit e377420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit e377420

Please sign in to comment.