@@ -45,13 +45,38 @@ function isBlacklisted(pathname: string) {
45
45
'/showcase' ,
46
46
// Long blog post with many image carousels, often timeouts
47
47
'/blog/2022/08/01/announcing-docusaurus-2.0' ,
48
+
49
+ // DOGFOOD TESTS
50
+ // React key errors:
51
+ '/tests/docs/tests/toc-partials' ,
52
+ // Console errors
53
+ '/tests/pages/diagrams' ,
54
+ '/tests/pages/markdown-tests-md' ,
55
+ // Flaky because of hydration error
56
+ '/tests/blog/archive' ,
57
+ '/tests/docs/tests/custom-props' ,
58
+ '/tests/pages/code-block-tests' ,
59
+ '/tests/pages/embeds' ,
60
+ // Flaky because of hydration error with docusaurus serve + .html
61
+ '/tests/blog/x/y/z.html' ,
62
+ '/tests/docs/dummy.html' ,
63
+ // Cause weird docusaurus serve errors:
64
+ '/tests/docs/tests/ascii/%C3%A6%C3%B8%C3%A5' ,
65
+ '/tests/docs/tests/ascii/folder/%C3%A6%C3%B8%C3%A5' ,
48
66
] ;
49
67
50
68
return (
51
69
// changelog docs
52
70
pathname . startsWith ( '/changelog' ) ||
53
71
// versioned docs
54
72
pathname . match ( / ^ \/ d o c s \/ ( ( \d \. \d \. \d ) | ( n e x t ) ) \/ / ) ||
73
+ // verbose useless dogfooding pages
74
+ pathname . startsWith ( '/tests/docs/toc/' ) ||
75
+ pathname . startsWith ( '/tests/docs/tags/' ) ||
76
+ pathname . startsWith ( '/tests/docs/tests/category-links' ) ||
77
+ pathname . startsWith ( '/tests/docs/tests/visibility' ) ||
78
+ pathname . startsWith ( '/tests/blog/page/' ) ||
79
+ pathname . startsWith ( '/tests/blog/tags/' ) ||
55
80
// manually excluded urls
56
81
BlacklistedPathnames . includes ( pathname )
57
82
) ;
@@ -127,6 +152,9 @@ function throwOnConsole(page: Page) {
127
152
// on /docs/markdown-features/math-equations
128
153
'Failed to decode downloaded font: http://localhost:3000/katex/fonts/' ,
129
154
'OTS parsing error: Failed to convert WOFF 2.0 font to SFNT' ,
155
+
156
+ // Mermaid warning, see https://github.com/mermaid-js/mermaid/issues/6031
157
+ 'Do not assign mappings to elements without corresponding data' ,
130
158
] ;
131
159
132
160
page . on ( 'console' , ( message ) => {
0 commit comments