# Testing signals — moment/luxon

> Canonical page: https://codevetter.com/unpack/luxon/testing-signals

# Testing signals — moment/luxon

Scanned commit f427515a38f6a671f8de663e6bcc040ed81f114e (2026-08-09). Generated by codevetter codevetter 1.15.0 on 2026-10-02.

Source inspection; upstream code and tests were not executed.

Tests and CI were inspected, not executed; no passing result or measured coverage is asserted. Jest runs in Node with Babel transformation and coverage collection from source files. Inspected suites cover parsing, DST, localization, duration conversion, interval semantics, and selected fallback behavior. This inventory is bounded: browser rendering, published bundle loading, and release behavior are outside the configured source-test scope.
- Jest searches test/, uses the Node environment and babel-jest, loads setupTests.js, and collects src/**/*.js coverage except src/zone.js; these settings were inspected, not run. — [jest.config.js#L1-L10](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/jest.config.js#L1-L10) [package.json#L22-L23](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/package.json#L22-L23) [test/setupTests.js#L3-L18](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/setupTests.js#L3-L18)
- CI declares Ubuntu jobs on Node 20.20.1, 22.22.1, 24.14.0, and 25.8.1 with LANG=en_US.utf8 and TZ=America/New_York, followed by install, build, format-check, coverage tests, and site generation; execution status was not inspected. — [.github/workflows/test.yml#L9-L38](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/.github/workflows/test.yml#L9-L38)
- DST tests distinguish fromObject's current-offset overlap choice from local's cached-offset choice and assert gap bumping, wasHole, and arithmetic across transitions. — [test/datetime/dst.test.js#L5-L68](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/datetime/dst.test.js#L5-L68) [test/datetime/dst.test.js#L71-L116](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/datetime/dst.test.js#L71-L116)
- Parsing tests assert ISO offset interpretation versus setZone retention, custom token fields and incompatible-input reasons, reusable-parser equivalence, and locale mismatch errors. — [test/datetime/regexParse.test.js#L10-L64](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/datetime/regexParse.test.js#L10-L64) [test/datetime/tokenParse.test.js#L10-L44](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/datetime/tokenParse.test.js#L10-L44) [test/datetime/tokenParse.test.js#L1245-L1263](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/datetime/tokenParse.test.js#L1245-L1263)
- Formatting tests cover output calendars, numbering-system overrides, IANA/fixed/custom zones, and invalid output; locale-week tests assert differing week starts and year-boundary behavior. — [test/datetime/format.test.js#L471-L547](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/datetime/format.test.js#L471-L547) [test/datetime/localeWeek.test.js#L11-L45](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/datetime/localeWeek.test.js#L11-L45)
- Duration tests distinguish casual and longterm conversion factors and exercise a custom business-time matrix, including fractional-week conversion into days, hours, and minutes. — [test/duration/accuracy.test.js#L5-L23](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/duration/accuracy.test.js#L5-L23) [test/duration/customMatrix.test.js#L6-L48](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/duration/customMatrix.test.js#L6-L48)
- Interval tests cover duration/end alternatives under throwOnInvalid, abbreviated-end inheritance, intersection/merge boundaries, positive-duration splitting, and varying month lengths; two invalid/zero-duration tests also use an already-invalid reversed interval. — [test/interval/parse.test.js#L124-L172](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/interval/parse.test.js#L124-L172) [test/interval/many.test.js#L74-L106](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/interval/many.test.js#L74-L106) [test/interval/many.test.js#L325-L375](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/interval/many.test.js#L325-L375)
- Helpers simulate missing RelativeTimeFormat and locale-week APIs and restore globals; however, Jest's configured roots and coverage targets do not exercise site scripts or build tasks as coverage subjects, and the inspected CI declares no browser test step. — [test/helpers.js#L5-L30](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/helpers.js#L5-L30) [test/datetime/degrade.test.js#L6-L12](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/test/datetime/degrade.test.js#L6-L12) [jest.config.js#L2-L9](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/jest.config.js#L2-L9) [.github/workflows/test.yml#L33-L38](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/.github/workflows/test.yml#L33-L38)

Every claim links to its cited files at the pinned commit. Citations identify source evidence; they do not establish runtime correctness. Independent CodeVetter scan — not reviewed by upstream maintainers.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
