chore: use pathe in internal tests

This commit is contained in:
Daniel Roe 2024-02-05 11:24:39 +00:00
parent 7dd0225007
commit e33cec9580
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B
5 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
import { pathToFileURL } from 'node:url' import { pathToFileURL } from 'node:url'
import { join } from 'node:path'
import fs from 'node:fs' import fs from 'node:fs'
import { join } from 'pathe'
import type { Component } from '@nuxt/schema' import type { Component } from '@nuxt/schema'
import { parseURL } from 'ufo' import { parseURL } from 'ufo'
import { createUnplugin } from 'unplugin' import { createUnplugin } from 'unplugin'

View File

@ -1,4 +1,4 @@
import { resolve } from 'node:path' import { resolve } from 'pathe'
import { expect, it, vi } from 'vitest' import { expect, it, vi } from 'vitest'
import type { ComponentsDir } from 'nuxt/schema' import type { ComponentsDir } from 'nuxt/schema'

View File

@ -1,4 +1,4 @@
import { resolve } from 'node:path' import { resolve } from 'pathe'
export const fixtureDir = resolve(__dirname, 'fixture') export const fixtureDir = resolve(__dirname, 'fixture')

View File

@ -1,5 +1,5 @@
import { fileURLToPath } from 'node:url' import { fileURLToPath } from 'node:url'
import { dirname, join } from 'node:path' import { dirname, join } from 'pathe'
import fs from 'fs-extra' import fs from 'fs-extra'
const dir = dirname(fileURLToPath(import.meta.url)) const dir = dirname(fileURLToPath(import.meta.url))

View File

@ -1,4 +1,4 @@
import { resolve } from 'node:path' import { resolve } from 'pathe'
import { configDefaults, coverageConfigDefaults, defineConfig } from 'vitest/config' import { configDefaults, coverageConfigDefaults, defineConfig } from 'vitest/config'
import { isWindows } from 'std-env' import { isWindows } from 'std-env'
import codspeedPlugin from '@codspeed/vitest-plugin' import codspeedPlugin from '@codspeed/vitest-plugin'