Skip to content

Commit 57a0e47

Browse files
subfuzioniennae
authored andcommitted
docs: add more detail to assert recommendation
1 parent efe8faf commit 57a0e47

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ tests, ideally reducing dependencies on third party libraries.
5656

5757
For tests, using the standard
5858
library [assert](https://nodejs.org/docs/latest-v18.x/api/assert.html) is
59-
preferred.
59+
preferred. The library provides a strict and a legacy mode; please use the
60+
strict mode as shown below:
61+
62+
```js
63+
const assert = require('node:assert/strict');
64+
```
6065

6166
If you want to use a third party package, help us to understand if you have
6267
requirements not fulfilled by core libraries in the description of your pull

0 commit comments

Comments
 (0)