• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

whiteand / ts-quartet / 14367176283

09 Apr 2025 09:18PM UTC coverage: 90.893% (-5.7%) from 96.64%
14367176283

Pull #9

github

whiteand
fix: unified errors
Pull Request #9: Standard Compatibility

461 of 481 branches covered (95.84%)

Branch coverage included in aggregate %.

31 of 167 new or added lines in 5 files covered. (18.56%)

1605 of 1792 relevant lines covered (89.56%)

72.1 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

61.9
/src/compilers/implStandard.ts
1
import { StandardSchemaV1 } from "@standard-schema/spec";
2
import { CompilationResult } from "../types";
3

4
export function implStandard<const T, const E>(
1✔
5
  v: CompilationResult<T, E>,
162✔
6
  explanationsToIssues: (explanation: readonly E[]) => StandardSchemaV1.Issue[]
162✔
7
): StandardSchemaV1<unknown, T> {
162✔
8
  return {
162✔
9
    "~standard": {
162✔
10
      validate: (value) =>
162✔
NEW
11
        v(value)
×
NEW
12
          ? {
×
NEW
13
              value: value as T,
×
NEW
14
              issues: undefined,
×
NEW
15
            }
×
NEW
16
          : {
×
NEW
17
              issues: explanationsToIssues(v.explanations),
×
NEW
18
            },
×
19
      vendor: "quartet",
162✔
20
      version: 1,
162✔
21
    },
162✔
22
  };
162✔
23
}
162✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc