Skip to content

v2.0.0

Compare
Choose a tag to compare
@release-drafter release-drafter released this 31 Aug 07:11
· 448 commits to refs/heads/master since this release
94ab4ec

v2.0.0 (2022-08-31)

TypeScript update

⚠️
TestCafe 2.0 includes a breaking change.
The framework’s built-in TypeScript compiler has been updated from version 3.9 to version 4.7. The vast majority of TestCafe users should not experience any issues during the upgrade. However, since TypeScript does not follow the semver versioning policy, even minor TypeScript updates contain breaking changes. Some TypeScript users may need to perform additional actions to ensure the compatibility of their test code.

Read the TestCafe 2.0 Migration Guide to learn more.

Improvement: New ways to ignore JavaScript errors

TestCafe v2.0 introduces new ways to ignore JavaScript errors during test runs.

Two new methods allow you to ignore errors on a per-test or a per-fixture basis.

  • Use the test.skipJsErrors method to ignore JavaScript errors in specific tests.
  • Use the fixture.skipJsErrors method to ignore JavaScript errors for specific fixtures.
  • The t.skipJsErrors action lets you ignore JavaScript errors at specific points in the test.

For each of the methods above, you can define the following options:

  • The pageUrl option filters errors by page URL.
  • The message option filters errors by message.
  • The stack option filters errors by call stack.

Read the Skip JavaScript Errors recipe to learn more.