colocate css-parser benchmark file in src folder (#13543)

This commit is contained in:
Robin Malfait 2024-04-18 16:12:54 +02:00 • committed by GitHub
parent cc8c069f72
commit b83576ee6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,8 +1,8 @@
import { readFileSync } from 'node:fs'
import { bench } from 'vitest'
import * as CSS from './src/css-parser.ts'
import * as CSS from './css-parser.ts'
const currentFolder = new URL('.', import.meta.url).pathname
const currentFolder = new URL('..', import.meta.url).pathname
const cssFile = readFileSync(currentFolder + './preflight.css', 'utf-8')
bench('css-parser on preflight.css', () => {