You can either use moduleNameMapper in your jest settings to point the import to an mocked json file.
{
"moduleNameMapper": {
"setting.json": "<rootDir>/__mocks__/setting.json"
}
}
Or you can use jest.mock inside your test to mock the file directly, note that you have to add the { virtual: true } parameter.
jest.mock('path/to/setting.json', ()=>({
settings: 'someSetting'
}), { virtual: true })