Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 3, 2020
1 parent 39f5547 commit b4c981e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ describe("@babel/plugin-transform-typeof-symbol", () => {
`(
"shouldn't transpile the $type $runtime helper",
async ({ type, runtime }) => {
const path = require.resolve(
`${runtime}/helpers${type === "esm" ? "/esm/" : "/"}typeof`,
);
let path = require.resolve(`${runtime}/helpers/typeof`);
if (runtime === "esm") path = path.replace(".js", ".mjs");
const src = await readFile(path);

const ast = babel.parseSync(src, {
Expand Down

0 comments on commit b4c981e

Please sign in to comment.