Skip to content

Commit d24836c

Browse files
committed
fix: update ServeCommandTest to use Path for repository path assertions and enhance .gitignore for frontend build outputs
1 parent f96d86a commit d24836c

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ playwright-report/
4747
test-results/
4848
# Generated explorer CSS (rebuild via: cd src/main/frontend && npm run build:explorer-css)
4949
src/main/resources/static/css/explorer.css
50+
# Frontend build output copied into Spring static resources
51+
src/main/resources/static/assets/CodeGraphView-*.js
52+
src/main/resources/static/assets/index-*.js
53+
src/main/resources/static/assets/index-*.css
54+
src/main/resources/static/assets/vendor-monaco-*.js
55+
src/main/resources/static/assets/vendor-react-*.js
5056

5157
# Distribution
5258
*.tar.gz

src/test/java/io/github/randomcodespace/iq/cli/ServeCommandTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import org.junit.jupiter.api.Test;
44
import picocli.CommandLine;
55

6+
import java.nio.file.Path;
7+
68
import static org.junit.jupiter.api.Assertions.assertEquals;
79
import static org.junit.jupiter.api.Assertions.assertNotNull;
810

@@ -72,6 +74,6 @@ void pathNotSwallowedWhenNoUiPrecedesPath() {
7274
var cmdLine = new CommandLine(cmd);
7375
cmdLine.parseArgs("--no-ui", "/some/repo");
7476
assertEquals(true, cmd.isNoUi());
75-
assertEquals("/some/repo", cmd.getPath().toString());
77+
assertEquals(Path.of("/some/repo"), cmd.getPath());
7678
}
7779
}

0 commit comments

Comments
 (0)