Unverified Commit 6781a525 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix invalid warning for existing experimental flag (#38027)

parent 02b9e8bd
......@@ -510,6 +510,7 @@ export const defaultConfig: NextConfig = {
swcMinify: false,
output: !!process.env.NEXT_PRIVATE_STANDALONE ? 'standalone' : undefined,
experimental: {
manualClientBasePath: false,
// TODO: change default in next major release (current v12.1.5)
legacyBrowsers: true,
browsersListForSwc: false,
......
......@@ -5,7 +5,7 @@ import { join } from 'path'
import http from 'http'
import webdriver from 'next-webdriver'
import assert from 'assert'
import { check, waitFor } from 'next-test-utils'
import { check, renderViaHTTP, waitFor } from 'next-test-utils'
describe('manual-client-base-path', () => {
if ((global as any).isNextDeploy) {
......@@ -98,6 +98,11 @@ describe('manual-client-base-path', () => {
}
})
it('should not warn for flag in output', async () => {
await renderViaHTTP(next.url, '/')
expect(next.cliOutput).not.toContain('exist in this version of Next.js')
})
for (const [asPath, pathname, query] of [
['/'],
['/another'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment