@wdio/dot-reporter
Advanced tools
Comparing version
@@ -1,28 +0,29 @@ | ||
import chalk from 'chalk'; | ||
import WDIOReporter from '@wdio/reporter'; | ||
/** | ||
* Initialize a new `Dot` matrix test reporter. | ||
*/ | ||
export default class DotReporter extends WDIOReporter { | ||
constructor(options) { | ||
super(Object.assign({ stdout: true }, options)); | ||
} | ||
/** | ||
* pending tests | ||
*/ | ||
onTestSkip() { | ||
this.write(chalk.cyanBright('.')); | ||
} | ||
/** | ||
* passing tests | ||
*/ | ||
onTestPass() { | ||
this.write(chalk.greenBright('.')); | ||
} | ||
/** | ||
* failing tests | ||
*/ | ||
onTestFail() { | ||
this.write(chalk.redBright('F')); | ||
} | ||
} | ||
// src/index.ts | ||
import chalk from "chalk"; | ||
import WDIOReporter from "@wdio/reporter"; | ||
var DotReporter = class extends WDIOReporter { | ||
constructor(options) { | ||
super(Object.assign({ stdout: true }, options)); | ||
} | ||
/** | ||
* pending tests | ||
*/ | ||
onTestSkip() { | ||
this.write(chalk.cyanBright(".")); | ||
} | ||
/** | ||
* passing tests | ||
*/ | ||
onTestPass() { | ||
this.write(chalk.greenBright(".")); | ||
} | ||
/** | ||
* failing tests | ||
*/ | ||
onTestFail() { | ||
this.write(chalk.redBright("F")); | ||
} | ||
}; | ||
export { | ||
DotReporter as default | ||
}; |
{ | ||
"name": "@wdio/dot-reporter", | ||
"version": "9.0.0-alpha.426+d760644c4", | ||
"version": "9.0.0", | ||
"description": "A WebdriverIO plugin to report in dot style", | ||
@@ -26,9 +26,11 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
"exports": { | ||
".": "./build/index.js", | ||
"./package.json": "./package.json" | ||
".": { | ||
"import": "./build/index.js", | ||
"types": "./build/index.d.ts" | ||
} | ||
}, | ||
"typeScriptVersion": "3.8.3", | ||
"dependencies": { | ||
"@wdio/reporter": "9.0.0-alpha.426+d760644c4", | ||
"@wdio/types": "9.0.0-alpha.426+d760644c4", | ||
"@wdio/reporter": "9.0.0", | ||
"@wdio/types": "9.0.0", | ||
"chalk": "^5.0.1" | ||
@@ -43,3 +45,3 @@ }, | ||
}, | ||
"gitHead": "d760644c4c6e1ef910c0bee120cb422e25dbbe06" | ||
"gitHead": "957693463371a4cb329395dcdbce8fb0c930ab93" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
49
2.08%0
-100%0
-100%4216
-2.32%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
Updated
Updated