From cbdbd6d9ef4fc3eba430ff99720b5bf05128e1a4 Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Sun, 12 Jan 2025 00:53:40 +0100 Subject: [PATCH] fix: imports --- packages/nuxt/test/load-nuxt.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/nuxt/test/load-nuxt.test.ts b/packages/nuxt/test/load-nuxt.test.ts index 1e0f02a343..e1eb06beb1 100644 --- a/packages/nuxt/test/load-nuxt.test.ts +++ b/packages/nuxt/test/load-nuxt.test.ts @@ -1,14 +1,13 @@ 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 { withoutTrailingSlash } from 'ufo' import { readPackageJSON } from 'pkg-types' import { inc } from 'semver' -import { asyncNameStorage, useNuxt } from '@nuxt/kit' +import { asyncNameStorage, logger, useNuxt } from '@nuxt/kit' import { loadNuxt } from '../src' 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)))) vi.stubGlobal('console', {