Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix vitest duration #1192

Merged
merged 3 commits into from
Nov 20, 2024
Merged

fix vitest duration #1192

merged 3 commits into from
Nov 20, 2024

Conversation

baev
Copy link
Member

@baev baev commented Nov 19, 2024

Context

Since 2.1.0 Vitest has used the performance.now() API which provides decimal durations. The suggested fix rounds the timings in allure-js-commons to ensure the integer numbers are used for both start and stop timings.

In addition, Vitest is updated to the latest version to verify the patch.

Checklist

@github-actions github-actions bot added theme:api Javascript API related issue theme:mocha Mocha related issue theme:jest Jest related issue theme:cucumberjs CucumberJS related issue theme:jasmine Jasmine related issue theme:playwright theme:newman theme:codeceptjs theme:vitest labels Nov 19, 2024
@baev baev added the type:bug Something isn't working label Nov 19, 2024
@baev baev merged commit 621ec04 into main Nov 20, 2024
12 checks passed
@baev baev deleted the fix-vitest-duration branch November 20, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:api Javascript API related issue theme:codeceptjs theme:cucumberjs CucumberJS related issue theme:jasmine Jasmine related issue theme:jest Jest related issue theme:mocha Mocha related issue theme:newman theme:playwright theme:vitest type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants