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
This commit is contained in:
parent
b28b8b2913
commit
53a4458bae
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ let app
|
|||
describe('distDir', () => {
|
||||
describe('With basic usage', () => {
|
||||
beforeAll(async () => {
|
||||
await fs.remove(join(appDir, '.next'))
|
||||
await fs.remove(join(appDir, 'dist'))
|
||||
await nextBuild(appDir)
|
||||
appPort = await findPort()
|
||||
app = await nextStart(appDir, appPort)
|
||||
|
|
Loading…
Reference in a new issue