@brillout/test-e2e 0.6.6 → 0.6.7

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.
@@ -9,7 +9,10 @@ function isTolerateError({ logSource, logText }) {
9
9
  }
10
10
  const testInfo = getCurrentTestOptional();
11
11
  const config = getConfig();
12
- if (config.tolerateError?.({ logSource, logText, testInfo })) {
12
+ const { tolerateError } = config;
13
+ if (tolerateError === true)
14
+ return true;
15
+ if (tolerateError?.({ logSource, logText, testInfo })) {
13
16
  return true;
14
17
  }
15
18
  return false;
@@ -2,7 +2,7 @@ export { getConfig };
2
2
  export { loadConfig };
3
3
  import type { LaunchOptions } from 'playwright-chromium';
4
4
  type Config = {
5
- tolerateError?: Function;
5
+ tolerateError?: Function | true;
6
6
  ci?: never;
7
7
  chromiumLaunchOptions?: LaunchOptions;
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/test-e2e",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "bin": "./bin.js",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",