Unverified Commit 7a1b01b8 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Skip i18n-ignore-rewrite-basepath-source irrelevant tests with turbopack (#57295)

Same as https://github.com/vercel/next.js/pull/57289 for another test
suite.
parent dc4138db
...@@ -72,7 +72,8 @@ describe('i18n-ignore-rewrite-source-locale with basepath', () => { ...@@ -72,7 +72,8 @@ describe('i18n-ignore-rewrite-source-locale with basepath', () => {
// build artifacts aren't available on deploy // build artifacts aren't available on deploy
if (!(global as any).isNextDeploy) { if (!(global as any).isNextDeploy) {
test.each(locales)( // chunks are not written to disk with TURBOPACK
;(process.env.TURBOPACK ? it.skip.each : it.each)(locales)(
'get _next/static/ files by skipping locale in rewrite, locale: %s', 'get _next/static/ files by skipping locale in rewrite, locale: %s',
async (locale) => { async (locale) => {
const chunks = ( const chunks = (
...@@ -85,6 +86,7 @@ describe('i18n-ignore-rewrite-source-locale with basepath', () => { ...@@ -85,6 +86,7 @@ describe('i18n-ignore-rewrite-source-locale with basepath', () => {
next.url, next.url,
`/basepath${locale}/rewrite-files/_next/static/chunks/${file}` `/basepath${locale}/rewrite-files/_next/static/chunks/${file}`
) )
// eslint-disable-next-line jest/no-standalone-expect
expect(res.status).toBe(200) expect(res.status).toBe(200)
}) })
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment