@rstest/browser 0.8.0 → 0.8.1

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/dist/index.js CHANGED
@@ -2239,7 +2239,7 @@ const runBrowserController = async (context, options)=>{
2239
2239
  const totalTests = projectEntries.reduce((total, item)=>total + item.testFiles.length, 0);
2240
2240
  if (0 === totalTests) {
2241
2241
  const code = context.normalizedConfig.passWithNoTests ? 0 : 1;
2242
- logger.log(color[code ? 'red' : 'yellow'](`No test files found, exiting with code ${code}.`));
2242
+ if (!skipOnTestRunEnd) logger.log(color[code ? 'red' : 'yellow'](`No test files found, exiting with code ${code}.`));
2243
2243
  if (0 !== code) ensureProcessExitCode(code);
2244
2244
  return;
2245
2245
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rstest/browser",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Browser mode support for Rstest testing framework.",
5
5
  "bugs": {
6
6
  "url": "https://github.com/web-infra-dev/rstest/issues"
@@ -53,12 +53,12 @@
53
53
  "picomatch": "^4.0.3",
54
54
  "playwright": "^1.49.1",
55
55
  "@rstest/browser-ui": "0.0.0",
56
- "@rstest/core": "0.8.0",
56
+ "@rstest/core": "0.8.1",
57
57
  "@rstest/tsconfig": "0.0.1"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "playwright": "^1.49.1",
61
- "@rstest/core": "^0.8.0"
61
+ "@rstest/core": "^0.8.1"
62
62
  },
63
63
  "peerDependenciesMeta": {
64
64
  "playwright": {
@@ -1227,11 +1227,14 @@ export const runBrowserController = async (
1227
1227
 
1228
1228
  if (totalTests === 0) {
1229
1229
  const code = context.normalizedConfig.passWithNoTests ? 0 : 1;
1230
- logger.log(
1231
- color[code ? 'red' : 'yellow'](
1232
- `No test files found, exiting with code ${code}.`,
1233
- ),
1234
- );
1230
+ if (!skipOnTestRunEnd) {
1231
+ logger.log(
1232
+ color[code ? 'red' : 'yellow'](
1233
+ `No test files found, exiting with code ${code}.`,
1234
+ ),
1235
+ );
1236
+ }
1237
+
1235
1238
  if (code !== 0) {
1236
1239
  ensureProcessExitCode(code);
1237
1240
  }