From 57a0e4723c3bc9a16956475062431a0e848998d7 Mon Sep 17 00:00:00 2001 From: Tony Pujals Date: Wed, 2 Oct 2024 12:59:43 -0700 Subject: [PATCH] docs: add more detail to assert recommendation --- CONTRIBUTING.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e7ccb6ea98..b9491f72f5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -56,7 +56,12 @@ tests, ideally reducing dependencies on third party libraries. For tests, using the standard library [assert](https://nodejs.org/docs/latest-v18.x/api/assert.html) is -preferred. +preferred. The library provides a strict and a legacy mode; please use the +strict mode as shown below: + +```js +const assert = require('node:assert/strict'); +``` If you want to use a third party package, help us to understand if you have requirements not fulfilled by core libraries in the description of your pull