Files
test-repo/tests/format/misc/errors/js/hack-pipeline/jsfmt.spec.js
T
Sosuke Suzuki 53f95f3500 Support hack-style pipeline (#11335)
* Avoid to conflicts to v8intrinsic plugin

* Support hack-style pipeline

* Update tests for hask-style pipeline

* Update tests 2

* Add changelog

* Update misc tests

* Address reviews

* Fix type error

* Copy plugin array

* Add tests

* Address review

* Add error tests
2021-08-15 01:16:13 +09:00

19 lines
313 B
JavaScript

run_spec(
{
dirname: __dirname,
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"]
);