jest.mock('nanoid', () => { return { nanoid: () => {} }; }); jest.mock('strip-json-comments', () => { return { stripJsonComments: (str) => str }; });