import { loadFixture, getPort, Nuxt, rp, wChunk } 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 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 response = await rp(url('/')) expect(response).toContain('