1 parent 42d6427 commit de896edCopy full SHA for de896ed
1 file changed
src/integrations/sitemapSerialize/__tests__/index.spec.ts
@@ -109,6 +109,15 @@ describe('createSerializeFunction', () => {
109
).toBeUndefined()
110
})
111
112
+ it('should exclude print routes after the route rename from pdf to print', () => {
113
+ const serialize = createSerializeFunction({
114
+ exclude: ['print'],
115
+ })
116
+
117
+ expect(serialize(createSitemapItem('https://example.com/print'))).toBeUndefined()
118
+ expect(serialize(createSitemapItem('https://example.com/print/my-article'))).toBeUndefined()
119
120
121
it('should handle multiple exclusions', () => {
122
const serialize = createSerializeFunction({
123
exclude: ['downloads', 'social-shares', '/articles/demo'],
0 commit comments