| 1 | import { ESLint } from "eslint"; |
| 2 | import path from "path"; |
| 3 | import { fileURLToPath } from "url"; |
| 4 | |
| 5 | describe("https://github.com/babel/babel/issues/12985", () => { |
| 6 | it("works with different copies of @babel/parser", async () => { |
| 7 | const engine = new ESLint({ ignore: false }); |
| 8 | |
| 9 | await engine.lintFiles( |
| 10 | path.resolve( |
| 11 | path.dirname(fileURLToPath(import.meta.url)), |
| 12 | `../fixtures/duplicated-babel-parser/a.js`, |
| 13 | ), |
| 14 | ); |
| 15 | }); |
| 16 | }); |