wire-elements / wire-spy

WireSpy—a sleek new debug bar for Livewire
https://wire-elements.dev/blog/announcing-wirespy-a-sleek-new-debug-bar-for-livewire
MIT License
301 stars 8 forks source link

Breaks Livewire Tests #12

Closed morrislaptop closed 1 week ago

morrislaptop commented 1 week ago

I tried with the basic Counter example...

<?php

use App\Livewire\Counter;
use Livewire\Livewire;

describe('CounterTest', function () {
   it('does something', function () {
        Livewire::test(Counter::class)
            ->assertSetStrict('count', 1)
            ->call('increment')
            ->assertSetStrict('count', 2)
            ->call('decrement')
            ->assertSetStrict('count', 1)
            ->assertStatus(200);
    });
});

And got Failed asserting that null is identical to 1.