0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-24 22:46:02 -05:00

Set vite logLevel silent for test (#8868)

This commit is contained in:
Bjorn Lu 2023-10-20 02:03:01 +08:00 committed by GitHub
parent 0d4922dffe
commit 88869bafb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,6 +99,8 @@ export async function loadFixture(inlineConfig) {
// Silent by default during tests to not pollute the console output
inlineConfig.logLevel = 'silent';
inlineConfig.vite ??= {};
inlineConfig.vite.logLevel = 'silent';
let root = inlineConfig.root;
// Handle URL, should already be absolute so just convert to path