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?