Closed github-actions[bot] closed 2 years ago
Detected 5 ESLint reports and/or crashes. Scanned 7972 repositories.
Rules:
prefer-to-have-value
prefer-in-document
Detected 5 ESLint reports and/or crashes. Scanned 6980 repositories.
Rules:
prefer-to-have-value
prefer-in-document
Detected 7 ESLint reports and/or crashes. Scanned 8787 repositories.
Rules:
prefer-in-document
prefer-to-have-value
Detected 6 ESLint reports and/or crashes. Scanned 7605 repositories.
Rules:
prefer-in-document
prefer-to-have-value
Closed by #242 & #243
Detected 9 ESLint reports and/or crashes. Scanned 7632 repositories.
Rules:
prefer-in-document
prefer-to-have-value
Click to expand
## Rule: prefer-in-document - Message: `Cannot read property 'type' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/CSCfi/etsin-finder/etsin_finder/frontend/__tests__/stores/view/qvain.apiv2.test.js:342` - Path: `CSCfi/etsin-finder/etsin_finder/frontend/__tests__/stores/view/qvain.apiv2.test.js` - [Link](https://github.com/CSCfi/etsin-finder/blob/HEAD/etsin_finder/frontend/__tests__/stores/view/qvain.apiv2.test.js#L342) ```js 340 | await Submit.submitDraft() 341 | } catch (e) { > 342 | expect().toBe(true) 343 | } finally { 344 | expect(Submit.error).toBe(undefined) 345 | } ``` ``` TypeError: Cannot read property 'type' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/CSCfi/etsin-finder/etsin_finder/frontend/__tests__/stores/view/qvain.apiv2.test.js:342 at CallExpression[callee.object.callee.name='expect'][callee.property.name=/^(toHaveLength|toBeDefined|toBeNull|toBe|toEqual|toBeTruthy|toBeFalsy)$/], CallExpression[callee.object.callee.name='expect'][callee.object.arguments.0.argument.callee.name=/^(toHaveLength|toBeDefined|toBeNull|toBe|toEqual|toBeTruthy|toBeFalsy)$/] (/github/workspace/dist/rules/prefer-in-document.js:183:29) at /github/workspace/node_modules/eslint/lib/linter/safe-emitter.js:45:58 at Array.forEach (