Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Jest tests both not running and not passing #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dljsjr
Copy link

@dljsjr dljsjr commented Feb 5, 2025

Changes

  • Add explicit dev dependency on ts-node, which fixes a configuration issue with TypeScript/ts-jest that would prevent tests from running.
  • Update the DateTime JSON conversion tests:
    • Update the deserializer logic so that it applies the zone offset to the resulting DateTime object if there is one in the ISO String
    • Use the ISO strings for equality comparisons, since the .equals() method on the DateTime object does a field-wise deep comparison, and zones don't serialize/deserialize symmetrically.

- Add explicit dev dependency on `ts-node`, which fixes an configuration
issue with TypeScript/`ts-jest` that would prevent tests from running.
- Update the DateTime JSON conversion tests:
  - Update the deserializer logic so that it applies the zone offset to the
    resulting DateTime object if there is one in the ISO String
  - Use the ISO strings for equality comparisons, since the `.equals()` method
    on the DateTime object does a field-wise deep comparison, and zones don't
    serialize/deserialize symmetrically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant