@brillout/test-e2e 0.1.11 → 0.1.13

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="chai-subset" />
2
1
  export type { ChaiPlugin };
3
2
  export type { Expect };
4
3
  import type { use as chaiUse } from 'chai';
package/dist/runTests.js CHANGED
@@ -15,9 +15,9 @@ async function runTests(browser) {
15
15
  testInfo.page = page;
16
16
  // Set when user calls `skip()`
17
17
  if (testInfo.skipped) {
18
+ logTestsResult(false);
18
19
  (0, utils_1.assertUsage)(!testInfo.runInfo, 'You cannot call `run()` after calling `skip()`');
19
20
  (0, utils_1.assertUsage)(testInfo.tests === undefined, 'You cannot call `test()` after calling `skip()`');
20
- logTestsResult(false);
21
21
  return;
22
22
  }
23
23
  // Set when user calls `run()`
@@ -32,9 +32,9 @@ async function runTests(browser) {
32
32
  await testInfo.startServer();
33
33
  }
34
34
  catch (err) {
35
+ logTestsResult(false);
35
36
  console.log(err);
36
37
  Logs_1.Logs.flush();
37
- logTestsResult(false);
38
38
  process.exit(1);
39
39
  }
40
40
  for (const { testDesc, testFn } of testInfo.tests) {
@@ -56,14 +56,14 @@ async function runTests(browser) {
56
56
  const browserThrewError = browserErrors.length > 0;
57
57
  const isFailure = err || browserThrewError;
58
58
  if (isFailure) {
59
+ logTestsResult(false);
59
60
  if (err) {
60
61
  console.error(err);
61
62
  }
62
63
  if (browserThrewError) {
63
- console.log(new Error('The browser threw one or more error'));
64
+ console.log(new Error('The browser threw one or more error, see browser logs below.'));
64
65
  }
65
66
  Logs_1.Logs.flush();
66
- logTestsResult(false);
67
67
  process.exit(1);
68
68
  }
69
69
  else {
package/dist/setup.js CHANGED
@@ -27,8 +27,8 @@ Object.defineProperty(exports, "editFile", { enumerable: true, get: function ()
27
27
  Object.defineProperty(exports, "editFileRevert", { enumerable: true, get: function () { return editFile_2.editFileRevert; } });
28
28
  const TIMEOUT_NPM_SCRIPT = 30 * 1000 * (!isGithubAction() ? 1 : isLinux() ? 1 : isWindows() ? 5 : 4);
29
29
  const TIMEOUT_TEST_FUNCTION = 60 * 1000 * (!isGithubAction() ? 1 : isWindows() ? 5 : 3);
30
- const TIMEOUT_AUTORETRY = 10 * 1000 * (!isGithubAction() || isLinux() ? 1 : 20); // TODO reduce `20`
31
30
  const TIMEOUT_PROCESS_TERMINATION = 10 * 1000 * (!isGithubAction() ? 1 : isLinux() ? 1 : 4);
31
+ const TIMEOUT_AUTORETRY = TIMEOUT_TEST_FUNCTION / 2;
32
32
  const TIMEOUT_PLAYWRIGHT = TIMEOUT_TEST_FUNCTION / 2;
33
33
  function skip(reason) {
34
34
  const testInfo = (0, getCurrentTest_1.getCurrentTest)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/test-e2e",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "bin": "./bin.js",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {