question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vitest junit - Cannot read property 'time' of undefined

See original GitHub issue

Using Vitest I would specify the following configuration for my reporters:

reporters: ['junit'],
outputFile: './report/integration-tests-results.json',

Failed Output:

Using test report parser 'jest-junit'
Creating test report Integration Tests Report
  Processing test results from ./report/integration-tests-results.xml
Error: Cannot read property 'time' of undefined

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

2reactions
ascott18commented, Sep 3, 2022

@SamKirkland this issue is about vitest, not jest.

2reactions
ascott18commented, Aug 22, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Vitest
VITEST or mode property on defineConfig (will be set to test / benchmark if not overridden) to conditionally apply different configuration ...
Read more >
Vitest error "TypeError: Cannot read properties of undefined ...
I have a very basic test, however it throws the error below when I try to mount a component const wrapper = mount(HomeHeader)...
Read more >
Issues · dorny/test-reporter - GitHub
Failed test suite is treated as passed in jest-junit report ... Vitest junit - Cannot read property 'time' of undefined.
Read more >
From Jest to Vitest - Migration and Benchmark
In this post join me as I migrate my project's test runner framework from Jest to Vitest, and check if it is really...
Read more >
Error trying to set up tests with Vitest. TypeError: Cannot read ...
TypeError: Cannot read properties of null (reading 'useRef'). I am trying to set up testing for my React app using Vitest, but ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found