mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
We need to upgrade this because the ancient version of relay-compiler that we were using didn't support arm64.
27 lines
734 B
TypeScript
27 lines
734 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
import execa from 'execa'
|
|
|
|
describe('Relay Compiler Transform - Single Project Config', () => {
|
|
const { next, isNextDeploy } = nextTestSetup({
|
|
files: __dirname,
|
|
dependencies: {
|
|
'relay-compiler': '21.0.1',
|
|
'relay-runtime': '21.0.1',
|
|
'@types/relay-runtime': '20.1.1',
|
|
},
|
|
})
|
|
|
|
;(isNextDeploy ? it.skip : it)('has up-to-date graphql types', async () => {
|
|
await execa('pnpm', ['exec', 'relay-compiler', '--validate'], {
|
|
cwd: next.testDir,
|
|
stdout: 'inherit',
|
|
stderr: 'inherit',
|
|
})
|
|
})
|
|
|
|
it('should resolve index page correctly', async () => {
|
|
const html = await next.render('/')
|
|
expect(html).toContain('Hello, World!')
|
|
})
|
|
})
|