Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ export async function getVitestConfigFromNuxt(
}
}

// Check h3 version from nitro's dependency, then fall back to the project's own h3
const h3Info = getPackageInfoSync('h3', {
paths: nitroPath ? [nitroPath] : options.nuxt.options.modulesDir,
}) || getPackageInfoSync('h3', {
paths: [rootDir],
})

const resolver = createResolver(import.meta.url)
Expand Down
Loading