Revert "Revert "Skip webpack loader test in Turbopack"" (#60514)

Reverts vercel/next.js#60513

Closes NEXT-2056
This commit is contained in:
Tim Neutkens 2024-01-11 13:26:18 +01:00 committed by GitHub
parent 3a7bd19fe5
commit 7c1d50a1bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 89 additions and 77 deletions

View file

@ -335,6 +335,10 @@ describe('ReactRefreshRegression app', () => {
})
// https://github.com/vercel/next.js/issues/13574
// Test is skipped with Turbopack as the package uses webpack loaders
;(process.env.TURBOPACK ? describe.skip : describe)(
'Turbopack skipped tests',
() => {
test('custom loader mdx should have Fast Refresh enabled', async () => {
const files = new Map()
files.set(
@ -387,4 +391,6 @@ describe('ReactRefreshRegression app', () => {
await cleanup()
})
}
)
})

View file

@ -295,6 +295,10 @@ describe('ReactRefreshRegression', () => {
})
// https://github.com/vercel/next.js/issues/13574
// Test is skipped with Turbopack as the package uses webpack loaders
;(process.env.TURBOPACK ? describe.skip : describe)(
'Turbopack skipped tests',
() => {
test('custom loader (mdx) should have Fast Refresh enabled', async () => {
const { session, cleanup } = await sandbox(
next,
@ -340,4 +344,6 @@ describe('ReactRefreshRegression', () => {
await cleanup()
})
}
)
})