Comments (9)
@Hargne would be great if you see what's wrong π―from the above test repo
from jest-html-reporter.
Hi,
Sorry for the late response (I am currently abroad with crappy-to-none internet connectivity)!
Just to rule it out: will the console.logs be outputted if you don't include testMatch
or testPathIgnorePatterns
?
from jest-html-reporter.
I just ran some tests and it seems like it is actually the verbose: true
that is causing this. The logs will appear if verbose
is set to false or not present at all.
There is more information about this matter in this stack overflow thread
from jest-html-reporter.
thanks @Hargne; let me give a try.
Just to rule it out: will the console.logs be outputted if you don't include testMatch or testPathIgnorePatterns?
- Yes, it does work when I skip these
from jest-html-reporter.
It should work as intended as long as you remove the verbose: true
from your config (see my previous post)
from jest-html-reporter.
Hello,
I have the same problem and even without verbose: true
, I can't get console logs in the report.
module.exports = {
testEnvironment: 'node',
setupTestFrameworkScriptFile: './test/setupTests.js',
reporters: [
'default',
[
'./node_modules/jest-html-reporter',
{
pageTitle: 'Test Report',
outputPath: './test/testReport/report.html',
includeFailureMsg: true,
includeConsoleLog: true
}
]
]
}
from jest-html-reporter.
@jbournonville is it possible to post one of the test specs that includes a console log?
from jest-html-reporter.
Have same issue, but for me it stopped working after upgrade to [email protected] (works fine with 24.5.0).
Interesting thing - regular downgrade by installing other version doesn't help - full revert of package-lock.json works though.
from jest-html-reporter.
Hi again,
In the latest release (https://github.com/Hargne/jest-html-reporter/releases/tag/2.7.0) I was able to manually catch all the console.logs per test and then output it to each test suite.
It should be noted that in order for this to work, you need to assign jest-html-reporter as a custom reporter in Jest via the "reporters"
option (https://github.com/Hargne/jest-html-reporter/wiki/installation-and-usage#usage)
And you will probably also need to run jest together with the --verbose=false
setting.
from jest-html-reporter.
Related Issues (20)
- 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
- How can we capture Request Payload & Response Json and show them to jest-html-reporter for REST API Automation framework? HOT 1
- [FIX] ENAMETOOLONG: name too long, ... errors due to too long name of generated temp directory HOT 1
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.