Skip to content

Update test setup to reset and restore all mocks between each test #745

@mcmire

Description

@mcmire

Currently we are not setting resetMocks: true and restoreMocks: true within jest.config.js. We should enable this and remove calls to jest.clearAllMocks() and jest.resetAllMocks() within test files.

Note that this may require substantial changes for any test suites that rely heavily upon shared mocks.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestteam-wallet-frameworkDeprecated: Please use `team-core-platform` instead.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions