Skip to content

Commit b77ce92

Browse files
committed
TsFmtFormatterStepTest has apparently been broken for a while, not sure why it's been passing. Buildcache bug?
1 parent 133eafc commit b77ce92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testlib/src/test/java/com/diffplug/spotless/npm/TsFmtFormatterStepTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ public void formattingUsingConfigFile() throws Exception {
5757
final String cleanFile = filedir + configFileNameWithoutExtension + ".clean";
5858

5959
// some config options expect to see at least one file in the baseDir, so let's write one there
60-
Files.write(new File(configFile.getParentFile(), configFileNameWithoutExtension + ".ts").toPath(), getTestResource(dirtyFile).getBytes(StandardCharsets.UTF_8));
60+
File srcDir = new File(rootFolder(), "src/main/typescript");
61+
Files.createDirectories(srcDir.toPath());
62+
Files.write(new File(srcDir, configFileNameWithoutExtension + ".ts").toPath(), getTestResource(dirtyFile).getBytes(StandardCharsets.UTF_8));
6163

6264
final FormatterStep formatterStep = TsFmtFormatterStep.create(
6365
TsFmtFormatterStep.defaultDevDependencies(),

0 commit comments

Comments
 (0)