test('Load config with valid schema', () => {
    const fileExplorer = cosmiconfig('adviser');

    fileExplorer.loadSync = jest.fn(() => {
      return {