Skip to content

Commit

Permalink
Merge branch 'main' into configure-pint
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro authored Feb 14, 2025
2 parents e3a4114 + c5469aa commit 05556eb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ coverage.xml
*.swp
*.swo
.phpunit.cache

# Playwright
node_modules/
/test-results/
Expand Down
2 changes: 2 additions & 0 deletions .temp/e2e/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*
!.gitignore
Empty file removed .temp/e2e/.gitkeep
Empty file.
6 changes: 0 additions & 6 deletions .temp/e2e/runtime.spec.js

This file was deleted.

12 changes: 10 additions & 2 deletions src/PendingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public function toHaveTitle(string $title): self
}

/**
* Build the test result.
* Compile the JavaScript test file.
*/
public function build(): void
public function compile(): void
{
$compiler = new Compiler($this->operations);

Expand All @@ -61,4 +61,12 @@ public function build(): void

expect($result->ok())->toBeTrue();
}

/**
* Ends the chain and builds the test result.
*/
public function __destruct()
{
$this->compile();
}
}

0 comments on commit 05556eb

Please sign in to comment.