From f8c4c061f84b06b7f544f2fdc24bcf6c5c3605bd Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Sat, 18 Jul 2026 03:12:47 +0100 Subject: [PATCH] fixes snapshots --- tests/.snapshots/success.txt | 41 +++++++++++++++++++++++++++++++++++- tests/Visual/Parallel.php | 4 ++-- 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index 93fda4f2..755f0224 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -1821,7 +1821,18 @@ ✓ output format → it returns a 32-character hex xxh128 hash ✓ output format → it returns a stable hash for empty content + PASS Tests\Unit\Plugins\Tia\FileState + ✓ keysWithPrefix() → it lists keys matching the prefix + ✓ keysWithPrefix() → it ignores in-flight temporary files from concurrent writes + PASS Tests\Unit\Plugins\Tia\Graph + ✓ shouldRerunStatus() → it re-runs failures and errors, replays successes + ✓ applyMigrationChanges() → it selects tests whose recorded tables intersect the changed migration + ✓ applyMigrationChanges() → it falls back to watch patterns when no table usage was recorded at all + ✓ rerun tracking → it reruns cached failures via their file + ✓ rerun tracking → it flags cached failures whose file is unknown + ✓ applyBladeStaticChanges() → it maps an anonymous index component to the views that render it + ✓ applyBladeStaticChanges() → it falls back to watch patterns for components with no matched usage ✓ markKnownTestFiles() → it makes a test file with no edges known ✓ markKnownTestFiles() → it does not clobber edges of an already-known test file ✓ markKnownTestFiles() → it ignores paths outside the project root @@ -1841,6 +1852,26 @@ ✓ it detects an added or removed non-platform dependency ✓ it is independent of package ordering + PASS Tests\Unit\Plugins\Tia\Recorder + ✓ activateLinkTracking() → it tracks tables without a coverage driver + ✓ activateLinkTracking() → it tracks inertia components without a coverage driver + ✓ activateLinkTracking() → it tracks linked sources across consecutive tests + ✓ activateLinkTracking() → it records nothing while inactive + + PASS Tests\Unit\Plugins\Tia\TableExtractor + ✓ fromSql() → it extracts tables from plain DML + ✓ fromSql() → it extracts tables from joins + ✓ fromSql() → it extracts tables from CTE queries + ✓ fromSql() → it extracts tables from REPLACE INTO + ✓ fromSql() → it records the table, not the schema, for qualified identifiers + ✓ fromSql() → it handles quoted identifiers + ✓ fromSql() → it ignores schema metadata tables + ✓ fromSql() → it returns nothing for non-DML statements + ✓ fromMigrationSource() → it extracts tables from Schema builder calls + ✓ fromMigrationSource() → it extracts tables from raw DDL statements + ✓ fromMigrationSource() → it records the table, not the schema, in qualified DDL and DML + ✓ fromMigrationSource() → it extracts tables from DB::table calls + PASS Tests\Unit\Plugins\Tia\TestPaths ✓ isTestFile() → it matches a standard test file under a configured directory ✓ isTestFile() → it does not match a non-test file that shares the directory @@ -1910,6 +1941,14 @@ ✓ it builds the expected alias map from a tsconfig with ('malformed-json') ✓ it builds the expected alias map from a tsconfig with ('missing-config') ✓ it builds the expected alias map from a tsconfig with ('tsconfig-precedence') + ✓ it builds the expected alias map from a vite config with ('root-slash-literal') + ✓ it builds the expected alias map from a vite config with ('path-resolve') + ✓ it builds the expected alias map from a vite config with ('file-url') + ✓ it builds the expected alias map from a vite config with ('tilde-alias') + ✓ it builds the expected alias map from a vite config with ('multiple-aliases') + ✓ it builds the expected alias map from a vite config with ('laravel-plugin-default') + ✓ it builds the expected alias map from a vite config with ('no-alias-no-plugin') + ✓ it builds the expected alias map from a vite config with ('no-config') PASS Tests\Unit\Preset ✓ preset invalid name @@ -2097,4 +2136,4 @@ ✓ pass with dataset with ('my-datas-set-value') ✓ within describe → pass with dataset with ('my-datas-set-value') - Tests: 1 deprecated, 4 warnings, 5 incomplete, 2 notices, 40 todos, 35 skipped, 1471 passed (3232 assertions) \ No newline at end of file + Tests: 1 deprecated, 4 warnings, 5 incomplete, 2 notices, 40 todos, 35 skipped, 1504 passed (3281 assertions) \ No newline at end of file diff --git a/tests/Visual/Parallel.php b/tests/Visual/Parallel.php index a59fc7f1..13c30522 100644 --- a/tests/Visual/Parallel.php +++ b/tests/Visual/Parallel.php @@ -24,13 +24,13 @@ test('parallel', function () use ($run): void { $file = file_get_contents(__FILE__); $file = preg_replace( '/\$expected = \'.*?\';/', - "\$expected = '1 deprecated, 4 warnings, 5 incomplete, 3 notices, 40 todos, 27 skipped, 1454 passed (3179 assertions)';", + "\$expected = '1 deprecated, 4 warnings, 5 incomplete, 3 notices, 40 todos, 27 skipped, 1487 passed (3228 assertions)';", $file, ); file_put_contents(__FILE__, $file); } - $expected = '1 deprecated, 4 warnings, 5 incomplete, 3 notices, 40 todos, 27 skipped, 1454 passed (3179 assertions)'; + $expected = '1 deprecated, 4 warnings, 5 incomplete, 3 notices, 40 todos, 27 skipped, 1487 passed (3228 assertions)'; expect($output) ->toContain("Tests: {$expected}")