@browsermation/test 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +8 -1
- package/dist/reporter/reporter.d.ts +9 -0
- package/package.json +8 -1
package/dist/bin/cli.js
CHANGED
|
@@ -42871,7 +42871,7 @@ var {
|
|
|
42871
42871
|
// package.json
|
|
42872
42872
|
var package_default = {
|
|
42873
42873
|
name: "@browsermation/test",
|
|
42874
|
-
version: "0.0.
|
|
42874
|
+
version: "0.0.12",
|
|
42875
42875
|
description: "The testing platform for Playwright by Browsermation.",
|
|
42876
42876
|
main: "./dist/index.js",
|
|
42877
42877
|
types: "./dist/index.d.ts",
|
|
@@ -42882,6 +42882,12 @@ var package_default = {
|
|
|
42882
42882
|
types: "./dist/index.d.ts",
|
|
42883
42883
|
default: "./dist/index.js"
|
|
42884
42884
|
},
|
|
42885
|
+
"./reporter": {
|
|
42886
|
+
import: "./dist/reporter.js",
|
|
42887
|
+
require: "./dist/reporter.js",
|
|
42888
|
+
types: "./dist/reporter.d.ts",
|
|
42889
|
+
default: "./dist/reporter.js"
|
|
42890
|
+
},
|
|
42885
42891
|
"./package.json": "./package.json"
|
|
42886
42892
|
},
|
|
42887
42893
|
bin: {
|
|
@@ -42892,6 +42898,7 @@ var package_default = {
|
|
|
42892
42898
|
],
|
|
42893
42899
|
scripts: {
|
|
42894
42900
|
"build:cli": "esbuild src/bin/cli.ts --bundle --platform=node --external:playwright --target=node22 --outfile=dist/bin/cli.js",
|
|
42901
|
+
"build:reporter": "esbuild src/reporter.ts --bundle --platform=node --external:playwright --target=node22 --outfile=dist/reporter.js",
|
|
42895
42902
|
"build:index": "esbuild src/index.ts --bundle --platform=node --external:playwright --target=node22 --outfile=dist/index.js",
|
|
42896
42903
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
42897
42904
|
build: "rm -rf dist && npm run build:cli && npm run build:index && npm run build:types",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FullConfig, FullResult, Reporter, Suite, TestCase, TestError, TestResult } from '@playwright/test/reporter';
|
|
2
|
+
export default class BrowsermationReporter implements Reporter {
|
|
3
|
+
onBegin(_config: FullConfig, suite: Suite): void;
|
|
4
|
+
onEnd(result: FullResult): void;
|
|
5
|
+
onTestBegin(test: TestCase): void;
|
|
6
|
+
onTestEnd(test: TestCase, result: TestResult): void;
|
|
7
|
+
onError(error: TestError): void;
|
|
8
|
+
onExit(): Promise<void>;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@browsermation/test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "The testing platform for Playwright by Browsermation.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"default": "./dist/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./reporter": {
|
|
15
|
+
"import": "./dist/reporter.js",
|
|
16
|
+
"require": "./dist/reporter.js",
|
|
17
|
+
"types": "./dist/reporter.d.ts",
|
|
18
|
+
"default": "./dist/reporter.js"
|
|
19
|
+
},
|
|
14
20
|
"./package.json": "./package.json"
|
|
15
21
|
},
|
|
16
22
|
"bin": {
|
|
@@ -21,6 +27,7 @@
|
|
|
21
27
|
],
|
|
22
28
|
"scripts": {
|
|
23
29
|
"build:cli": "esbuild src/bin/cli.ts --bundle --platform=node --external:playwright --target=node22 --outfile=dist/bin/cli.js",
|
|
30
|
+
"build:reporter": "esbuild src/reporter.ts --bundle --platform=node --external:playwright --target=node22 --outfile=dist/reporter.js",
|
|
24
31
|
"build:index": "esbuild src/index.ts --bundle --platform=node --external:playwright --target=node22 --outfile=dist/index.js",
|
|
25
32
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
26
33
|
"build": "rm -rf dist && npm run build:cli && npm run build:index && npm run build:types",
|