Skip to content

Commit

Permalink
cater for unexpected linting in ci?
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Pereira committed Feb 9, 2025
1 parent 6b54378 commit 3f5a377
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/runner/runners/utils/_tests/_transpiler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ describe("dirContains", () => {

describe("babelify", () => {
it("does not throw when a filepath is ignored due to babel options, and should return the content unchanged", () => {
const dangerfile = "import {a} from 'lodash'; a()"
const dangerfile = `import { a } from 'lodash';
a();`

const existsSyncMock = fs.existsSync as jest.Mock
const actualFs = jest.requireActual("fs") as typeof fs
Expand Down

0 comments on commit 3f5a377

Please sign in to comment.