* Lint against CJS globals in modules * Use `import.meta.url` instead of `__filename` in `src` files * Prepare fixtures runner for `import.meta.url` * Use `import.meta.url` instead of `__filename` in `test/index` files * Remove `__dirname` from remaining test files dirname * Avoid using `module` in `src` files * Avoid using `require` in `src` files * Avoid using `require` in `test` files * Update `@types/node` * Compile dynamic import in `@babel/node` * Fix windows * Use `@babel/plugin-proposal-dynamic-import` from npm
10 lines
272 B
JavaScript
10 lines
272 B
JavaScript
import path from "path";
|
|
import { runThrowTestsWithEstree } from "./helpers/runFixtureTests";
|
|
import { parse } from "../lib";
|
|
import { fileURLToPath } from "url";
|
|
|
|
runThrowTestsWithEstree(
|
|
path.join(path.dirname(fileURLToPath(import.meta.url)), "fixtures"),
|
|
parse,
|
|
);
|