@nightwatch/html-reporter-template
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -1,1 +0,1 @@ | ||
export declare const writeNightwatchHTMLReport: (destFolder: string, jsonReportObject: string, product?: string) => void; | ||
export declare const writeNightwatchHTMLReport: (destFolder: string, destFileName: string, jsonReportObject: string, product?: string) => void; |
@@ -6,10 +6,10 @@ "use strict"; | ||
const path_1 = require("path"); | ||
const writeNightwatchHTMLReport = (destFolder, jsonReportObject, product = 'html') => { | ||
const writeNightwatchHTMLReport = (destFolder, destFileName, jsonReportObject, product = 'html') => { | ||
// Create Destination Folder | ||
(0, fs_1.mkdirSync)(destFolder, { recursive: true }); | ||
const indexFile = (0, path_1.join)(__dirname, product, 'index.html'); | ||
const destinationReportFile = (0, path_1.join)(destFolder, 'index.html'); | ||
(0, fs_1.copyFileSync)(indexFile, destinationReportFile); | ||
const reportFile = (0, path_1.join)(__dirname, product, 'index.html'); | ||
const destinationReportFile = (0, path_1.join)(destFolder, destFileName); | ||
(0, fs_1.copyFileSync)(reportFile, destinationReportFile); | ||
(0, fs_1.appendFileSync)(destinationReportFile, `<script>window.nightwatchReport = ${jsonReportObject}</script>`); | ||
}; | ||
exports.writeNightwatchHTMLReport = writeNightwatchHTMLReport; |
{ | ||
"name": "@nightwatch/html-reporter-template", | ||
"description": "Nightwatch HTML reporter template", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"type": "commonjs", | ||
@@ -9,2 +9,3 @@ "scripts": { | ||
"dev:vrt": "VITE_PRODUCT=vrt vite", | ||
"build": "npm run build:html && npm run build:vrt && tsc -p tsconfig.node.cjs.json", | ||
"build:html": "tsc && VITE_PRODUCT=html vite build && tsc -p tsconfig.node.cjs.json", | ||
@@ -56,3 +57,3 @@ "build:vrt": "tsc && VITE_PRODUCT=vrt vite build && tsc -p tsconfig.node.cjs.json", | ||
"babel-plugin-styled-components": "^2.0.7", | ||
"chromedriver": "^108.0.0", | ||
"chromedriver": "^111.0.0", | ||
"eslint": "^8.31.0", | ||
@@ -65,3 +66,3 @@ "eslint-config-prettier": "^8.6.0", | ||
"fuse.js": "^6.6.2", | ||
"nightwatch": "^2.6.9", | ||
"nightwatch": "^2.6.19", | ||
"prettier": "^2.8.2", | ||
@@ -83,3 +84,2 @@ "prism-react-renderer": "^1.3.5", | ||
"files": [ | ||
"dist", | ||
"index.js", | ||
@@ -86,0 +86,0 @@ "index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2897464