diff --git a/composer.json b/composer.json index b005005..655d841 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "illuminate/queue": "^7.20|^8.19|^9.0|^10.0|^11.0", "illuminate/support": "^7.20|^8.19|^9.0|^10.0|^11.0", "spatie/backtrace": "^1.0", - "spatie/ray": "^1.37|dev-main", + "spatie/ray": "dev-main", "symfony/stopwatch": "4.2|^5.1|^6.0|^7.0", "zbateson/mail-mime-parser": "^1.3.1|^2.0" }, @@ -31,7 +31,7 @@ "guzzlehttp/guzzle": "^7.3", "laravel/framework": "^7.20|^8.19|^9.0|^10.0|^11.0", "orchestra/testbench-core": "^5.0|^6.0|^7.0|^8.0|^9.0", - "pestphp/pest": "^1.22|^2.0", + "pestphp/pest": "^1.22", "phpstan/phpstan": "^0.12.93", "phpunit/phpunit": "^9.3|^10.1", "spatie/pest-plugin-snapshots": "^1.1|^2.0" diff --git a/tests/Unit/MarkdownTest.php b/tests/Unit/MarkdownTest.php index c450431..2484a94 100644 --- a/tests/Unit/MarkdownTest.php +++ b/tests/Unit/MarkdownTest.php @@ -1,7 +1,16 @@ markdown('## Hello World!'); assertMatchesOsSafeSnapshot($this->client->sentRequests()); -}); +})->skip(version_compare(version(), '2.0.0', '>=')); + + +it('can render and send markdown for Pest 2', function () { + ray()->markdown('## Hello World!'); + + assertMatchesOsSafeSnapshot($this->client->sentRequests()); +})->skip(version_compare(version(), '2.0.0', '<')); diff --git a/tests/__snapshots__/MarkdownTest__it_can_render_and_send_markdown_for_Pest_2__1.json b/tests/__snapshots__/MarkdownTest__it_can_render_and_send_markdown_for_Pest_2__1.json new file mode 100644 index 0000000..59dfacd --- /dev/null +++ b/tests/__snapshots__/MarkdownTest__it_can_render_and_send_markdown_for_Pest_2__1.json @@ -0,0 +1,20 @@ +[ + { + "uuid": "fakeUuid", + "payloads": [ + { + "type": "custom", + "content": { + "content": "