testcafe 2.0.0-rc.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.0 (2022-08-31)
4
+
5
+ ### TypeScript update
6
+
7
+ > :warning:
8
+ > TestCafe 2.0 includes a breaking change.
9
+ 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.
10
+
11
+ Read the [TestCafe 2.0 Migration Guide](https://testcafe.io/documentation/404017/recipes/migration/testcafe-2-0-migration-guide) to learn more.
12
+
13
+ ### Improvement: New ways to ignore JavaScript errors
14
+
15
+ TestCafe v2.0 introduces new ways to ignore JavaScript errors during test runs.
16
+
17
+ Two new methods allow you to ignore errors on a per-test or a per-fixture basis.
18
+
19
+ * Use the [test.skipJsErrors](https://testcafe.io/documentation/404026/reference/test-api/test/skipjserrors) method to ignore JavaScript errors in specific tests.
20
+ * Use the [fixture.skipJsErrors](https://testcafe.io/documentation/404025/reference/test-api/fixture/skipjserrors) method to ignore JavaScript errors for specific fixtures.
21
+ * 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.
22
+
23
+ For each of the methods above, you can define the following options:
24
+
25
+ * The pageUrl option filters errors by page URL.
26
+ * The message option filters errors by message.
27
+ * The stack option filters errors by call stack.
28
+
29
+ Read the [Skip JavaScript Errors](https://testcafe.io/documentation/404038/recipes/debugging/skip-javascript-errors) recipe to learn more.
30
+
3
31
  ## v1.20.1 (2022-08-08)
4
32
 
5
33
  ### Bug Fixes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "testcafe",
3
3
  "description": "Automated browser testing for the modern web development stack.",
4
4
  "license": "MIT",
5
- "version": "2.0.0-rc.4",
5
+ "version": "2.0.0",
6
6
  "author": {
7
7
  "name": "Developer Express Inc.",
8
8
  "url": "https://www.devexpress.com/"