Skip to content

Tags: TheBrainFamily/wait-for-expect

Tags

v3.0.2

Toggle v3.0.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: Add Promise<void> return type for expectation (#26)

* fix: add Promise<void> return type for expectation

Since 0.6.0 promises and async/await are supported and tested, but the return type of the expectation function did not yet reflect this change.

* fix SecurityError when running tests

Jest fails the tests with “SecurityError: localStorage is not available for opaque origins”. Setting the Jest configuration option "testURL" to "http://localhost/" fixes this (also see: jsdom/jsdom#2304 (comment)).
It’s probably a good idea to upgrade dependencies and remove this option afterwards, since with the current release of Jest this option is no longer required (it defaults to "http://localhost/“ instead of “about:blank”).

v3.0.1

Toggle v3.0.1's commit message
fix: Transpile Object.assign which is not available in IE 11 (#25)

* chore: Bump typescript to 3.2.4

3.1 needed for module scope properties but
this breaks eslint typescript parser. Bumping that
requires 3.2 so we end up using 3.2

* Fix false positive no-unused-vars

v3.0.0

Toggle v3.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: Add runWithRealTimers & getSetTimeoutFn functions

* Add runWithRealTimers & getSetTimeoutFn functions

BREAKING CHANGE: If you are using fake jest timers by default, but upgraded to v2.0 here, you might have to upgrade your tests. Sorry! :(


Co-authored-by: Brais Piñeiro <[email protected]>

v2.0.0

Toggle v2.0.0's commit message
Get setTimeout lazily (#20)

* Get setTimeout and Date.now lazily

This prevents from using old versions of setTimeout/Date.now

* Modify withFakeTimers unit test to cover the correct scenario

BREAKING CHANGE: If you combined fake timers with wait-for-expect that will most probably not work anymore. Please make an issue with your failing usecase, as we couldn't think of a situation where using wait-for-expect and fake timers in the same test would be necessary.

v1.3.0

Toggle v1.3.0's commit message
feat(release): manually release a minor version

There was an issue with a minor release, so this manual-releases.md
change is to release a new minor version.

Reference: #21

v1.2.0

Toggle v1.2.0's commit message
feat: configurable default timeout and interval (#18)

* feat: configurable default timeout and interval

* chore: fix prettier

v1.1.1

Toggle v1.1.1's commit message
fix: default import for typescript (#16)

v1.1.0

Toggle v1.1.0's commit message
feat: use real Date.now to avoid using potentially mocked one (#12)

* (#12) use real Date.now to avoid using potentially mocked one

* (#12) make tsc happy with Date on Window interface and Date jest mock

v1.0.1

Toggle v1.0.1's commit message
1.0.1