Skip to content

Commit

Permalink
colocate css-parser benchmark file in src folder (#13543)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Apr 18, 2024
1 parent cc8c069 commit b83576e
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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', () => {
Expand Down

0 comments on commit b83576e

Please sign in to comment.