diff --git a/.gitattributes b/.gitattributes index 84e5cd3be..4b770aba0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,3 +2,6 @@ # Improve highlighting for PHPStan stub files. *.stub linguist-language=PHP + +# Hide diffs for Optimization Detective snapshots. +plugins/*/tests/test-cases/*/expected.html linguist-generated=true diff --git a/plugins/embed-optimizer/tests/test-cases/all-embeds-inside-viewport/expected.html b/plugins/embed-optimizer/tests/test-cases/all-embeds-inside-viewport/expected.html index cb8b50e3c..dcef822fc 100644 --- a/plugins/embed-optimizer/tests/test-cases/all-embeds-inside-viewport/expected.html +++ b/plugins/embed-optimizer/tests/test-cases/all-embeds-inside-viewport/expected.html @@ -3,58 +3,58 @@