Compare commits

...

3 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
6 changed files with 12 additions and 6 deletions

View File

@ -2,6 +2,10 @@
## 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

View File

@ -6,7 +6,7 @@ namespace Pest;
function version(): string
{
return '2.9.1';
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.1.
Pest Testing Framework 2.9.2.
USAGE: pest <file> [options]

View File

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