Skip to content

Commit 776e47a

Browse files
authored
chore: remove keyring mock (#3517)
* chore: remove keyring mock * chore: include files without tests in coverage
1 parent 0759b2f commit 776e47a

File tree

3 files changed

+4
-71
lines changed

3 files changed

+4
-71
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ jobs:
2121
# Required by: internal/utils/credentials/keyring_test.go
2222
- uses: t1m0thyj/unlock-keyring@v1
2323
- run: |
24-
go run gotest.tools/gotestsum -- -race -v -count=1 -coverprofile=coverage.out \
25-
`go list ./... | grep -Ev 'cmd|docs|examples|pkg/api|tools'`
24+
pkgs=$(go list ./pkg/... | grep -Ev 'pkg/api' | paste -sd ',' -)
25+
go run gotest.tools/gotestsum -- -race -v -count=1 ./... \
26+
-coverpkg="./cmd/...,./internal/...,${pkgs}" -coverprofile=coverage.out
2627
2728
- uses: coverallsapp/github-action@v2
2829
with:

internal/logout/logout_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestLogoutCommand(t *testing.T) {
3434
})
3535

3636
t.Run("removes all Supabase CLI credentials", func(t *testing.T) {
37-
t.Cleanup(credentials.MockInit())
37+
keyring.MockInit()
3838
require.NoError(t, credentials.StoreProvider.Set(utils.AccessTokenKey, token))
3939
require.NoError(t, credentials.StoreProvider.Set("project1", "password1"))
4040
require.NoError(t, credentials.StoreProvider.Set("project2", "password2"))

internal/utils/credentials/store_mock.go

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)