Nuxt/packages/nuxt/test/utils.ts

8 lines
237 B
TypeScript

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