diff --git a/doc/guides/writing-tests.md b/doc/guides/writing-tests.md index b0a82b2dcac4b0..29facf4cc25527 100644 --- a/doc/guides/writing-tests.md +++ b/doc/guides/writing-tests.md @@ -287,6 +287,15 @@ const assert = require('assert'); const freelist = require('internal/freelist'); ``` +In specific scenarios it may be useful to get a hold of `primordials` or +`internalBinding()`. You can do so using + +```console +node --expose-internals -r internal/test/binding lib/fs.js +``` + +This only works if you preload `internal/test/binding` by command line flag. + ### Assertions When writing assertions, prefer the strict versions: