mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
26 lines
582 B
TypeScript
26 lines
582 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('sharp support with hasNextSupport', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
dependencies: {
|
|
sharp: 'latest',
|
|
},
|
|
packageJson: {
|
|
pnpm: {
|
|
onlyBuiltDependencies: ['sqlite3'],
|
|
},
|
|
},
|
|
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')
|
|
})
|
|
})
|