@brillout/test-e2e 0.1.16 → 0.1.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.
package/dist/getConfig.js CHANGED
@@ -18,7 +18,7 @@ exports.getConfig = getConfig;
18
18
  async function loadConfig() {
19
19
  const configFilePath = find();
20
20
  (0, utils_1.assertUsage)(configFilePath, errPrefix + 'not found');
21
- const configFileExports = (await import(configFilePath));
21
+ const configFileExports = (await import((0, utils_1.fsWindowsBugWorkaround)(configFilePath)));
22
22
  (0, utils_1.assertUsage)('default' in configFileExports, errPrefix + 'should have a default export');
23
23
  assertConfig(configFileExports.default);
24
24
  config = configFileExports.default;
@@ -31,16 +31,16 @@ function assertConfig(config) {
31
31
  }
32
32
  }
33
33
  function find() {
34
- let curr = process.cwd();
35
- do {
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
- curr = dir;
45
- } while (true);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/test-e2e",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "bin": "./bin.js",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {