Files
Tim NeutkensandGitHub 09838d611d Turbopack: Allow distdir in project directory, outside of the application (#80683)
## What?

Allow putting `distDir` anywhere in the monorepo (inside the project
root), not just inside the app's directory.
2025-06-20 20:33:01 +02:00

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')
})
})