silverwolf-x's picture
download
raw
952 Bytes
import { createNext } from 'e2e-utils'
import { NextInstance } from 'e2e-utils'
import { renderViaHTTP } from 'next-test-utils'
describe('browserslist-extends', () => {
let next: NextInstance
beforeAll(async () => {
next = await createNext({
files: {
'pages/index.js': `
import styles from './index.module.css'
export default function Page() {
return <p className={styles.hello}>hello world</p>
}
`,
'pages/index.module.css': `
.hello {
color: pink;
}
`,
},
dependencies: {
'browserslist-config-google': '^3.0.1',
},
packageJson: {
browserslist: ['extends browserslist-config-google'],
},
})
})
afterAll(() => next.destroy())
it('should work', async () => {
const html = await renderViaHTTP(next.url, '/')
expect(html).toContain('hello world')
})
})

Xet Storage Details

Size:
952 Bytes
·
Xet hash:
dddcadf48e7864f3ac0a5269da1383e20a0339e60d7f20f36427ed997e390203

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.