import { loadFixture, getPort, Nuxt, rp } from '../utils' let nuxt, port const url = route => 'http://localhost:' + 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, 'localhost') }) 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/node_modules/commons.js') }) test('should contain module modern resources', async () => { const { body: response } = await rp(url('/')) expect(response).toContain('