fix: imports

This commit is contained in:
Julien Huang 2025-01-12 00:53:40 +01:00
parent 78649f6662
commit cbdbd6d9ef

View File

@ -1,14 +1,13 @@
import { fileURLToPath } from 'node:url' import { fileURLToPath } from 'node:url'
import { afterEach, describe, expect, it, vi } from 'vitest' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { normalize } from 'pathe' import { normalize } from 'pathe'
import { withoutTrailingSlash } from 'ufo' import { withoutTrailingSlash } from 'ufo'
import { readPackageJSON } from 'pkg-types' import { readPackageJSON } from 'pkg-types'
import { inc } from 'semver' import { inc } from 'semver'
import { asyncNameStorage, useNuxt } from '@nuxt/kit' import { asyncNameStorage, logger, useNuxt } from '@nuxt/kit'
import { loadNuxt } from '../src' import { loadNuxt } from '../src'
import { version } from '../package.json' import { version } from '../package.json'
import { logger } from '@nuxt/kit'
import { beforeEach } from 'node:test'
const repoRoot = withoutTrailingSlash(normalize(fileURLToPath(new URL('../../../', import.meta.url)))) const repoRoot = withoutTrailingSlash(normalize(fileURLToPath(new URL('../../../', import.meta.url))))
vi.stubGlobal('console', { vi.stubGlobal('console', {