Skip to content

Commit

Permalink
chore: new release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 2, 2024
1 parent 8ba55c6 commit 49fc5fb
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 31 deletions.
8 changes: 0 additions & 8 deletions .changeset/funny-pugs-kick.md

This file was deleted.

22 changes: 0 additions & 22 deletions .changeset/strong-kangaroos-fly.md

This file was deleted.

30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
### Changelog

## 0.12.0

### Minor Changes

- [#35](https://github.com/SebastianSedzik/playwright-decorators/pull/35) [`8ba55c6`](https://github.com/SebastianSedzik/playwright-decorators/commit/8ba55c6463a1f431896496f47f78730dded43a6c) Thanks [@SebastianSedzik](https://github.com/SebastianSedzik)! - Enhanced TypeScript support:

- constrained the `@suite` decorator to class contexts only.
- constrained the `@test` decorator to class method context only. Type check of test method arguments.
- exported the `TestArgs` type to provide validity within test methods.

```ts
import { suite, test, TestArgs } from 'playwright-decorators'

@suite()
class ExampleSuite {
@test()
async exampleTest({ page }: TestArgs) {
// <- TestArgs ensures correct types of arguments
// ...
}
}
```

### Patch Changes

- [#29](https://github.com/SebastianSedzik/playwright-decorators/pull/29) [`7398cc2`](https://github.com/SebastianSedzik/playwright-decorators/commit/7398cc2a9aea7c8df3db76bd82714ae94b50011e) Thanks [@SebastianSedzik](https://github.com/SebastianSedzik)! - Fixes of `@skip` and `@annotate` decorators:

- Pass `reason` from `@skip` decorator to the reporter.
- Added support for annotations on skipped tests.

## 0.11.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playwright-decorators",
"version": "0.11.2",
"version": "0.12.0",
"description": "Decorators for writing Playwright based tests.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 49fc5fb

Please sign in to comment.