import fs from 'node:fs'; import path from 'node:path'; import { expect, test } from '@e2e/helper'; test('should support a custom env directory', ({ execCliSync }) => { execCliSync('build --env-dir env'); const content = fs.readFileSync( path.join(import.meta.dirname, 'dist/static/js/index.js'), 'utf-8', ); expect(content).not.toContain('jack'); expect(content).toContain('rose'); });