From 480b5099cd9972bd42b38e4ffc5b6a5d7c8cca4a Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Sun, 30 Mar 2025 01:36:48 +0100 Subject: [PATCH] test(setup): add testing folders and pest config --- tests/Browser/.gitkeep | 0 tests/Feature/.gitkeep | 0 tests/Pest.php | 45 ++++++++++++++++++++++++++++++++++++++++++ tests/Unit/.gitkeep | 0 4 files changed, 45 insertions(+) create mode 100644 tests/Browser/.gitkeep create mode 100644 tests/Feature/.gitkeep create mode 100644 tests/Pest.php create mode 100644 tests/Unit/.gitkeep diff --git a/tests/Browser/.gitkeep b/tests/Browser/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/tests/Feature/.gitkeep b/tests/Feature/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/tests/Pest.php b/tests/Pest.php new file mode 100644 index 000000000..749d93f59 --- /dev/null +++ b/tests/Pest.php @@ -0,0 +1,45 @@ +extend(Tests\TestCase::class)->in('Feature'); + +/* +|-------------------------------------------------------------------------- +| Expectations +|-------------------------------------------------------------------------- +| +| When you're writing tests, you often need to check that values meet certain conditions. The +| "expect()" function gives you access to a set of "expectations" methods that you can use +| to assert different things. Of course, you may extend the Expectation API at any time. +| +*/ + +expect()->extend('toBeOne', fn () => $this->toBe(1)); + +/* +|-------------------------------------------------------------------------- +| Functions +|-------------------------------------------------------------------------- +| +| While Pest is very powerful out-of-the-box, you may have some testing code specific to your +| project that you don't want to repeat in every file. Here you can also expose helpers as +| global functions to help you to reduce the number of lines of code in your test files. +| +*/ + +function something(): void +{ + // .. +} diff --git a/tests/Unit/.gitkeep b/tests/Unit/.gitkeep new file mode 100644 index 000000000..e69de29bb