Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
test(server): move cors tests into loop (#451)
Browse files Browse the repository at this point in the history
* test(server): reset env after each test

* test(server): move cors disabled test to loop

* test(server): move cors enabled tests to loop
  • Loading branch information
Fdawgs authored Dec 21, 2021
1 parent 964a085 commit e151e79
Show file tree
Hide file tree
Showing 2 changed files with 237 additions and 240 deletions.
1 change: 1 addition & 0 deletions src/config/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe("Configuration", () => {
});

afterEach(() => {
// Reset the process.env to default after each test
jest.resetModules();
Object.assign(process.env, currentEnv);
});
Expand Down
Loading

0 comments on commit e151e79

Please sign in to comment.