mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## What? Allow putting `distDir` anywhere in the monorepo (inside the project root), not just inside the app's directory.
19 lines
510 B
TypeScript
19 lines
510 B
TypeScript
import { nextTestSetup, isNextDev } from 'e2e-utils'
|
|
|
|
describe('upward-distdir', () => {
|
|
const { next } = nextTestSetup({
|
|
skipDeployment: true,
|
|
files: __dirname,
|
|
installCommand: 'pnpm install',
|
|
buildCommand: 'pnpm next build apps/next-nx-test',
|
|
startCommand: isNextDev
|
|
? 'pnpm next dev apps/next-nx-test'
|
|
: 'pnpm next start apps/next-nx-test',
|
|
})
|
|
|
|
it('should work', async () => {
|
|
const $ = await next.render$('/')
|
|
expect($('p').text()).toBe('hello world')
|
|
})
|
|
})
|