Skip to content

Commit

Permalink
release: publish v2.0.0 (#7262)
Browse files Browse the repository at this point in the history
* update versions

* changelog
  • Loading branch information
miherlosev committed Aug 31, 2022
1 parent ac5e0a3 commit 94ab4ec
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .publishrc
Expand Up @@ -8,7 +8,7 @@
"gitTag": true
},
"confirm": false,
"publishTag": "rc",
"publishTag": "latest",
"prePublishScript": "gulp test-server",
"postPublishScript": "gulp docker-publish"
}
28 changes: 28 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,33 @@
# Changelog

## v2.0 (2022-08-31)

### TypeScript update

> :warning:
> 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](https://testcafe.io/documentation/404017/recipes/migration/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](https://testcafe.io/documentation/404026/reference/test-api/test/skipjserrors) method to ignore JavaScript errors in specific tests.
* Use the [fixture.skipJsErrors](https://testcafe.io/documentation/404025/reference/test-api/fixture/skipjserrors) method to ignore JavaScript errors for specific fixtures.
* The [t.skipJsErrors](https://testcafe.io/documentation/404027/reference/test-api/testcontroller/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](https://testcafe.io/documentation/404038/recipes/debugging/skip-javascript-errors) recipe to learn more.

## v1.20.1 (2022-08-08)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "testcafe",
"description": "Automated browser testing for the modern web development stack.",
"license": "MIT",
"version": "2.0.0-rc.4",
"version": "2.0.0",
"author": {
"name": "Developer Express Inc.",
"url": "https://www.devexpress.com/"
Expand Down

0 comments on commit 94ab4ec

Please sign in to comment.