mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
22 lines
692 B
TypeScript
22 lines
692 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('svgo-webpack loader', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
skipDeployment: true,
|
|
dependencies: {
|
|
'@svgr/webpack': '8.1.0',
|
|
},
|
|
})
|
|
|
|
it('should render an SVG that is transformed by @svgr/webpack into a React component (pages router)', async () => {
|
|
const browser = await next.browser('/pages')
|
|
expect(await browser.elementByCss('svg')).toBeDefined()
|
|
})
|
|
|
|
it('should render an SVG that is transformed by @svgr/webpack into a React component (app router)', async () => {
|
|
const browser = await next.browser('/')
|
|
expect(await browser.elementByCss('svg')).toBeDefined()
|
|
})
|
|
})
|