Files
next.js/test/e2e/relay-graphql-swc-single-project/relay-graphql-swc-single-project.test.ts
Benjamin WoodruffandGitHub c518402e07 [ci] update relay-compiler to 21.0.1 (#95217)
We need to upgrade this because the ancient version of relay-compiler
that we were using didn't support arm64.
2026-06-30 01:27:24 +00:00

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!')
})
})