From 2d5457df15d8c4a81362bb2d185b5c6013faa1d8 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Wed, 8 Jan 2020 14:59:53 -0500 Subject: feat(flags): script arguments come after '--' (#3621) --- std/prettier/main_test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'std/prettier') diff --git a/std/prettier/main_test.ts b/std/prettier/main_test.ts index 5e9c0ad57..0a7a05a46 100644 --- a/std/prettier/main_test.ts +++ b/std/prettier/main_test.ts @@ -25,7 +25,8 @@ const cmd = [ "--allow-run", "--allow-write", "--allow-read", - "./prettier/main.ts" + "./prettier/main.ts", + "--" ]; const testdata = join("prettier", "testdata"); @@ -402,6 +403,7 @@ test(async function testPrettierWithAutoConfig(): Promise { "--allow-read", "--allow-env", prettierFile, + "--", "../5.ts", "--config", "auto" @@ -468,6 +470,7 @@ test(async function testPrettierWithSpecifiedConfig(): Promise { "--allow-read", "--allow-env", prettierFile, + "--", "../5.ts", "--config", config.name @@ -503,6 +506,7 @@ test(async function testPrettierWithAutoIgnore(): Promise { "--allow-read", "--allow-env", prettierFile, + "--", "**/*", "--ignore-path", "auto" @@ -531,6 +535,7 @@ test(async function testPrettierWithSpecifiedIgnore(): Promise { "--allow-read", "--allow-env", prettierFile, + "--", "**/*", "--ignore-path", "typescript.prettierignore" -- cgit v1.2.3