Skip to content

Commit

Permalink
Disable ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Sep 15, 2024
1 parent 4335051 commit 5c0bacf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const puppeteerTimeoutMs = 60000

let mkdirSpy: jest.SpiedFunction<typeof fs.promises.mkdir>

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()
Expand Down
2 changes: 1 addition & 1 deletion test/marp-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'))

Expand Down
2 changes: 1 addition & 1 deletion test/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 5c0bacf

Please sign in to comment.