We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5582f2d commit 1def059Copy full SHA for 1def059
1 file changed
vibes/modules_test.go
@@ -975,9 +975,7 @@ func TestModulePolicyPatternValidation(t *testing.T) {
975
ModulePaths: []string{filepath.Join("testdata", "modules")},
976
ModuleAllowList: []string{"[invalid"},
977
})
978
- if err == nil || !strings.Contains(err.Error(), "invalid module allow-list pattern") {
979
- t.Fatalf("expected invalid allow-list pattern error, got %v", err)
980
- }
+ requireErrorContains(t, err, "invalid module allow-list pattern")
981
}
982
983
func TestFormatModuleCycleUsesConciseChain(t *testing.T) {
0 commit comments