Files
test-repo/tests/format/misc/errors/js/hack-pipeline/jsfmt.spec.js
T

19 lines
324 B
JavaScript

runFormatTest(
{
importMeta: import.meta,
snippets: [
"(yield y)",
"(yield)",
"(await y)",
"(a?.b)",
"a?.b",
"(a.b())",
"a.b()",
"(a.b?.())",
"a.b?.()",
"yield",
].map((code) => `async function * a() { a |> foo(%) |> ${code}}`),
},
["babel"],
);