From cc9f7adc7ab2316db40709693ed865117d2dead7 Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Thu, 4 Jul 2024 18:05:27 +0100 Subject: [PATCH] add a test that verifies that the esbuild step was successful --- tests/default.test.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/default.test.mjs b/tests/default.test.mjs index 7314c40..955fa70 100644 --- a/tests/default.test.mjs +++ b/tests/default.test.mjs @@ -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), + }); + }); });