Skip to content

Commit

Permalink
Re-add test case for globals
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Dec 18, 2021
1 parent 92d9a33 commit 0b6d85a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions testLib/sharedTestCases.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,7 @@ module.exports = function () {
expect(someOtherModule.fs).not.to.be(mockedFs);
});

// This test fails on modern Node versions since they started to configure some
// global variables to be non-enumerable. This means that rewire() does in fact
// modify the global console object in newer Node versions.
// There is a work in progress fix at https://github.com/jhnns/rewire/tree/fix-globals
it.skip("should provide the ability to mock global objects just within the module", function () {
it("should provide the ability to mock global objects just within the module", function () {
var rewiredModuleA = rewire("./moduleA.js"),
rewiredModuleB = rewire("./moduleB.js"),
consoleMock = {},
Expand Down

0 comments on commit 0b6d85a

Please sign in to comment.