Skip to content
Permalink
Browse files
doc: update node prefix require.cache example
PR-URL: #44724
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
simoneb authored and danielleadams committed Oct 5, 2022
1 parent f300f19 commit 7c5c19ee54a4b66ac5455b2e2b37e4bc9d49b1bc
Showing 1 changed file with 1 addition and 1 deletion.
@@ -720,7 +720,7 @@ const realFs = require('node:fs');
const fakeFs = {};
require.cache.fs = { exports: fakeFs };
assert.strictEqual(require('node:fs'), fakeFs);
assert.strictEqual(require('fs'), fakeFs);
assert.strictEqual(require('node:fs'), realFs);
```

0 comments on commit 7c5c19e

Please sign in to comment.