Skip to content

Commit 90c94c2

Browse files
OshriAsulinatlowChemi
authored andcommitted
fix: Update import statements
In this commit, I've refactored the import statements and destructuring assignments in the codebase to enhance code organization and maintainability. The primary changes are as follows: 1. Replaced the import statement: - From: `import { tap, run } from 'node:test/reporters';` - To: - `import { run } from 'node:test';` - `import { tap } from 'node:test/reporters';` 2. Reorganized destructuring assignments: - From: ``` const { tap, run } = require('node:test/reporters'); const process = require('process'); ``` - To: ``` const { run } = require('node:test'); const { tap } = require('node:test/reporters'); ```
1 parent 79b707f commit 90c94c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/test.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,8 @@ changes:
907907
* Returns: {TestsStream}
908908

909909
```mjs
910-
import { tap, run } from 'node:test/reporters';
910+
import { tap } from 'node:test/reporters';
911+
import { run } from 'node:test';
911912
import process from 'node:process';
912913
import path from 'path';
913914

@@ -917,8 +918,8 @@ run({ files: [path.resolve('./tests/test.js')] })
917918
```
918919

919920
```cjs
920-
const { tap, run } = require('node:test/reporters');
921-
const process = require('process');
921+
const { tap } = require('node:test/reporters');
922+
const { run } = require('node:test');
922923
const path = require('path');
923924

924925
run({ files: [path.resolve('./tests/test.js')] })

0 commit comments

Comments
 (0)