Hi, I'm running tests with Pest but in case of error, I do not see full error stack but just a single frame which does not allow me to understand what exactly is wrong
e.g I run a test and get this:
FAILED Tests\Unit\Models\AttendanceTest > it has relevant scope TypeError
Illegal offset type in isset or empty
at vendor\laravel\framework\src\Illuminate\Cache\ArrayStore.php:52
48▕ * @return mixed
49▕ */
50▕ public function get($key)
51▕ {
➜ 52▕ if (! isset($this->storage[$key])) {
53▕ return;
54▕ }
55▕
56▕ $item = $this->storage[$key];
1 vendor\laravel\framework\src\Illuminate\Cache\ArrayStore.php:52
2 vendor\laravel\framework\src\Illuminate\Cache\Repository.php:99
Tests: 1 failed (0 assertions)
Duration: 4.65s
how can I see full error stack ? I have set debug to true already but still couldn't see full error. it's not in the ln the log file either
Well, there's no actual ERROR that happened. The assertion result says, "Failed asserting that 8 is identical to 5."
So the result of your code is 8. It's a success from a Laravel point of view.
The 5 != 8 is a Pest assertion fail, not a Laravel error. Now, why 5 doesn't equal 8 is for you to debug manually.