Weekly scheduled smoke test: eslint-plugin-jest
github-actions opened this issue · 1 comments
github-actions commented
Detected 10 ESLint reports and/or crashes.
Scanned 1949 repositories.
Rules:
jest/prefer-expect-assertions
Click to expand
Rule: jest/prefer-expect-assertions
- Message:
Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/ComputedResolver.test.js:4 Rule: "jest/prefer-expect-assertions"
- Path:
magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/ComputedResolver.test.js
- Link
2 |
3 | test('resolverType is computed', () =>
> 4 | expect(ComputedResolver.resolverType).toBe('computed'));
5 |
6 | test('telltale exists', () => expect(ComputedResolver.telltale).toBeDefined());
7 |
Error: Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/ComputedResolver.test.js:4
Rule: "jest/prefer-expect-assertions"
at isFirstStatement (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:27:9)
at CallExpression (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:190:40)
at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
Rule: jest/prefer-expect-assertions
- Message:
Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/ConditionalResolver.test.js:4 Rule: "jest/prefer-expect-assertions"
- Path:
magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/ConditionalResolver.test.js
- Link
2 |
3 | test('resolverType is conditional', () =>
> 4 | expect(ConditionalResolver.resolverType).toBe('conditional'));
5 |
6 | test('telltale exists', () =>
7 | expect(ConditionalResolver.telltale).toBe('when'));
Error: Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/ConditionalResolver.test.js:4
Rule: "jest/prefer-expect-assertions"
at isFirstStatement (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:27:9)
at CallExpression (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:190:40)
at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
Rule: jest/prefer-expect-assertions
- Message:
Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/FileResolver.test.js:4 Rule: "jest/prefer-expect-assertions"
- Path:
magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/FileResolver.test.js
- Link
2 |
3 | test('resolverType is file', () =>
> 4 | expect(FileResolver.resolverType).toBe('file'));
5 |
6 | test('telltale exists', () => expect(FileResolver.telltale).toBeDefined());
7 |
Error: Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/FileResolver.test.js:4
Rule: "jest/prefer-expect-assertions"
at isFirstStatement (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:27:9)
at CallExpression (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:190:40)
at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
Rule: jest/prefer-expect-assertions
- Message:
Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/InlineResolver.test.js:4 Rule: "jest/prefer-expect-assertions"
- Path:
magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/InlineResolver.test.js
- Link
2 |
3 | test('resolverType is inline', () =>
> 4 | expect(InlineResolver.resolverType).toBe('inline'));
5 |
6 | test('telltale exists', () => expect(InlineResolver.telltale).toBeDefined());
7 |
Error: Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/InlineResolver.test.js:4
Rule: "jest/prefer-expect-assertions"
at isFirstStatement (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:27:9)
at CallExpression (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:190:40)
at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
Rule: jest/prefer-expect-assertions
- Message:
Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/ProxyResolver.test.js:12 Rule: "jest/prefer-expect-assertions"
- Path:
magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/ProxyResolver.test.js
- Link
10 |
11 | test('resolverType is proxy', () =>
> 12 | expect(ProxyResolver.resolverType).toBe('proxy'));
13 |
14 | test('telltale is target', () => expect(ProxyResolver.telltale).toBe('target'));
15 |
Error: Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/ProxyResolver.test.js:12
Rule: "jest/prefer-expect-assertions"
at isFirstStatement (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:27:9)
at CallExpression (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:190:40)
at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
Rule: jest/prefer-expect-assertions
- Message:
Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/ServiceResolver.test.js:17 Rule: "jest/prefer-expect-assertions"
- Path:
magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/ServiceResolver.test.js
- Link
15 |
16 | test('resolverType is service', () =>
> 17 | expect(ServiceResolver.resolverType).toBe('service'));
18 |
19 | test('telltale exists', () => expect(ServiceResolver.telltale).toBeDefined());
20 |
Error: Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/ServiceResolver.test.js:17
Rule: "jest/prefer-expect-assertions"
at isFirstStatement (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:27:9)
at CallExpression (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:190:40)
at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
Rule: jest/prefer-expect-assertions
- Message:
Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/TemplateResolver.test.js:5 Rule: "jest/prefer-expect-assertions"
- Path:
magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/TemplateResolver.test.js
- Link
3 |
4 | test('resolverType is file', () =>
> 5 | expect(TemplateResolver.resolverType).toBe('template'));
6 |
7 | test('telltale exists', () => expect(TemplateResolver.telltale).toBeDefined());
8 |
Error: Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/TemplateResolver.test.js:5
Rule: "jest/prefer-expect-assertions"
at isFirstStatement (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:27:9)
at CallExpression (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:190:40)
at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
Rule: jest/prefer-expect-assertions
- Message:
Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/UrlResolver.test.js:3 Rule: "jest/prefer-expect-assertions"
- Path:
magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/UrlResolver.test.js
- Link
1 | const UrlResolver = require('../UrlResolver');
2 |
> 3 | test('resolverType is url', () => expect(UrlResolver.resolverType).toBe('url'));
4 |
5 | test('telltale exists', () => expect(UrlResolver.telltale).toBeDefined());
6 |
Error: Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/magento/pwa-studio/packages/upward-js/lib/resolvers/__tests__/UrlResolver.test.js:3
Rule: "jest/prefer-expect-assertions"
at isFirstStatement (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:27:9)
at CallExpression (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:190:40)
at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
Rule: jest/prefer-expect-assertions
- Message:
Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reactioncommerce/api-utils/lib/graphql/applyBeforeAfterToFilter.test.js:4 Rule: "jest/prefer-expect-assertions"
- Path:
reactioncommerce/api-utils/lib/graphql/applyBeforeAfterToFilter.test.js
- Link
2 |
3 | test("throws an error if sortBy is missing", () =>
> 4 | expect(() => applyBeforeAfterToFilter({ sortBy: null })).toThrowErrorMatchingSnapshot());
5 |
6 | test("throws an error if sortOrder is missing", () =>
7 | expect(() => applyBeforeAfterToFilter({ sortOrder: null })).toThrowErrorMatchingSnapshot());
Error: Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reactioncommerce/api-utils/lib/graphql/applyBeforeAfterToFilter.test.js:4
Rule: "jest/prefer-expect-assertions"
at isFirstStatement (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:27:9)
at CallExpression (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:190:40)
at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
Rule: jest/prefer-expect-assertions
- Message:
Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/kiwicom/eslint-config-kiwicom/__tests__/index.test.js:56 Rule: "jest/prefer-expect-assertions"
- Path:
kiwicom/eslint-config-kiwicom/__tests__/index.test.js
- Link
54 | Object.entries(prettierRules),
55 | )('Eslint rule %p should have value: %p (conflict with Prettier)', (rule, value) =>
> 56 | expect(ourRules.get(rule)).toBe(value),
57 | );
58 |
59 | // TODO: test for extra rules
Error: Could not find BlockStatement - please file a github issue at https://github.com/jest-community/eslint-plugin-jest
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/kiwicom/eslint-config-kiwicom/__tests__/index.test.js:56
Rule: "jest/prefer-expect-assertions"
at isFirstStatement (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:27:9)
at CallExpression (/github/workspace/ci/node_modules/eslint-plugin-jest/lib/rules/prefer-expect-assertions.js:190:40)
at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
github-actions commented
Something went wrong. This is likely an internal error of eslint-remote-tester-run-action
.
Click to expand
Error: Configuration validation errors:
- eslintrc: Error while loading rule 'jest/unbound-method': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
Occurred while linting <text>
at validate (/github/workspace/ci/node_modules/eslint-remote-tester/dist/config/validator.js:151:19)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async runTester (/index.js:5935:3)