Unverified Commit 4b8f16c7 authored by Javi Velasco's avatar Javi Velasco Committed by GitHub

Add message for `appDir` feedback (#41751)

This PR adds a message with a link to leave feedback for `appDir` when
the user enables it.
parent e9684b02
...@@ -42,6 +42,12 @@ const experimentalWarning = execOnce( ...@@ -42,6 +42,12 @@ const experimentalWarning = execOnce(
`Experimental features are not covered by semver, and may cause unexpected or broken application behavior. ` + `Experimental features are not covered by semver, and may cause unexpected or broken application behavior. ` +
`Use at your own risk.` `Use at your own risk.`
) )
if (features.includes('appDir')) {
Log.info(
`Thank you for testing \`appDir\` please leave your feedback at https://nextjs.link/app-feedback`
)
}
console.warn() console.warn()
} }
) )
......
...@@ -358,4 +358,10 @@ describe('app-dir static/dynamic handling', () => { ...@@ -358,4 +358,10 @@ describe('app-dir static/dynamic handling', () => {
expect(secondDate).not.toBe(initialDate) expect(secondDate).not.toBe(initialDate)
}) })
it('should show a message to leave feedback for `appDir`', async () => {
expect(next.cliOutput).toContain(
`Thank you for testing \`appDir\` please leave your feedback at https://nextjs.link/app-feedback`
)
})
}) })
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