Compare commits

...

5 Commits

Author SHA1 Message Date
cf5275293f fix: snapshots directory 2023-07-20 13:47:23 -05:00
81efe5953b release: v2.9.2 2023-07-20 13:35:03 -05:00
a37a3b9f99 fix: non-working beforeEach 2023-07-20 13:27:41 -05:00
9100913184 release: v2.9.1 2023-07-20 07:39:17 -05:00
8fdb0b3d32 chore: bump dependencies 2023-07-20 07:06:08 -05:00
7 changed files with 19 additions and 9 deletions

View File

@ -2,6 +2,14 @@
## Unreleased
## [v2.9.2 (2023-07-20)](https://github.com/pestphp/pest/compare/v2.9.1...v2.9.2)
TODO
## [v2.9.1 (2023-07-20)](https://github.com/pestphp/pest/compare/v2.9.0...v2.9.1)
TODO
## [v2.9.0 (2023-07-19)](https://github.com/pestphp/pest/compare/v2.8.1...v2.9.0)
TODO

View File

@ -18,16 +18,16 @@
],
"require": {
"php": "^8.1.0",
"brianium/paratest": "^7.2.2",
"brianium/paratest": "^7.2.3",
"nunomaduro/collision": "^7.7.0",
"nunomaduro/termwind": "^1.15.1",
"pestphp/pest-plugin": "^2.0.1",
"pestphp/pest-plugin-arch": "^2.2.2",
"phpunit/phpunit": "^10.2.3"
"phpunit/phpunit": "^10.2.6"
},
"conflict": {
"webmozart/assert": "<1.11.0",
"phpunit/phpunit": ">10.2.3"
"phpunit/phpunit": ">10.2.6"
},
"autoload": {
"psr-4": {

View File

@ -6,7 +6,7 @@ namespace Pest;
function version(): string
{
return '2.9.0';
return '2.9.2';
}
function testDirectory(string $file = ''): string

View File

@ -115,7 +115,7 @@ final class Backtrace
continue;
}
if (str_contains($trace['file'], 'pest/src')) {
if (str_contains($trace['file'], 'pest'.DIRECTORY_SEPARATOR.'src')) {
continue;
}

View File

@ -76,8 +76,10 @@ final class TestSuite
$this->afterEach = new AfterEachRepository();
$this->afterAll = new AfterAllRepository();
$this->rootPath = (string) realpath($rootPath);
$this->snapshots = new SnapshotRepository($this->rootPath.'/'.$this->testPath, '.pest/snapshots');
$this->snapshots = new SnapshotRepository(
implode(DIRECTORY_SEPARATOR, [$this->rootPath, $this->testPath]),
implode(DIRECTORY_SEPARATOR, ['.pest', 'snapshots']),
);
}
/**

View File

@ -1,5 +1,5 @@
Pest Testing Framework 2.9.0.
Pest Testing Framework 2.9.2.
USAGE: pest <file> [options]

View File

@ -1,3 +1,3 @@
Pest Testing Framework 2.9.0.
Pest Testing Framework 2.9.2.