Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aslemammad committed Sep 15, 2022
1 parent 5ed6663 commit 77159a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/benchmark/test.mjs
Expand Up @@ -10,10 +10,11 @@ await execa('npx', ['vitest', 'bench', 'base.bench', 'mode.bench', 'only.bench']
},
})
.catch((e) => {
console.log(e)
error = e
})

const benchResult = await readFile('./bench.json', 'utf-8')
/* const benchResult = await readFile('./bench.json', 'utf-8')
if (benchResult.includes('skip'))
process.exit(1)
Expand All @@ -27,4 +28,4 @@ if (error) {
process.exit(1)
}
process.exit(0)
process.exit(0) */
1 change: 1 addition & 0 deletions test/benchmark/vitest.config.ts
Expand Up @@ -3,6 +3,7 @@ import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
update: false,
allowOnly: true,
benchmark: {
outputFile: './bench.json',
reporters: ['json'],
Expand Down

0 comments on commit 77159a2

Please sign in to comment.