Do not skip react-owner-stacks-svgr test for turbopack build (#67184)

This commit is contained in:
Hendrik Liebau 2024-06-25 16:06:33 +02:00 committed by GitHub
parent 8b5661eb45
commit 0c615f9c6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,20 +1,13 @@
import { nextTestSetup } from 'e2e-utils'
describe('react-owner-stacks-svgr', () => {
const { next, isNextStart, isTurbopack } = nextTestSetup({
const { next } = nextTestSetup({
files: __dirname,
packageJson: { dependencies: { '@svgr/webpack': '8.1.0' } },
})
/* eslint-disable jest/no-standalone-expect */
// Turbopack currently only supports `next dev` and does not support `next
// build`: https://nextjs.org/docs/architecture/turbopack#unsupported-features
;(isNextStart && isTurbopack ? it.skip : it)(
'renders an SVG that is transformed by @svgr/webpack into a React component',
async () => {
it('renders an SVG that is transformed by @svgr/webpack into a React component', async () => {
const browser = await next.browser('/')
expect(await browser.elementByCss('svg')).toBeDefined()
}
)
/* eslint-enable jest/no-standalone-expect */
})
})