Skip to content

Commit

Permalink
Skip webpack test in Turbopack test run (#57195)
Browse files Browse the repository at this point in the history
This test checks webpack loaders so can be safely disabled for Turbopack.
  • Loading branch information
timneutkens authored Oct 21, 2023
1 parent 23bcfff commit 8502d0a
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions test/e2e/app-dir/rsc-basic/rsc-basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,15 +557,19 @@ createNextDescribe(
).toBe('count: 1')
})

it('should support webpack loader rules', async () => {
const browser = await next.browser('/loader-rule')

expect(
await browser.eval(
`window.getComputedStyle(document.querySelector('#red')).color`
)
).toBe('rgb(255, 0, 0)')
})
// Skip as Turbopack doesn't support webpack loaders.
;(process.env.TURBOPACK ? it.skip : it)(
'should support webpack loader rules',
async () => {
const browser = await next.browser('/loader-rule')

expect(
await browser.eval(
`window.getComputedStyle(document.querySelector('#red')).color`
)
).toBe('rgb(255, 0, 0)')
}
)

if (isNextStart) {
it('should generate edge SSR manifests for Node.js', async () => {
Expand Down

0 comments on commit 8502d0a

Please sign in to comment.