Skip to content

Commit

Permalink
test(hooks): copy process.env
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed May 17, 2024
1 parent a55161a commit 233469b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/unit/config/ConfigTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export default class ConfigTest {
@AfterEach()
public async afterEach() {
Config.clear()
process.env = this.env
process.argv = this.argv
process.env = Json.copy(this.env)
process.argv = Json.copy(this.argv)
await Folder.safeRemove(Path.fixtures('recursive-copy'))
}

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/env/EnvTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export default class EnvTest {

@AfterEach()
public async afterEach() {
process.env = this.env
process.argv = this.argv
process.env = Json.copy(this.env)
process.argv = Json.copy(this.argv)
}

@Test()
Expand Down

0 comments on commit 233469b

Please sign in to comment.