Skip to content

Commit

Permalink
chore: fix test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Jun 20, 2024
1 parent 9577358 commit 4b528cc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/next-standalone.spec.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
import { existsSync } from 'fs';
import { join } from 'path';
import { runTsScript } from '@hyperse/exec-program';
import { getDirname } from '../src/get-dir-name.js';
import { nextStandalone } from '../src/next-standalone.js';

describe('Next Standalone', () => {
it('should copy only the necessary files for a production deployment including select files in node_modules', async () => {
const cliPath = getDirname(import.meta.url, './cli.ts');
const { stderr, stdout } = await runTsScript(cliPath, [
'--',
'next',
'build',
]);
expect(stderr).toBe('');
expect(stdout).toMatch(/node_env: test/);
const cwd = process.cwd();
await nextStandalone(['--fromBase', cwd, '--copyToBase', cwd]);
expect(
Expand Down

0 comments on commit 4b528cc

Please sign in to comment.