Skip to content

Commit

Permalink
Add more suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Oleg Bespalov <[email protected]>
  • Loading branch information
inancgumus and olegbespalov authored Feb 12, 2025
1 parent dd0e060 commit 810900c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release notes/v0.57.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ k6 `v0.57.0` is here 🎉! This release includes:

## Breaking changes

- [#4161](https://github.com/grafana/k6/pull/4161) Drops `k6/experimental/browser`. If you are still using it, please follow the [instructions](https://grafana.com/docs/k6/latest/using-k6-browser/migrating-to-k6-v0-52/) to move to the not experimental module.
- [#4161](https://github.com/grafana/k6/pull/4161) Drops `k6/experimental/browser`. If you're still using it, follow the [instructions](https://grafana.com/docs/k6/latest/using-k6-browser/migrating-to-k6-v0-52/) to move to the graduated and stable `k6/browser` module.
- [#4133](https://github.com/grafana/k6/pull/4133) Moves all not publicly used APIs in `internal` package. This was based on the publicly available extensions for k6 and may break private ones. More APIs will likely be removed or updated in follow-up releases after this more mechanical change.
- [#4292](https://github.com/grafana/k6/pull/4292) TypeScript is automatically supported and recognized if the script files use the `.ts` extension. It also deprecates `experimental_enhanced` compatibility mode as it is no longer necessary.

Expand All @@ -18,8 +18,8 @@ k6 `v0.57.0` is here 🎉! This release includes:

The k6 team has been developing a new official jslib dedicated to functional testing. While it is still under active development and will potentially see breaking changes, the set of APIs and behaviors it offers are meant to make their way into k6 eventually, and it is now available for early feedback.

[k6-testing](https://github.com/grafana/k6-jslib-testing) is a k6 javascript library that offers a seamless way to write functional tests in k6, using a Playwright-compatible assertions API. It exposes an `expect` function, with which assertions can be performed using specific matchers that reflect the expectation.
When assertions fail, the test will immediately fail with a clear error message, including the expected and actual values in a similar fashion to what users would observe when using Playwright assertions.
[k6-testing](https://github.com/grafana/k6-jslib-testing) is a k6 JavaScript library that offers a seamless way to write functional tests in k6, using a Playwright-compatible assertions API. It exposes an `expect` function, with which assertions can be performed using specific matchers that reflect the expected results.
Unlike current k6's `check` when `expects` assertions fail, the test will immediately fail with a clear error message, including the expected and actual values in a similar fashion to what users would observe when using Playwright assertions.

[There are many generic matchers](https://github.com/grafana/k6-jslib-testing?tab=readme-ov-file#3-standard-assertions) (and more to come), such as `toEqual`, `toBe`, or `toBeTruthy`, to only name a few, that can be used to assert conditions during a k6 test.

Expand Down

0 comments on commit 810900c

Please sign in to comment.