Skip to content

Commit

Permalink
Remove extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Jan 11, 2021
1 parent 10ddb57 commit f860c3b
Showing 1 changed file with 0 additions and 9 deletions.
Expand Up @@ -9,15 +9,6 @@ const appDir = path.join(__dirname, '..')
const nextConfig = path.join(appDir, 'next.config.js')

describe('Errors on output to static', () => {
it('Throws error when `distDir` is set to static', async () => {
await fs.writeFile(nextConfig, `module.exports = { distDir: 'static' }`)
const results = await nextBuild(appDir, [], { stdout: true, stderr: true })
expect(results.stdout + results.stderr).toMatch(
/The 'static' directory is reserved in Next\.js and can not be set as/
)
await fs.remove(nextConfig)
})

it('Throws error when export out dir is static', async () => {
await fs.remove(nextConfig)
await nextBuild(appDir)
Expand Down

0 comments on commit f860c3b

Please sign in to comment.