From f860c3b5c24989b772a9b91510e9a5effedf7f08 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Mon, 11 Jan 2021 13:26:35 +0100 Subject: [PATCH] Remove extra test --- .../errors-on-output-to-static/test/index.test.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/integration/errors-on-output-to-static/test/index.test.js b/test/integration/errors-on-output-to-static/test/index.test.js index 83f6e80cce68..9ee69eba8d41 100644 --- a/test/integration/errors-on-output-to-static/test/index.test.js +++ b/test/integration/errors-on-output-to-static/test/index.test.js @@ -9,15 +9,6 @@ const appDir = path.join(__dirname, '..') const nextConfig = path.join(appDir, 'next.config.js') describe('Errors on output to static', () => { - it('Throws error when `distDir` is set to static', async () => { - await fs.writeFile(nextConfig, `module.exports = { distDir: 'static' }`) - const results = await nextBuild(appDir, [], { stdout: true, stderr: true }) - expect(results.stdout + results.stderr).toMatch( - /The 'static' directory is reserved in Next\.js and can not be set as/ - ) - await fs.remove(nextConfig) - }) - it('Throws error when export out dir is static', async () => { await fs.remove(nextConfig) await nextBuild(appDir)