@brillout/test-e2e 0.1.16 → 0.1.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/getConfig.js +8 -8
- package/dist/runTests.js +1 -1
- package/package.json +1 -1
package/dist/getConfig.js
CHANGED
|
@@ -31,16 +31,16 @@ function assertConfig(config) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
function find() {
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
const dir = path_1.default.dirname(curr);
|
|
37
|
-
if (dir === curr) {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
34
|
+
let dir = process.cwd();
|
|
35
|
+
while (true) {
|
|
40
36
|
const configFilePath = path_1.default.join(dir, configFileName);
|
|
41
37
|
if (fs_1.default.existsSync(configFilePath)) {
|
|
42
38
|
return configFilePath;
|
|
43
39
|
}
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
const dirPrevious = dir;
|
|
41
|
+
dir = path_1.default.dirname(dir);
|
|
42
|
+
if (dir === dirPrevious) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
46
|
}
|
package/dist/runTests.js
CHANGED
|
@@ -60,7 +60,7 @@ async function runTests(browser) {
|
|
|
60
60
|
console.error(err);
|
|
61
61
|
}
|
|
62
62
|
if (hasErrorLog) {
|
|
63
|
-
console.log(new Error('The browser/server threw/logged one or more error, see logs below.'));
|
|
63
|
+
console.log(new Error('The browser/server threw/logged one or more error/warning, see logs below.'));
|
|
64
64
|
}
|
|
65
65
|
Logs_1.Logs.flush();
|
|
66
66
|
process.exit(1);
|