lint, and change test paths in CI

This commit is contained in:
grumbulon 2023-03-11 09:14:10 -05:00
parent 6ecf051982
commit ac42ad6196
2 changed files with 2 additions and 3 deletions

View file

@ -48,4 +48,4 @@ test-frontend:
pnpm -F frontend "test:unit"
test-backend:
go test -v -cover ./internal/api
go test -v -cover ./internal/...

View file

@ -21,13 +21,12 @@ func TestConfig(t *testing.T) {
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
if tc.name == "Should read config file successfully" {
f, err := os.Create("config.yaml")
if err != nil {
assert.NotNil(t, err)
}
defer os.Remove(f.Name())
defer os.Remove(f.Name()) //nolint: errcheck
} else {
err := os.Remove("config.yaml")
if err != nil {