Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dansysanalyst committed Mar 20, 2023
1 parent 3685240 commit 5890ed8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@

All notable changes to the "pest-snippets" extension will be documented in this file.

## [2.0.0]

- Ready for Pest V2
- Added `:petodo` and `:pitodo` to generate a test with `->todo()`
- Added `:penoex` and `:pitnoex` to generate a test with `->throwsNoExceptions()`
- Added `:pextobearray` for `->toBeArray()`
- Added `:pextocontainonlyins` for `->toContainOnlyInstancesOf()`
- Added `:pextohavemethod` for `->toHaveMethod()`
- Added `:pextohavemethods` for `->toHaveMethods()`
- Added `:pextobefile` for `->toBeFile()`
- Added `:pextobereadablefile` for `->toBeReadableFile()`
- Added `:pextobewritablefile` for `->toBeWritableFile()`
- Added `:pexdef` for `->defer()->`
- Improved `throwsIf` snippet
- Removed `:pextap` due to deprecation of `->tap()`
- Removed `:pteo` and `:pito` due to deprecation of `->only()`

```php
test('throws no exceptions', function () {
//...
})->throwsNoExceptions();
```

## [1.0.7]

- DOC: README improvements
Expand Down
Binary file added dist/pest-snippets-2.0.0.vsix
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Pest Snippets",
"publisher": "dansysanalyst",
"description": "Snippets for Pest PHP testing framework",
"version": "1.0.7",
"version": "2.0.0",
"engines": {
"vscode": "^1.57.0"
},
Expand Down

0 comments on commit 5890ed8

Please sign in to comment.