Skip to content

Commit efbc621

Browse files
committed
Reset env between tests
1 parent d526e61 commit efbc621

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/updatePrescriptionStatus/tests/testHandler.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ const {handler, logger} = await import("../src/updatePrescriptionStatus")
4444

4545
const LAMBDA_TIMEOUT_MS = 9500 // 9.5 sec
4646

47+
const ORIGINAL_ENV = {...process.env}
48+
4749
describe("Integration tests for updatePrescriptionStatus handler", () => {
4850
beforeEach(() => {
4951
jest.resetModules()
52+
process.env = {...ORIGINAL_ENV}
5053
jest.clearAllMocks()
5154
jest.resetAllMocks()
5255
jest.clearAllTimers()

0 commit comments

Comments
 (0)