Skip to content

Commit db9bd78

Browse files
committed
fix: reset modules between send tests to avoid Commander state leaks
1 parent 97289b7 commit db9bd78

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/commands/emails/send.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ describe('send command', () => {
4545
let exitSpy: MockInstance | undefined;
4646

4747
beforeEach(() => {
48+
vi.resetModules();
4849
process.env.RESEND_API_KEY = 're_test_key';
4950
mockSend.mockClear();
5051
mockDomainsList.mockClear();

0 commit comments

Comments
 (0)