Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func AddFlowEntriesToCursorIgnore(targetDir string, loader flowkit.ReaderWriter)
".env",
"",
"# Pay attention to imports directory",
"!imports/**",
"!imports",
}

cursorIgnorePath := filepath.Join(targetDir, ".cursorignore")
Expand Down
4 changes: 2 additions & 2 deletions internal/util/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestAddFlowEntriesToCursorIgnore_NoDuplicates(t *testing.T) {
content, err := state.ReaderWriter().ReadFile(".cursorignore")
require.NoError(t, err, "Failed to read cursorignore file")

expectedEntries := []string{"# flow", "emulator-account.pkey", ".env", "# Pay attention to imports directory", "!imports/**"}
expectedEntries := []string{"# flow", "emulator-account.pkey", ".env", "# Pay attention to imports directory", "!imports"}
for _, entry := range expectedEntries {
assert.Contains(t, string(content), entry, "Expected cursorignore to contain %s", entry)
}
Expand Down Expand Up @@ -114,7 +114,7 @@ func TestAddFlowEntriesToCursorIgnore_WithExistingContent(t *testing.T) {

assert.Contains(t, string(content), existingContent, "Expected existing content to be preserved")

flowEntries := []string{"# flow", "emulator-account.pkey", ".env", "# Pay attention to imports directory", "!imports/**"}
flowEntries := []string{"# flow", "emulator-account.pkey", ".env", "# Pay attention to imports directory", "!imports"}
for _, entry := range flowEntries {
assert.Contains(t, string(content), entry, "Expected cursorignore to contain %s", entry)
}
Expand Down
Loading