mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
test: Require with empty cache
This commit is contained in:
parent
e25ec9e836
commit
3f80e318cd
5 changed files with 8 additions and 8 deletions
|
@ -4,7 +4,7 @@ const { describe, it } = require('mocha')
|
|||
const assert = require('assert')
|
||||
const path = require('path')
|
||||
const requireInject = require('require-inject')
|
||||
const { findAccessibleSync } = requireInject('../lib/util', {
|
||||
const { findAccessibleSync } = requireInject.withEmptyCache('../lib/util', {
|
||||
'graceful-fs': {
|
||||
closeSync: function () { return undefined },
|
||||
openSync: function (path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue