1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-03-23 09:36:35 +00:00
Nuxt/packages/nuxt/test/utils.ts
2025-02-20 15:16:27 +00:00

8 lines
258 B
TypeScript

import { fileURLToPath } from 'node:url'
export const componentsFixtureDir = fileURLToPath(new URL('components-fixture', import.meta.url))
export function normalizeLineEndings (str: string, normalized = '\n') {
return str.replace(/\r?\n/g, normalized)
}