File size: 582 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
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')
})
})
|