From 2a479316ea4f28b4e9f48c8babf5dcabae2fb164 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Fri, 6 Oct 2023 11:05:45 +0200 Subject: [PATCH] Remove app dir warning test (#56350) This test was failing in Turbopack because the option no longer exists. Fine to remove it for now. --- .../test/index.test.js | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/test/integration/config-experimental-warning/test/index.test.js b/test/integration/config-experimental-warning/test/index.test.js index 79831f2826805..a4a6bed21fae3 100644 --- a/test/integration/config-experimental-warning/test/index.test.js +++ b/test/integration/config-experimental-warning/test/index.test.js @@ -19,17 +19,6 @@ async function collectStdout(appDir) { return stdout } -async function collectStderr(appDir) { - let stderr = '' - const port = await findPort() - app = await launchApp(appDir, port, { - onStderr(msg) { - stderr += msg - }, - }) - return stderr -} - describe('Config Experimental Warning', () => { afterEach(() => { configFile.write('') @@ -123,19 +112,4 @@ describe('Config Experimental Warning', () => { expect(stdout).toMatch(' · workerThreads') expect(stdout).toMatch(' · scrollRestoration') }) - - it('should show warning for dropped experimental.appDir option', async () => { - configFile.write(` - module.exports = { - experimental: { - appDir: true, - } - } - `) - - const stderr = await collectStderr(appDir) - expect(stderr).toMatch( - 'App router is available by default now, `experimental.appDir` option can be safely removed.' - ) - }) })