feat: fix up jest tests

This commit is contained in:
Andrew Bastin
2021-09-10 17:50:22 +05:30
parent 05a07dc4a1
commit 36246da9e1
6 changed files with 35 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ export default function runTestScriptWithVariables(
expect(value: any) {
try {
return expect(value, this._testReports)
} catch (e) {
} catch (e: any) {
pw._testReports.push({
result: "ERROR",
message: e.toString(),
@@ -80,7 +80,7 @@ function test(
_testReports.push({ startBlock: descriptor })
try {
func()
} catch (e) {
} catch (e: any) {
_testReports.push({ result: "ERROR", message: e, styles: styles.ERROR })
}
_testReports.push({ endBlock: true })