@web/test-runner-core
Advanced tools
Comparing version 0.11.6 to 0.12.0
import { Middleware } from '@web/dev-server-core'; | ||
import { BrowserLauncher } from '../browser-launcher/BrowserLauncher.js'; | ||
import { TestFramework } from '../test-framework/TestFramework.js'; | ||
import { TestSession } from '../test-session/TestSession.js'; | ||
import { Reporter } from '../reporter/Reporter.js'; | ||
@@ -44,3 +45,3 @@ import { Logger } from '../logger/Logger.js'; | ||
args: any[]; | ||
}) => boolean; | ||
}, session?: Partial<TestSession>) => boolean; | ||
coverage?: boolean; | ||
@@ -47,0 +48,0 @@ coverageConfig: CoverageConfig; |
@@ -19,3 +19,3 @@ "use strict"; | ||
for (const log of logsWithType) { | ||
if (!config.filterBrowserLogs || config.filterBrowserLogs(log)) { | ||
if (!config.filterBrowserLogs || config.filterBrowserLogs(log, result)) { | ||
logs.push(log.args); | ||
@@ -22,0 +22,0 @@ } |
{ | ||
"name": "@web/test-runner-core", | ||
"version": "0.11.6", | ||
"version": "0.12.0", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
import { Middleware } from '@web/dev-server-core'; | ||
import { BrowserLauncher } from '../browser-launcher/BrowserLauncher.js'; | ||
import { TestFramework } from '../test-framework/TestFramework.js'; | ||
import { TestSession } from '../test-session/TestSession.js'; | ||
import { Reporter } from '../reporter/Reporter.js'; | ||
@@ -49,3 +50,6 @@ import { Logger } from '../logger/Logger.js'; | ||
browserLogs?: boolean; | ||
filterBrowserLogs?: (log: { type: string; args: any[] }) => boolean; | ||
filterBrowserLogs?: ( | ||
log: { type: string; args: any[] }, | ||
session?: Partial<TestSession>, | ||
) => boolean; | ||
coverage?: boolean; | ||
@@ -52,0 +56,0 @@ coverageConfig: CoverageConfig; |
@@ -43,3 +43,3 @@ import { deserialize, MapStackLocation } from '@web/browser-logs'; | ||
for (const log of logsWithType) { | ||
if (!config.filterBrowserLogs || config.filterBrowserLogs(log)) { | ||
if (!config.filterBrowserLogs || config.filterBrowserLogs(log, result)) { | ||
logs.push(log.args); | ||
@@ -46,0 +46,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
403453
7054