(t *testing.T)
| 169 | resolvedSeverity := pluginoptions.ResolveDiagnosticSeverityForFile(opts, "/repo/generated/example.ts", "/repo/tsconfig.json", true) |
| 170 | if got := resolvedSeverity["deterministicKeys"]; got != etscore.SeverityOff { |
| 171 | t.Errorf("deterministicKeys severity = %v, want %v", got, etscore.SeverityOff) |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | func intPtr(value int) *int { |
| 176 | return &value |
| 177 | } |
| 178 | |
| 179 | func TestParseFromPlugins_ExitCodeExplicitTrue(t *testing.T) { |
| 180 | plugins := makePlugins(makePluginMap( |
| 181 | "name", etscore.EffectPluginName, |
| 182 | "ignoreEffectSuggestionsInTscExitCode", true, |
| 183 | "ignoreEffectWarningsInTscExitCode", true, |
| 184 | )) |
| 185 | opts := etscore.ParseFromPlugins(plugins) |
| 186 | if opts == nil { |
| 187 | t.Fatal("expected non-nil options") |
| 188 | } |
| 189 | if !opts.IgnoreEffectSuggestionsInTscExitCode { |
| 190 | t.Error("expected IgnoreEffectSuggestionsInTscExitCode to be true") |
nothing calls this directly
no test coverage detected