next.js/test/production/app-dir/bad-file-structure/bad-file-structure.test.ts
bad-file-structure.test.ts18 lines396 B
import { nextTestSetup } from 'e2e-utils'

describe('bad-file-structure', () => {
  const { next } = nextTestSetup({
    files: __dirname,
    skipStart: true,
  })

  it('should error for bad file structure', async () => {
    await next.build()

    const output = next.cliOutput
    expect(output).toContain(
      '`pages` and `app` directories should be under the same folder'
    )
  })
})
Quest for Codev2.0.0
/
SIGN IN