@@ -32,7 +32,7 @@ describe("gracefully handle stdin-filepath with nonexistent directory", () => {
3232} ) ;
3333
3434describe ( "apply editorconfig for stdin-filepath with nonexistent file" , ( ) => {
35- runCli ( "" , [ "--stdin-filepath" , "editorconfig/ nonexistent.js" ] , {
35+ runCli ( "editorconfig " , [ "--stdin-filepath" , "nonexistent.js" ] , {
3636 input : dedent `
3737 function f() {
3838 console.log("should be indented with a tab");
@@ -45,8 +45,8 @@ describe("apply editorconfig for stdin-filepath with nonexistent file", () => {
4545
4646describe ( "apply editorconfig for stdin-filepath with nonexistent directory" , ( ) => {
4747 runCli (
48- "" ,
49- [ "--stdin-filepath" , "editorconfig/ nonexistent/one/two/three.js" ] ,
48+ "editorconfig " ,
49+ [ "--stdin-filepath" , "nonexistent/one/two/three.js" ] ,
5050 {
5151 input : dedent `
5252 function f() {
@@ -61,8 +61,8 @@ describe("apply editorconfig for stdin-filepath with nonexistent directory", ()
6161
6262describe ( "apply editorconfig for stdin-filepath with a deep path" , ( ) => {
6363 runCli (
64- "" ,
65- [ "--stdin-filepath" , "editorconfig/" + " a/". repeat ( 30 ) + "three.js" ] ,
64+ "editorconfig " ,
65+ [ "--stdin-filepath" , "a/" . repeat ( 30 ) + "three.js" ] ,
6666 {
6767 input : dedent `
6868 function f() {
@@ -75,6 +75,8 @@ describe("apply editorconfig for stdin-filepath with a deep path", () => {
7575 } ) ;
7676} ) ;
7777
78+ // TODO: This is currently a false positive as no config actually gets resolved, but Prettier
79+ // somehow formats the input correctly anyway.
7880describe ( "apply editorconfig for stdin-filepath in root" , ( ) => {
7981 const code = dedent `
8082 function f() {
@@ -93,8 +95,8 @@ describe("apply editorconfig for stdin-filepath in root", () => {
9395
9496describe ( "apply editorconfig for stdin-filepath with a deep path" , ( ) => {
9597 runCli (
96- "" ,
97- [ "--stdin-filepath" , "editorconfig/" + " a/". repeat ( 30 ) + "three.js" ] ,
98+ "editorconfig " ,
99+ [ "--stdin-filepath" , "a/" . repeat ( 30 ) + "three.js" ] ,
98100 {
99101 input : dedent `
100102 function f() {
@@ -107,7 +109,9 @@ describe("apply editorconfig for stdin-filepath with a deep path", () => {
107109 } ) ;
108110} ) ;
109111
110- describe ( "don’t apply editorconfig outside project for stdin-filepath with nonexistent directory" , ( ) => {
112+ // TODO: This is currently a false positive. Gotta investigate how it's handled in Prettier v3 to
113+ // gauge the expected behavior.
114+ describe ( "don't apply editorconfig outside project for stdin-filepath with nonexistent directory" , ( ) => {
111115 runCli (
112116 "" ,
113117 [
0 commit comments