diff --git a/test/converter.ts b/test/converter.ts index f7f392aa..7722b848 100644 --- a/test/converter.ts +++ b/test/converter.ts @@ -22,7 +22,7 @@ const puppeteerTimeoutMs = 60000 let mkdirSpy: jest.SpiedFunction -jest.mock('node:fs', () => require('./__mocks__/node/fs')) +jest.mock('node:fs', () => require('./__mocks__/node/fs')) // eslint-disable-line @typescript-eslint/no-require-imports, jest/no-mocks-import -- Windows file system cannot use `:` beforeEach(() => { mkdirSpy = jest.spyOn(fs.promises, 'mkdir').mockImplementation() diff --git a/test/marp-cli.ts b/test/marp-cli.ts index 2d247779..b705204b 100644 --- a/test/marp-cli.ts +++ b/test/marp-cli.ts @@ -39,7 +39,7 @@ const runForObservation = async (argv: string[]) => { } jest.mock('cosmiconfig') -jest.mock('node:fs', () => require('./__mocks__/node/fs')) +jest.mock('node:fs', () => require('./__mocks__/node/fs')) // eslint-disable-line @typescript-eslint/no-require-imports, jest/no-mocks-import -- Windows file system cannot use `:` jest.mock('../src/preview') jest.mock('../src/watcher', () => jest.createMockFromModule('../src/watcher')) diff --git a/test/preview.ts b/test/preview.ts index 24f13f2c..e38d5421 100644 --- a/test/preview.ts +++ b/test/preview.ts @@ -4,7 +4,7 @@ import { CLIError } from '../src/error' import { File, FileType } from '../src/file' import { Preview, fileToURI } from '../src/preview' -jest.mock('node:path', () => require('./__mocks__/node/path')) +jest.mock('node:path', () => require('./__mocks__/node/path')) // eslint-disable-line @typescript-eslint/no-require-imports, jest/no-mocks-import -- Windows file system cannot use `:` jest.setTimeout(40000) describe('Preview', () => {