diff --git a/test/integration/required-server-files-ssr-404/test/index.test.js b/test/integration/required-server-files-ssr-404/test/index.test.js index 519b767dd1ade..cee3cad318709 100644 --- a/test/integration/required-server-files-ssr-404/test/index.test.js +++ b/test/integration/required-server-files-ssr-404/test/index.test.js @@ -1,16 +1,10 @@ /* eslint-env jest */ -import http from 'http' import fs from 'fs-extra' import { join } from 'path' import cheerio from 'cheerio' import { nextServer, startApp, waitFor } from 'next-test-utils' -import { - fetchViaHTTP, - findPort, - nextBuild, - renderViaHTTP, -} from 'next-test-utils' +import { fetchViaHTTP, nextBuild, renderViaHTTP } from 'next-test-utils' const appDir = join(__dirname, '..') let server @@ -18,7 +12,6 @@ let nextApp let appPort let buildId let requiredFilesManifest -let errors = [] describe('Required Server Files', () => { beforeAll(async () => { @@ -428,21 +421,18 @@ describe('Required Server Files', () => { }) it('should bubble error correctly for gip page', async () => { - errors = [] const res = await fetchViaHTTP(appPort, '/errors/gip', { crash: '1' }) expect(res.status).toBe(500) expect(await res.text()).toBe('Internal Server Error') }) it('should bubble error correctly for gssp page', async () => { - errors = [] const res = await fetchViaHTTP(appPort, '/errors/gssp', { crash: '1' }) expect(res.status).toBe(500) expect(await res.text()).toBe('Internal Server Error') }) it('should bubble error correctly for gsp page', async () => { - errors = [] const res = await fetchViaHTTP(appPort, '/errors/gsp/crash') expect(res.status).toBe(500) expect(await res.text()).toBe('Internal Server Error')