79467285

Date: 2025-02-25 16:47:32
Score: 5.5
Natty: 5
Report link

constants-mocks.tsx

module.exports = { formInitialValues: { name: '', description: '', technicalName: '', type: '', sourceTypeId: 1, providerTypeId: 0, repositoryId: '', connectionId: '', applicationId: '', branchId: '', components: [], fileName: '', contentType: '', sessionIdFile: '', visibility: 'Private',
}, sourceTypes: { Provider: 0, NotDefined: 1, }, };

In the firs test:

jest.mock('./constants', () => require('~digital-lib-mocks/constants-mock'));

In the following tests I cannot change the mocked value to another value.

What can i do?

Reasons:
  • Blacklisted phrase (1): can i do
  • Blacklisted phrase (1): What can i do
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Fran Michelli