Skip to content

Commit

Permalink
Removed restoring globals from reporter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Dec 14, 2023
1 parent c1baa5b commit 0c29a5a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/integration-tests/src/reporters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,12 @@ describe("reporters", () => {
let mocha: Mocha;

beforeEach(async () => {
// Save the current global to continue the script
const globalBefore = Object.assign({}, global);
// Initialize the clintside test
mocha = new Mocha({ fullStackTrace: true });
// Bust the cache if any
delete require.cache[sampleTestPath];
// Add the test file
mocha.addFile(sampleTestPath);
// Restore the global
Object.assign(global, globalBefore);
});

// Disabling the output buffering, in case the test failed and never did this itself
Expand Down

0 comments on commit 0c29a5a

Please sign in to comment.