New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@carits-qa/jest-html-reporters

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@carits-qa/jest-html-reporters - npm Package Compare versions

Comparing version

to
2.0.3

2

package.json
{
"name": "@carits-qa/jest-html-reporters",
"version": "2.0.2",
"version": "2.0.3",
"description": "Jest test results processor for generating a summary in HTML",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -30,3 +30,3 @@ ### Jest reporter

"default",
"jest-html-reporters"
"@carits-qa/jest-html-reporters"
],

@@ -60,3 +60,3 @@ ...

"default",
["jest-html-reporters", {
["@carits-qa/jest-html-reporters", {
"publicPath": "./html-report",

@@ -98,3 +98,3 @@ "filename": "report.html",

// Example attach with **buffer**
const { addAttach } = require('jest-html-reporters/helper')
const { addAttach } = require('@carits-qa/jest-html-reporters/helper')
const puppeteer = require('puppeteer')

@@ -118,3 +118,3 @@

// Example attach with **string**
const { addAttach } = require('jest-html-reporters/helper')
const { addAttach } = require('@carits-qa/jest-html-reporters/helper')
const puppeteer = require('puppeteer')

@@ -153,3 +153,3 @@ const path = require('path')

Only one parameter is required. If you use `JSON.stringify(object, null, 2)`, the object will be prettified
Only one parameter is required. If you stringify an object like this `JSON.stringify(object, null, 2)`, the object will be prettified

@@ -159,7 +159,7 @@ Here is an Example with [Nightmare](https://www.npmjs.com/package/nightmare).

```javascript
const { addAttach, addMsg } = require('jest-html-reporters/helper')
const { addAttach, addMsg } = require('@carits-qa/jest-html-reporters/helper')
const Nightmare = require('nightmare')
describe('Yet another example', () => {
test('Both addAttach & addMsg', async () => {
test('Both addAttach & addMsg with failure', async () => {
const nightmare = Nightmare({ show: true })

@@ -170,3 +170,3 @@ await addMsg(JSON.stringify({won: 1, too: 2}, null, 2))

const s1 = await nightmare.screenshot();
await addAttach(s1, 'test google 3')
await addAttach(s1, 'test duckduckgo 1')
await nightmare.end();

@@ -176,3 +176,12 @@ await addMsg(JSON.stringify(process, null, 2))

}, 20000);
test('addMsg with success', async () => {
await addMsg(JSON.stringify({free: 3, for: 4}, null, 2))
expect(2).toEqual(2);
});
});
```
![example](./addMsg-example1.jpg)
Message still displays without screenshots and with a successful test
![example](./addMsg-example2.jpg)

Sorry, the diff of this file is not supported yet