@lvce-editor/test-with-playwright 0.3.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-with-playwright",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "",
5
5
  "main": "src/parts/RunAllTests/RunAllTests.js",
6
6
  "type": "module",
@@ -14,6 +14,10 @@
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
16
  "minimist": "^1.2.8",
17
- "@lvce-editor/test-with-playwright-worker": "0.3.0"
17
+ "@lvce-editor/test-with-playwright-worker": "0.5.0"
18
+ },
19
+ "devDependencies": {
20
+ "@types/jest": "^29.5.12",
21
+ "jest": "^29.7.0"
18
22
  }
19
23
  }
@@ -3,7 +3,7 @@ export const getFinalResultMessage = (passed, skipped, failed, duration) => {
3
3
  return `no tests found`
4
4
  }
5
5
  if (passed === 0 && skipped === 0 && failed === 1) {
6
- return `${passed} test failed in ${duration}ms`
6
+ return `${failed} test failed in ${duration}ms`
7
7
  }
8
8
  if (passed === 0 && skipped === 1 && failed === 0) {
9
9
  return `${skipped} test skipped in ${duration}ms`
@@ -5,4 +5,7 @@ export const handleFinalResult = (finalResult) => {
5
5
  const duration = end - start
6
6
  const message = GetFinalResultMessage.getFinalResultMessage(passed, skipped, failed, duration)
7
7
  console.info(message)
8
+ if (failed > 0) {
9
+ process.exitCode = 1
10
+ }
8
11
  }