8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec9253 commit 61050cdCopy full SHA for 61050cd
site/src/components/UserDropdown/UserDropdown.test.tsx
@@ -13,11 +13,12 @@ const renderAndClick = async (props: Partial<UserDropdownProps> = {}) => {
13
describe("UserDropdown", () => {
14
const env = process.env
15
16
+ // REMARK: copying process.env so we don't mutate that object or encounter conflicts between tests
17
beforeEach(() => {
- jest.resetModules()
18
process.env = { ...env }
19
})
20
21
+ // REMARK: restoring process.env
22
afterEach(() => {
23
process.env = env
24
0 commit comments