colocate css-parser benchmark file in src folder (#13543)
This commit is contained in:
parent
cc8c069f72
commit
b83576ee6d
1 changed files 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', () => {
|
||||
Loading…
Add table
Add a link
Reference in a new issue