Skip to content

Commit

Permalink
fix: take vite re-optimizing message into account
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Dec 19, 2023
1 parent e98c6ad commit 1115481
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/astro/test/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ describe('astro cli', () => {
const proc = cli('dev', '--root', fileURLToPath(projectRootURL));
const { messages } = await parseCliDevStart(proc);

console.log({ messages })
const index = messages[0].includes("[vite]") ? 1 : 0

expect(messages[0]).to.contain('astro');
expect(messages[0]).to.contain(pkgVersion);
expect(messages[0]).to.contain('ready in');
expect(messages[index]).to.contain('astro');
expect(messages[index]).to.contain(pkgVersion);
expect(messages[index]).to.contain('ready in');
});

['dev', 'preview'].forEach((cmd) => {
Expand Down

0 comments on commit 1115481

Please sign in to comment.