Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(prettier): output to stdout instead of write file by default unless specified --write flag #332

Merged
merged 14 commits into from
May 21, 2019
Prev Previous commit
Next Next commit
fix eslint
  • Loading branch information
axetroy committed May 16, 2019
commit 2579b95fe762887cc7c58dcd6ed3651935e31576
4 changes: 2 additions & 2 deletions prettier/main_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,13 @@ incididunt ut labore et dolore magna aliqua.
await clearTestdataChanges();
});

test(async function testPrettierPrintToStdout() {
test(async function testPrettierPrintToStdout(): Promise<void> {
await clearTestdataChanges();

const file0 = join(testdata, "0.ts");
const file1 = join(testdata, "formatted.ts");

const getSourceCode = async (f: string) =>
const getSourceCode = async (f: string): Promise<string> =>
decoder.decode(await Deno.readFile(f));

const { stdout } = await run([...cmd, file0]);
Expand Down