Comments (12)
if it helps, i noticed that no report is generated if jest is running with --forceExit.
it seems that it closes before the report is created.
from jest-html-reporter.
I will have a look at it ASAP!
from jest-html-reporter.
Is it an option to use the synchronous I/O calls in nodeJs? Not sure what version of NodeJs introduced them.
from jest-html-reporter.
I'm pretty sure it's been possible for a long time to do synchronous calls with fs (correct me if I'm wrong). I'm unsure if that's the solution in this case though. It is a little weird as I haven't heard this from anyone else using the plugin.
What version of Node are you using, by the way?
from jest-html-reporter.
I'm using node.js v8.9.1
from jest-html-reporter.
I have been trying to reproduce this issue, but without any luck. I'm wondering if there might be something related to the structure of the project that you are working on that causes this issue, since there haven't been any reported issues where the reports haven't been generated up until now.
Theoretically, the asynchronous method createReport
should not be aborted just because Jest has initialized prior to it finishing. This is due to the fact that Jest expects the testResultsProcessor (this module) to instantaneously return back the test result (which is done at the end of index.js).
Would you mind attempting to debug what may cause this issue to occur and post any findings here?
Thanks!
from jest-html-reporter.
Closing this for now. Re-open if you still think it is a relevant issue.
from jest-html-reporter.
i think this is still a problem. other reporters are not creating this problem(junit reporter).
from jest-html-reporter.
Is is possible to provide more details of the environment you ran the test on (together with --forceExit
)? Jest version etc.
I did a test in this project with --forceExit
enabled and the test report was successfully generated.
from jest-html-reporter.
There is a potential fix for this issue in v2.0.0 - see #33
from jest-html-reporter.
from jest-html-reporter.
@zeevrosental v2.0.0 has now been released. I will mark this issue as resolved for now.
from jest-html-reporter.
Related Issues (20)
- Using deprecated options in the config stops a report from being generated HOT 1
- Conversion to XML not fully escaped
- TypeError: Cannot read property 'replace' of undefined HOT 1
- Html report broken when test response is html HOT 2
- Wrong coverage reported in constants HOT 1
- Assertion messages are malformed HOT 2
- Error: Could not resolve a module for a custom reporter.
- Doesn't support jest 28. HOT 4
- ENHANCEMENT: add configuration option for passing arbitrary data HOT 1
- code coverage export HOT 3
- Jest 29 HOT 1
- Extra Text in HTML Report HOT 4
- Is there a way I can Display something other than file path here? HOT 2
- TypeScript 5 support?
- appending adds several bodies and adds custom script several times
- Added into report configuration additional flag "includeStackTrace": false HOT 2
- The default colored console output is unreadable
- Make test suites collapsible (and collapse them by default) HOT 1
- Sort + append? HOT 1
- babel dependencies HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jest-html-reporter.