File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,13 @@ import {
66 putBackPrettierRC ,
77} from "./format.test" ;
88
9- const testConfig = ( testPath : string , resultPath : string ) => {
9+ const testConfig = (
10+ testPath : string ,
11+ resultPath : string ,
12+ shouldRetry = false ,
13+ ) => {
1014 return async ( ) => {
11- const { actual } = await format ( "config" , testPath ) ;
15+ const { actual } = await format ( "config" , testPath , shouldRetry ) ;
1216 const expected = await getText ( "config" , resultPath ) ;
1317 assert . equal ( actual , expected ) ;
1418 } ;
@@ -21,7 +25,8 @@ suite("Test configurations", function () {
2125 test (
2226 "it uses config from .prettierrc file and does not inherit VS Code settings " ,
2327 /* cspell: disable-next-line */
24- testConfig ( "rcfile/test.js" , "rcfile/test.result.js" ) ,
28+ // Use retry for first test as extension may need time after root .prettierrc is moved
29+ testConfig ( "rcfile/test.js" , "rcfile/test.result.js" , true ) ,
2530 ) ;
2631 test (
2732 "it uses config from prettier.config.js file " ,
You can’t perform that action at this time.
0 commit comments