Skip to content

Commit

Permalink
Update packages/babel-core/test/errors-stacks.js
Browse files Browse the repository at this point in the history
Co-authored-by: Nicol貌 Ribaudo <nicolo.ribaudo@gmail.com>
  • Loading branch information
liuxingbaoyu and nicolo-ribaudo committed May 29, 2023
1 parent 5fc5de0 commit 7f97dc1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/babel-core/test/errors-stacks.js
Expand Up @@ -306,18 +306,17 @@ describe("@babel/core errors", function () {
process.execPath,
[
"--frozen-intrinsics",
"--input-type=module",
"-e",
`
const babel = require("../lib/index.js");
babel.parseSync("foo;", {
import * as babel from "@babel/core";
await babel.parseAsync("foo;", {
root: String.raw\`${fixture("valid")}\`,
});
console.log("%done%");
`,
],
{
cwd: __dirname,
},
{ cwd: __dirname },
).output + "",
).toContain("%done%");
},
Expand Down

0 comments on commit 7f97dc1

Please sign in to comment.