Skip to content

Commit

Permalink
fix test, by updating a hardcoded path
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jan 6, 2023
1 parent 2eecf6b commit 4a64bae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'path';
import { getPreviewFile, getMainFile } from './configure';

// eslint-disable-next-line global-require, jest/no-mocks-import
jest.mock('fs', () => require('../../../../../__mocks__/fs'));
jest.mock('fs', () => require('../../../../__mocks__/fs'));
const setupFiles = (files: Record<string, string>) => {
// eslint-disable-next-line no-underscore-dangle, global-require
require('fs').__setMockFiles(files);
Expand Down

0 comments on commit 4a64bae

Please sign in to comment.