diff --git a/packages/integrations/vercel/test/redirects.test.js b/packages/integrations/vercel/test/redirects.test.js index df17664eec6e1..9a58a635faf76 100644 --- a/packages/integrations/vercel/test/redirects.test.js +++ b/packages/integrations/vercel/test/redirects.test.js @@ -16,6 +16,7 @@ describe('Redirects', () => { destination: '/', }, '/blog/[...slug]': '/team/articles/[...slug]', + '/Basic/http-2-0.html': '/posts/http2', }, trailingSlash: 'always', }); @@ -45,6 +46,15 @@ describe('Redirects', () => { expect(threeRoute.status).to.equal(302); }); + it('define static files', async () => { + const config = await getConfig(); + + const staticRoute = config.routes.find((r) => r.src === '/Basic/http-2-0.html'); + expect(staticRoute).to.not.be.undefined; + expect(staticRoute.headers.Location).to.equal('/posts/http2'); + expect(staticRoute.status).to.equal(301); + }); + it('defines dynamic routes', async () => { const config = await getConfig();