@@ -40,7 +40,7 @@ void useNodeAndNpmFromNodeGradlePlugin() throws Exception {
40
40
" npmWorkDir = file(\" ${buildDir}/npm\" )" ,
41
41
"}" ,
42
42
"def prettierConfig = [:]" ,
43
- "prettierConfig['printWidth'] = 50 " ,
43
+ "prettierConfig['printWidth'] = 20 " ,
44
44
"prettierConfig['parser'] = 'typescript'" ,
45
45
"def npmExec = System.getProperty('os.name').toLowerCase().contains('windows') ? '/npm.cmd' : '/bin/npm'" ,
46
46
"def nodeExec = System.getProperty('os.name').toLowerCase().contains('windows') ? '/node.exe' : '/bin/node'" ,
@@ -59,7 +59,7 @@ void useNodeAndNpmFromNodeGradlePlugin() throws Exception {
59
59
// then run spotless using that node installation
60
60
final BuildResult spotlessApply = gradleRunner ().withArguments ("--stacktrace" , "spotlessApply" ).build ();
61
61
Assertions .assertThat (spotlessApply .getOutput ()).contains ("BUILD SUCCESSFUL" );
62
- assertFile ("test.ts" ).sameAsResource ("npm/prettier/config/typescript.configfile .clean" );
62
+ assertFile ("test.ts" ).sameAsResource ("npm/prettier/config/typescript.configfile_prettier_2 .clean" );
63
63
} catch (Exception e ) {
64
64
printContents ();
65
65
throw e ;
@@ -79,7 +79,7 @@ void useNodeAndNpmFromNodeGradlePlugin_example1() throws Exception {
79
79
setFile ("test.ts" ).toResource ("npm/prettier/config/typescript.dirty" );
80
80
final BuildResult spotlessApply = gradleRunner ().withArguments ("--stacktrace" , "spotlessApply" ).build ();
81
81
Assertions .assertThat (spotlessApply .getOutput ()).contains ("BUILD SUCCESSFUL" );
82
- assertFile ("test.ts" ).sameAsResource ("npm/prettier/config/typescript.configfile .clean" );
82
+ assertFile ("test.ts" ).sameAsResource ("npm/prettier/config/typescript.configfile_prettier_2 .clean" );
83
83
} catch (Exception e ) {
84
84
printContents ();
85
85
throw e ;
@@ -93,7 +93,7 @@ void useNpmFromNodeGradlePlugin_example2() throws Exception {
93
93
setFile ("test.ts" ).toResource ("npm/prettier/config/typescript.dirty" );
94
94
final BuildResult spotlessApply = gradleRunner ().withArguments ("--stacktrace" , "spotlessApply" ).build ();
95
95
Assertions .assertThat (spotlessApply .getOutput ()).contains ("BUILD SUCCESSFUL" );
96
- assertFile ("test.ts" ).sameAsResource ("npm/prettier/config/typescript.configfile .clean" );
96
+ assertFile ("test.ts" ).sameAsResource ("npm/prettier/config/typescript.configfile_prettier_2 .clean" );
97
97
} catch (Exception e ) {
98
98
printContents ();
99
99
throw e ;
@@ -115,7 +115,7 @@ void useNpmFromNodeGradlePlugin() throws Exception {
115
115
" workDir = file(\" ${buildDir}/nodejs\" )" ,
116
116
"}" ,
117
117
"def prettierConfig = [:]" ,
118
- "prettierConfig['printWidth'] = 50 " ,
118
+ "prettierConfig['printWidth'] = 20 " ,
119
119
"prettierConfig['parser'] = 'typescript'" ,
120
120
"def npmExec = System.getProperty('os.name').toLowerCase().contains('windows') ? '/npm.cmd' : '/bin/npm'" ,
121
121
"spotless {" ,
@@ -132,7 +132,7 @@ void useNpmFromNodeGradlePlugin() throws Exception {
132
132
// then run spotless using that node installation
133
133
final BuildResult spotlessApply = gradleRunner ().withArguments ("--stacktrace" , "spotlessApply" ).build ();
134
134
Assertions .assertThat (spotlessApply .getOutput ()).contains ("BUILD SUCCESSFUL" );
135
- assertFile ("test.ts" ).sameAsResource ("npm/prettier/config/typescript.configfile .clean" );
135
+ assertFile ("test.ts" ).sameAsResource ("npm/prettier/config/typescript.configfile_prettier_2 .clean" );
136
136
} catch (Exception e ) {
137
137
printContents ();
138
138
throw e ;
@@ -154,7 +154,7 @@ void useNpmNextToConfiguredNodePluginFromNodeGradlePlugin() throws Exception {
154
154
" workDir = file(\" ${buildDir}/nodejs\" )" ,
155
155
"}" ,
156
156
"def prettierConfig = [:]" ,
157
- "prettierConfig['printWidth'] = 50 " ,
157
+ "prettierConfig['printWidth'] = 20 " ,
158
158
"prettierConfig['parser'] = 'typescript'" ,
159
159
"def nodeExec = System.getProperty('os.name').toLowerCase().contains('windows') ? '/node.exe' : '/bin/node'" ,
160
160
"spotless {" ,
@@ -171,7 +171,7 @@ void useNpmNextToConfiguredNodePluginFromNodeGradlePlugin() throws Exception {
171
171
// then run spotless using that node installation
172
172
final BuildResult spotlessApply = gradleRunner ().withArguments ("--stacktrace" , "spotlessApply" ).build ();
173
173
Assertions .assertThat (spotlessApply .getOutput ()).contains ("BUILD SUCCESSFUL" );
174
- assertFile ("test.ts" ).sameAsResource ("npm/prettier/config/typescript.configfile .clean" );
174
+ assertFile ("test.ts" ).sameAsResource ("npm/prettier/config/typescript.configfile_prettier_2 .clean" );
175
175
} catch (Exception e ) {
176
176
printContents ();
177
177
throw e ;
0 commit comments