mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
c4d33a5cbb
This suite doesn't use `sqlite3`.
21 lines
489 B
TypeScript
21 lines
489 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('sharp support with hasNextSupport', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
dependencies: {
|
|
sharp: 'latest',
|
|
},
|
|
env: {
|
|
NOW_BUILDER: '1',
|
|
},
|
|
})
|
|
|
|
// we're mainly checking if build/start were successful so
|
|
// we have a basic assertion here
|
|
it('should work using cheerio', async () => {
|
|
const $ = await next.render$('/')
|
|
expect($('p').text()).toBe('hello world')
|
|
})
|
|
})
|