jest-location-mock icon indicating copy to clipboard operation
jest-location-mock copied to clipboard

Breaking: Integrate with `window.history`, add setter method on `window.location`, improve tests and other project meta

Open evelynhathaway opened this issue 1 year ago • 1 comments

Breaking

  • Breaking: Add setter method on window.location
  • Breaking: Add spies and proxy for window.history to track its updates to the original window.location (fixes #158, fixes #123)

Improvements

  • Docs: Add limitations, new features, alternative setup and configuration methods to readme (related to workarounds proposed in #123)

Internal

  • Chore: Simplify GitHub Actions npm cache

  • Chore: Remove extraneous eslint disables

  • Chore: Improve tests for existing logic

evelynhathaway avatar Oct 19 '23 07:10 evelynhathaway

jsdom v23.1.0 has changed the history behavior. I should check to see what impact that may have to this PR

evelynhathaway avatar Jan 17 '24 00:01 evelynhathaway