Nuxt/packages/nuxt/test/utils.ts
2024-02-05 11:24:39 +00:00

8 lines
207 B
TypeScript

import { resolve } from 'pathe'
export const fixtureDir = resolve(__dirname, 'fixture')
export function normalizeLineEndings (str: string, normalized = '\n') {
return str.replace(/\r?\n/g, normalized)
}