CodeVetter · Repo Unpack · Testing signals
iamkun/dayjs
Tests and CI were inspected, not executed; no passing result or measured coverage is asserted. Jest covers core and plugin behavior, frequently comparing against Moment and using MockDate to control time. The npm test script runs explicit host-timezone matrices before requesting full line coverage. Browser and declaration checks have narrower scopes, and this inventory is bounded rather than exhaustive coverage.
- package.json configures Jest 22 with test roots under test, a *.test.js regex, and src-wide coverage collection; npm test requests a global 100% line threshold, whose satisfaction was not verified.
- Core parsing tests compare now, accepted string forms, timestamps, invalid inputs, millisecond truncation, and clone behavior against Moment; manipulation tests cover locale weeks, unit aliases, month-end/leap-day additions, and fractional days/weeks.
- customParseFormat tests distinguish permissive parsing from strict rejection of zero or overflowing fields and cover ordered alternatives, all-invalid arrays, and locale-aware strict parsing.
- Timezone tests assert formatted output, valueOf, and offsets against moment-timezone, including spring gaps, host/target DST desynchronization, overlap instants, Lord Howe transitions, quarter-hour zones, and invalid-date nonthrowing behavior.
- npm test runs core timezone tests in Auckland, London, Whitehorse, and the default environment, then plugin timezone tests in Paris, London, New York, and Auckland; a test comment explicitly defers broader startOf/set/add calendar arithmetic.
- Separate issue2027 suites install duration/objectSupport in both orders and assert duration and numeric arithmetic, object/string parsing, and setters; the generic plugin test checks prototype APIs, factory APIs, options, and utility access.
- Locale key tests dynamically load locales and validate naming, header comments, arrays/functions, formats, and relative-time keys; plugin declaration tests only check that matching .d.ts files exist, without compiling them.
- Reusable CI invokes lint and npm test with optional Codecov upload. Separately configured Karma/Jasmine Sauce tests load the built core and test window installation, a chain, and nonstandard strings; that browser command is not invoked by the inspected reusable CI workflow.