All notable changes to the "pest-snippets" extension will be documented in this file.
- 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()
test('throws no exceptions', function () {
//...
})->throwsNoExceptions();
- DOC: README improvements
- Modified logo
- Updated screenshot
- Added LICENSE
- Added
:pextothrow
for->toThrow()
- Added compile.sh script
- Fixed and update README.md
- Changed
:ptet
into->test()->throws()
- Changed
:pitt
into->it()->throws()
- Added
:ptetif
for->test()->throwsIf()
- Added
:pittif
for->it()->throwsIf()
- Added
:pextohaveproperties
for->toHaveProperties()
- Added
:pexwhen
for->when()
- Added
:pexunless
for->unless()
- Added
:pexmatch
for->match()
- Added
:ptet
fortest()->throwsIf()
- Added
:pitt
forit()->throwsIf()
- Added
:pextohavelength
for->toHaveLength()
- Added
:pextothrow
for->toThrow()
- Added
:pextobetruthy
for->toBeTruthy()
- Added
:pextobefalsy
for->toBeFalsy()
method
- Added
:pextobein
for->toBeIn()
- Added
:pextap
for->tap()
method
- Removed
->
frompex:
- Removed indentation from every
pex:...
- Removed expect() from every
pex:...
- Removed uncessary key focousing from
pex:...
which do not accept arguments - Added
:pexjson
forjson()
method from Pest 1.6.0 - Added
:pextobedirectory
for->toBeDirectory()
- Added
:ptewip
andpitwip
for creating test functions with Skip->('wip')
- Initial release of Pest Snippets extension