Nuxt/packages/nuxt/test/utils.ts

8 lines
207 B
TypeScript
Raw Permalink Normal View History

2024-02-05 11:24:39 +00:00
import { resolve } from 'pathe'
export const fixtureDir = resolve(__dirname, 'fixture')
export function normalizeLineEndings (str: string, normalized = '\n') {
return str.replace(/\r?\n/g, normalized)
}