mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
chore: use pathe
in internal tests
This commit is contained in:
parent
7dd0225007
commit
e33cec9580
@ -1,6 +1,6 @@
|
||||
import { pathToFileURL } from 'node:url'
|
||||
import { join } from 'node:path'
|
||||
import fs from 'node:fs'
|
||||
import { join } from 'pathe'
|
||||
import type { Component } from '@nuxt/schema'
|
||||
import { parseURL } from 'ufo'
|
||||
import { createUnplugin } from 'unplugin'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { resolve } from 'node:path'
|
||||
import { resolve } from 'pathe'
|
||||
import { expect, it, vi } from 'vitest'
|
||||
import type { ComponentsDir } from 'nuxt/schema'
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { resolve } from 'node:path'
|
||||
import { resolve } from 'pathe'
|
||||
|
||||
export const fixtureDir = resolve(__dirname, 'fixture')
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { dirname, join } from 'node:path'
|
||||
import { dirname, join } from 'pathe'
|
||||
import fs from 'fs-extra'
|
||||
|
||||
const dir = dirname(fileURLToPath(import.meta.url))
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { resolve } from 'node:path'
|
||||
import { resolve } from 'pathe'
|
||||
import { configDefaults, coverageConfigDefaults, defineConfig } from 'vitest/config'
|
||||
import { isWindows } from 'std-env'
|
||||
import codspeedPlugin from '@codspeed/vitest-plugin'
|
||||
|
Loading…
Reference in New Issue
Block a user