expect(console.warn).toHaveBeenCalledWith(`[nuxt] Expected \`@nuxt/kit\` to be at least \`${version}\` but got \`3.0.0\`. This might lead to unexpected behavior. Check your package.json or refresh your lockfile.`)
expect(console.warn).toHaveBeenCalledWith(`[nuxt] Expected \`@nuxt/schema\` to be at least \`${version}\` but got \`3.0.0\`. This might lead to unexpected behavior. Check your package.json or refresh your lockfile.`)
vi.mocked(readPackageJSON).mockRestore()
awaitnuxt.close()
})
it.each([
{
name:'nuxt version is lower',
depVersion: inc(version,'minor'),
},
{
name:'version matches',
depVersion: version,
},
])('expect no warning when $name.',async({depVersion})=>{