Skip to content

Commit

Permalink
chore(snapshots): update snapshots after adding new test for beforeAl…
Browse files Browse the repository at this point in the history
…l hook

fix: invalid assertion
  • Loading branch information
laylatichy committed Nov 25, 2024
1 parent 488ee32 commit c045624
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion tests/.snapshots/success.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1425,6 +1425,9 @@
✓ nested → nested afterEach execution order
✓ global afterEach execution order

PASS Tests\Hooks\BeforeAllTest
✓ beforeAll is called

PASS Tests\Hooks\BeforeEachTest
✓ global beforeEach execution order

Expand Down Expand Up @@ -1698,4 +1701,4 @@
WARN Tests\Visual\Version
- visual snapshot of help command output

Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 33 skipped, 1144 passed (2736 assertions)
Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 33 skipped, 1145 passed (2740 assertions)
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
->toHaveProperty('afterAll')
->and($_SERVER['globalHook']->afterAll)
->toBe(0)
->and($_SERVER['beforeAll'])
->and($_SERVER['globalHook']->beforeAll)
->toBe(1);

$_SERVER['globalHook']->afterAll = 1;
Expand Down
2 changes: 1 addition & 1 deletion tests/Visual/Parallel.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

test('parallel', function () use ($run) {
expect($run('--exclude-group=integration'))
->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 24 skipped, 1134 passed (2712 assertions)')
->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 24 skipped, 1135 passed (2716 assertions)')
->toContain('Parallel: 3 processes');
})->skipOnWindows();

Expand Down

0 comments on commit c045624

Please sign in to comment.