Skip to content

Commit

Permalink
chore: use pathe in internal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 5, 2024
1 parent 7dd0225 commit e33cec9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/nuxt/src/components/islandsTransform.ts
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/test/scan-components.test.ts
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/test/utils.ts
@@ -1,4 +1,4 @@
import { resolve } from 'node:path'
import { resolve } from 'pathe'

export const fixtureDir = resolve(__dirname, 'fixture')

Expand Down
2 changes: 1 addition & 1 deletion test/setup.ts
@@ -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))
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
@@ -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'
Expand Down

0 comments on commit e33cec9

Please sign in to comment.