Nuxt/packages/nuxt/test/utils.ts

8 lines
211 B
TypeScript
Raw Permalink Normal View History

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