import { loadFixture, getPort, Nuxt, rp } from '../utils' let nuxt, port const url = route => 'http://127.0.0.1:' + port + route describe('modern client mode (SSR)', () => { beforeAll(async () => { const options = await loadFixture('modern', { modern: 'client' }) nuxt = new Nuxt(options) await nuxt.ready() port = await getPort() await nuxt.server.listen(port, '127.0.0.1') }) test('should contain nomodule legacy resources', async () => { const { body: response } = await rp(url('/')) expect(response).toContain('script nomodule crossorigin="use-credentials" src="/_nuxt/app.js') expect(response).toContain('script nomodule crossorigin="use-credentials" src="/_nuxt/commons/app.js') }) test('should contain module modern resources', async () => { const { body: response } = await rp(url('/')) expect(response).toContain('