Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e3da80
commit ec9382c
Showing
4 changed files
with
38 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 10 additions & 11 deletions
21
eslint/babel-eslint-tests/test/integration/duplicated-babel-parser.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import eslint from "eslint"; | ||
import { ESLint } from "eslint"; | ||
import path from "path"; | ||
import { fileURLToPath } from "url"; | ||
|
||
describe("https://github.com/babel/babel/issues/12985", () => { | ||
it("works with different copies of @babel/parser", () => { | ||
const engine = new eslint.CLIEngine({ ignore: false }); | ||
expect(() => | ||
engine.executeOnFiles([ | ||
path.resolve( | ||
path.dirname(fileURLToPath(import.meta.url)), | ||
`../fixtures/duplicated-babel-parser/a.js`, | ||
), | ||
]), | ||
).not.toThrow(); | ||
it("works with different copies of @babel/parser", async () => { | ||
const engine = new ESLint({ ignore: false }); | ||
|
||
await engine.lintFiles( | ||
path.resolve( | ||
path.dirname(fileURLToPath(import.meta.url)), | ||
`../fixtures/duplicated-babel-parser/a.js`, | ||
), | ||
); | ||
}); | ||
}); |
9 changes: 5 additions & 4 deletions
9
eslint/babel-eslint-tests/test/integration/eslint-plugin-import.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters