forked from niuiic/blink-cmp-rg.nvim
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tests): create real git repos to limit search scope
Previously, a hack was used to create fake git directories, but now that tui-sandbox supports running actual shell commands nicely, we can just use that instead.
- Loading branch information
1 parent
9d1351f
commit f0dec94
Showing
8 changed files
with
44 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
integration-tests/cypress/e2e/blink-ripgrep/createFakeGitDirectoriesToLimitRipgrepScope.ts
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
integration-tests/cypress/e2e/blink-ripgrep/createGitReposToLimitSearchScope.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// this works for both GitGrepBackend and RipgrepBackend | ||
export function createGitReposToLimitSearchScope(): void { | ||
cy.nvim_runBlockingShellCommand({ | ||
command: "git init && git add . && git commit -m 'initial commit'", | ||
cwdRelative: ".", | ||
}) | ||
cy.nvim_runBlockingShellCommand({ | ||
command: "git init && git add . && git commit -m 'initial commit'", | ||
cwdRelative: "limited", | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[user] | ||
email=john.doe@example.com | ||
name=John Doe | ||
[init] | ||
defaultBranch=main | ||
# vim: set ft=gitconfig: |