Unverified Commit 53a4458b authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Ensure dist-dir test has fresh start (#19370)

h/t to @prateekbh for noticing this test isn't cleaning up properly 

Closes: https://github.com/vercel/next.js/issues/19369
parent b28b8b29
...@@ -20,6 +20,8 @@ let app ...@@ -20,6 +20,8 @@ let app
describe('distDir', () => { describe('distDir', () => {
describe('With basic usage', () => { describe('With basic usage', () => {
beforeAll(async () => { beforeAll(async () => {
await fs.remove(join(appDir, '.next'))
await fs.remove(join(appDir, 'dist'))
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
app = await nextStart(appDir, appPort) app = await nextStart(appDir, appPort)
......
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