chore: remove Node.js patch on Module.globalPaths (#31275)
* chore: remove Node.js patch on Module.globalPaths * chore: update patches Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
This commit is contained in:
parent
2a92d8f962
commit
959b657903
11 changed files with 36 additions and 35 deletions
|
@ -108,6 +108,15 @@ describe('modules support', () => {
|
|||
});
|
||||
|
||||
describe('Module._nodeModulePaths', () => {
|
||||
// Work around the hack in spec/global-paths.
|
||||
beforeEach(() => {
|
||||
Module.ignoreGlobalPathsHack = true;
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
Module.ignoreGlobalPathsHack = false;
|
||||
});
|
||||
|
||||
describe('when the path is inside the resources path', () => {
|
||||
it('does not include paths outside of the resources path', () => {
|
||||
let modulePath = process.resourcesPath;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue