@brillout/test-e2e 0.5.17 → 0.5.18

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.
Files changed (2) hide show
  1. package/dist/runAll.js +10 -7
  2. package/package.json +1 -1
package/dist/runAll.js CHANGED
@@ -48,16 +48,19 @@ async function runTestFiles(testFiles, browser) {
48
48
  if (!(0, utils_1.isCI)()) {
49
49
  return failedTestFiles;
50
50
  }
51
- // Second & third attempt
52
- for (let n = 1; n <= 2; n++) {
53
- for (const testFile of failedTestFiles) {
54
- const success = await buildAndTest(testFile, browser, true);
55
- if (success) {
56
- failedTestFiles = failedTestFiles.filter((t) => t !== testFile);
51
+ else {
52
+ // Second & third attempt
53
+ for (let i = 0; i <= 1; i++) {
54
+ console.log((i === 0 ? 'SECOND' : 'THIRD') + '_ATTEMPT');
55
+ for (const testFile of failedTestFiles) {
56
+ const success = await buildAndTest(testFile, browser, true);
57
+ if (success) {
58
+ failedTestFiles = failedTestFiles.filter((t) => t !== testFile);
59
+ }
57
60
  }
58
61
  }
62
+ return failedTestFiles;
59
63
  }
60
- return failedTestFiles;
61
64
  }
62
65
  async function buildAndTest(testFile, browser, isSecondAttempt) {
63
66
  (0, utils_1.assert)(testFile.endsWith('.ts'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/test-e2e",
3
- "version": "0.5.17",
3
+ "version": "0.5.18",
4
4
  "bin": "./bin.js",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {