playwright-security-scan 0.0.0 → 0.1.0-beta.0
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/CHANGELOG.md +36 -0
- package/LICENSE +21 -0
- package/README.md +333 -1
- package/dist/chunk-6HZSEXCR.js +2727 -0
- package/dist/chunk-BBF7BGCZ.cjs +10 -0
- package/dist/chunk-GHGZTTAG.cjs +1581 -0
- package/dist/chunk-HWVW6NBJ.cjs +2740 -0
- package/dist/chunk-IHU2HYVH.js +1554 -0
- package/dist/chunk-SFWIEETP.js +8 -0
- package/dist/config.cjs +153 -0
- package/dist/config.d.cts +219 -0
- package/dist/config.d.ts +219 -0
- package/dist/config.js +144 -0
- package/dist/fixture.cjs +733 -0
- package/dist/fixture.d.cts +35 -0
- package/dist/fixture.d.ts +35 -0
- package/dist/fixture.js +725 -0
- package/dist/reporter.cjs +1118 -0
- package/dist/reporter.d.cts +18 -0
- package/dist/reporter.d.ts +18 -0
- package/dist/reporter.js +1113 -0
- package/dist/rules.cjs +10 -0
- package/dist/rules.d.cts +4 -0
- package/dist/rules.d.ts +4 -0
- package/dist/rules.js +1 -0
- package/package.json +87 -4
- package/schemas/attachment.schema.json +15 -0
- package/schemas/baseline.schema.json +47 -0
- package/schemas/common.schema.json +307 -0
- package/schemas/outcome.schema.json +28 -0
- package/schemas/run-report.schema.json +192 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Reporter, FullConfig, Suite, TestCase, TestResult, FullResult } from '@playwright/test/reporter';
|
|
2
|
+
|
|
3
|
+
interface ReporterOptions {
|
|
4
|
+
/** Where the console output goes; tests pass a collector. */
|
|
5
|
+
write?: (line: string) => void;
|
|
6
|
+
}
|
|
7
|
+
declare class SecurityReporter implements Reporter {
|
|
8
|
+
#private;
|
|
9
|
+
constructor(options?: ReporterOptions);
|
|
10
|
+
printsToStdio(): boolean;
|
|
11
|
+
onBegin(config: FullConfig, suite: Suite): void;
|
|
12
|
+
onTestEnd(test: TestCase, result: TestResult): void;
|
|
13
|
+
onEnd(result: FullResult): Promise<{
|
|
14
|
+
status?: FullResult['status'];
|
|
15
|
+
} | undefined>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { SecurityReporter, SecurityReporter as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Reporter, FullConfig, Suite, TestCase, TestResult, FullResult } from '@playwright/test/reporter';
|
|
2
|
+
|
|
3
|
+
interface ReporterOptions {
|
|
4
|
+
/** Where the console output goes; tests pass a collector. */
|
|
5
|
+
write?: (line: string) => void;
|
|
6
|
+
}
|
|
7
|
+
declare class SecurityReporter implements Reporter {
|
|
8
|
+
#private;
|
|
9
|
+
constructor(options?: ReporterOptions);
|
|
10
|
+
printsToStdio(): boolean;
|
|
11
|
+
onBegin(config: FullConfig, suite: Suite): void;
|
|
12
|
+
onTestEnd(test: TestCase, result: TestResult): void;
|
|
13
|
+
onEnd(result: FullResult): Promise<{
|
|
14
|
+
status?: FullResult['status'];
|
|
15
|
+
} | undefined>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { SecurityReporter, SecurityReporter as default };
|