Skip to content

Commit 35cd244

Browse files
committed
fix: disable unix-only tests
maybe replace with a portable solution later
1 parent 9e8c7f9 commit 35cd244

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/test/java/com/diffplug/spotless/cli/steps/PrettierTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.io.IOException;
2020

2121
import org.junit.jupiter.api.Test;
22+
import org.junit.jupiter.api.condition.DisabledOnOs;
2223

2324
import com.diffplug.spotless.cli.CLIIntegrationHarness;
2425
import com.diffplug.spotless.cli.SpotlessCLIRunner;
@@ -27,6 +28,7 @@
2728
import com.diffplug.spotless.tag.NpmTest;
2829

2930
import static org.assertj.core.api.Assertions.assertThat;
31+
import static org.junit.jupiter.api.condition.OS.WINDOWS;
3032

3133
@NpmTest
3234
@CliProcessNpmTest
@@ -101,6 +103,7 @@ void itUsesACacheDir() throws IOException {
101103
}
102104

103105
@Test
106+
@DisabledOnOs(WINDOWS)
104107
void itUsesNpmExec() {
105108
setFile("test.ts").toResource("npm/prettier/config/typescript.dirty");
106109
File npmOut = newFile("npmoutput.txt");
@@ -139,6 +142,7 @@ void itUsesNpmExec() {
139142
}
140143

141144
@Test
145+
@DisabledOnOs(WINDOWS)
142146
void itUsesNodeExec() {
143147
setFile("test.ts").toResource("npm/prettier/config/typescript.dirty");
144148
File npmOut = newFile("npmoutput.txt");

0 commit comments

Comments
 (0)