@web/test-runner-core
Advanced tools
Comparing version 0.5.5 to 0.5.6
# @web/test-runner-core | ||
## 0.5.6 | ||
### Patch Changes | ||
- 14b7fae: handle errors in mocha hooks | ||
## 0.5.5 | ||
@@ -4,0 +10,0 @@ |
@@ -8,3 +8,3 @@ import * as constants from './browser-launcher/constants'; | ||
export { Server } from './server/Server'; | ||
export { TestSession, FailedImport, TestResultError, TestResult } from './test-session/TestSession'; | ||
export { TestSession, TestResultError, TestResult } from './test-session/TestSession'; | ||
export { TestSessionManager } from './test-session/TestSessionManager'; | ||
@@ -11,0 +11,0 @@ export { TestSessionStatus, SESSION_STATUS } from './test-session/TestSessionStatus'; |
@@ -18,5 +18,5 @@ "use strict"; | ||
testFile, | ||
errors: [], | ||
tests: [], | ||
logs: [], | ||
failedImports: [], | ||
request404s: [], | ||
@@ -23,0 +23,0 @@ }; |
@@ -78,4 +78,4 @@ "use strict"; | ||
} | ||
setSessionFailed(session, error) { | ||
this.sessions.updateStatus(Object.assign(Object.assign({}, session), { passed: false, error }), TestSessionStatus_1.SESSION_STATUS.FINISHED); | ||
setSessionFailed(session, ...errors) { | ||
this.sessions.updateStatus(Object.assign(Object.assign({}, session), { passed: false, errors }), TestSessionStatus_1.SESSION_STATUS.FINISHED); | ||
} | ||
@@ -82,0 +82,0 @@ setSessionStartedTimeout(testRun, sessionId) { |
import { CoverageMapData } from 'istanbul-lib-coverage'; | ||
import { TestSessionStatus } from './TestSessionStatus'; | ||
import { BrowserLauncher } from '../browser-launcher/BrowserLauncher'; | ||
export interface FailedImport { | ||
file: string; | ||
error: TestResultError; | ||
} | ||
export interface TestResultError { | ||
@@ -27,6 +23,5 @@ message: string; | ||
passed?: boolean; | ||
error?: TestResultError; | ||
errors: TestResultError[]; | ||
tests: TestResult[]; | ||
logs: string[]; | ||
failedImports: FailedImport[]; | ||
request404s: string[]; | ||
@@ -33,0 +28,0 @@ testCoverage?: CoverageMapData; |
{ | ||
"name": "@web/test-runner-core", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"publishConfig": { | ||
@@ -23,2 +23,3 @@ "access": "public" | ||
"test": "mocha test/**/*.test.ts --require ts-node/register --reporter progress", | ||
"test:ci": "yarn test", | ||
"test:watch": "mocha test/**/*.test.ts --require ts-node/register --watch --watch-files src,test --reporter progress" | ||
@@ -25,0 +26,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
60985
748