Mock publish repository git mutations
- add publishRepository query key mock - add sourceControlPublishRepository mutation options mock Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
98a7847022
commit
22470229a9
1 file changed
+2
@@ -100,12 +100,14 @@ vi.mock("~/editorPreferences", () => ({
|
||||
vi.mock("~/lib/gitReactQuery", () => ({
|
||||
gitInitMutationOptions: vi.fn(() => ({ __kind: "init" })),
|
||||
gitMutationKeys: {
|
||||
publishRepository: vi.fn(() => ["publish-repository"]),
|
||||
pull: vi.fn(() => ["pull"]),
|
||||
runStackedAction: vi.fn(() => ["run-stacked-action"]),
|
||||
},
|
||||
gitPullMutationOptions: vi.fn(() => ({ __kind: "pull" })),
|
||||
gitRunStackedActionMutationOptions: vi.fn(() => ({ __kind: "run-stacked-action" })),
|
||||
invalidateGitQueries: invalidateGitQueriesSpy,
|
||||
sourceControlPublishRepositoryMutationOptions: vi.fn(() => ({ __kind: "publish-repository" })),
|
||||
}));
|
||||
|
||||
vi.mock("~/lib/gitStatusState", () => ({
|
||||
|
||||
Reference in new issue
Block a user