@brillout/test-e2e 0.4.16 → 0.4.17
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/runAll.js +7 -7
- package/package.json +1 -1
package/dist/runAll.js
CHANGED
|
@@ -60,6 +60,13 @@ async function buildAndTest(testFile, browser, isSecondAttempt) {
|
|
|
60
60
|
}
|
|
61
61
|
async function runServerAndTests(browser, isSecondAttempt) {
|
|
62
62
|
const testInfo = (0, getCurrentTest_1.getCurrentTest)();
|
|
63
|
+
// Set when user calls `skip()`
|
|
64
|
+
if (testInfo.skipped) {
|
|
65
|
+
(0, logTestStatus_1.logWarn)(testInfo.skipped);
|
|
66
|
+
(0, utils_1.assertUsage)(!testInfo.runInfo, 'You cannot call `run()` after calling `skip()`');
|
|
67
|
+
(0, utils_1.assertUsage)(testInfo.tests === undefined, 'You cannot call `test()` after calling `skip()`');
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
63
70
|
// Set when user calls `run()`
|
|
64
71
|
(0, utils_1.assert)(testInfo.runInfo);
|
|
65
72
|
(0, utils_1.assert)(testInfo.startServer);
|
|
@@ -100,13 +107,6 @@ async function runTests(testInfo, isFinalAttempt) {
|
|
|
100
107
|
console.log();
|
|
101
108
|
console.log(testInfo.testFile);
|
|
102
109
|
}
|
|
103
|
-
// Set when user calls `skip()`
|
|
104
|
-
if (testInfo.skipped) {
|
|
105
|
-
(0, logTestStatus_1.logWarn)(testInfo.skipped);
|
|
106
|
-
(0, utils_1.assertUsage)(!testInfo.runInfo, 'You cannot call `run()` after calling `skip()`');
|
|
107
|
-
(0, utils_1.assertUsage)(testInfo.tests === undefined, 'You cannot call `test()` after calling `skip()`');
|
|
108
|
-
return true;
|
|
109
|
-
}
|
|
110
110
|
// Set when user calls `run()`
|
|
111
111
|
(0, utils_1.assert)(testInfo.runInfo);
|
|
112
112
|
(0, utils_1.assert)(testInfo.afterEach);
|