Skip to content

Commit

Permalink
add a test that verifies that the esbuild step was successful
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jul 4, 2024
1 parent dbe163c commit cc9f7ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/default.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,10 @@ describe('basic functionality', function () {

console.log(result.stdout);
});

it('successfully optimizes deps', function () {
return execa('pnpm', ['vite', 'optimize', '--force'], {
cwd: join(tmpDir.path, appName),
});
});
});

0 comments on commit cc9f7ad

Please sign in to comment.