Giter Site home page Giter Site logo

eslint-plugin-vitest's Issues

expect-expect seems to not work in tests with snapshots

expect-expect fails for me, here:

import props from "./props";
import { shallowMount } from "@vue/test-utils";
import Component from "./Component.vue";
import { expect, test } from "vitest";

test("Component - snapshot", async () => {
  const { element } = shallowMount(Component, { props });

  expect(element).toMatchSnapshot();
});

Relevant (?) Versions:

    "vue": "^3.2.45",
    "@types/eslint": "^8",
    "@vue/test-utils": "^2.0.2",
    "eslint": "^8.15.0",
    "eslint-plugin-vitest": "^0.0.20",
    "typescript": "^4.9.4",
    "vite": "^3.0.2",
    "vitest": "^0.25.8",
    "node": "16.x"
yarnPath: .yarn/releases/yarn-4.0.0-rc.33.cjs

`vitest/max-nested-describe` false positive

For the following code it highlights the last 2 describe blocks:

import { CurrencyType } from "./constants.js";
import { Currency } from "./Currency.js";

describe("currency", () => {
  describe("constructor", () => {});

  describe("normalise currency name", () => {});

  describe("get canonical name and multiplier", () => {});

  describe("to string", () => {});
});

with this configuration:

"vitest/max-nested-describe": [
          "error",
          {
            "max": 3
          }
        ],

If I increase max to 4 - it will only highlight the last block.
I think that nesting isn't counted correctly.

[regression] Crash in expect-expect rule when calling function without assignment

@veritem this still doesn't seem to work in the latest version, maybe a regression. Here's a minimal reproduction:

import { expect, it } from "vitest";

const myFunc = () => {};

it("works", () => expect(myFunc()).toBe(undefined));

Here's the error:

Oops! Something went wrong! :(

ESLint: 8.31.0

TypeError: Cannot read properties of undefined (reading 'length')
Occurred while linting my_project\legacy\analytics\util.spec.ts:5
Rule: "vitest/expect-expect"
    at my_project\node_modules\eslint-plugin-vitest\dist\index.cjs:323:30
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (my_project\node_modules\eslint-plugin-vitest\dist\index.cjs:322:32)
    at ruleErrorHandler (my_project\node_modules\eslint\lib\linter\linter.js:1115:28)
    at my_project\node_modules\eslint\lib\linter\safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (my_project\node_modules\eslint\lib\linter\safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (my_project\node_modules\eslint\lib\linter\node-event-generator.js:297:26)  
    at NodeEventGenerator.applySelectors (my_project\node_modules\eslint\lib\linter\node-event-generator.js:326:22) 
    at NodeEventGenerator.enterNode (my_project\node_modules\eslint\lib\linter\node-event-generator.js:340:14) 
npx envinfo

  System:
    OS: Windows 10 10.0.19044
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900H
    Memory: 39.38 GB / 63.68 GB
  Binaries:
    Node: 19.3.0 - ~\AppData\Local\nvs\default\node.EXE
    npm: 9.2.0 - ~\AppData\Local\nvs\default\npm.CMD
"@typescript-eslint/eslint-plugin": "5.48.1",
"eslint": "8.31.0",
"eslint-import-resolver-typescript": "3.5.3",
"eslint-plugin-import": "2.27.4",
"eslint-plugin-jest": "27.2.1",
"eslint-plugin-unicorn": "45.0.2",
"eslint-plugin-vitest": "0.0.29",

Originally posted by @Maxim-Mazurok in #20 (comment)

Rules

  • no skipped tests
  • no conditionals in tests
  • lowercase title
  • Not identical title
  • max-nested-describe
  • expect expect inside a test
  • enforce either test or it, but not both
  • prefer either toBeCalled or toHaveBeenCalled (and so on)
  • prefer await expect().resolves.toBe/await expect().rejects.toBe instead of expect(await ...).toBe
  • enforce either chai style or jest style assertions

Use import.meta.vitest instead of globals

It looks like the rule adds globals for it, expect, etc, which are turned off in vitest by default and should instead be taken from import.meta.vitest.

When I use:

if (import.meta.vitest) {
  const { test } = import.meta.vitest;

  test('hello', () => {});
}

I don't get any errors from expect-expect. If I however do:

if (import.meta.vitest) {
  test('hello', () => {});
}

I do get the expect-expect error, but the tests don't work without configuring vitest to use globals (which I'd prefer not to do).

Crash in `expect-expect` rule when calling function without assignment

The following code:

import {describe, expect, it} from 'vitest';
import {withUser} from '../../../myMock';

describe('my test', () => {
	it('should do something', () => {
		withUser(null);
		expect(1).toEqual(1);
	});
});

causes eslint-plugin-vitest to crash with:

Oops! Something went wrong! :(

ESLint: 8.28.0

TypeError: Cannot read properties of undefined (reading 'callee')
Occurred while linting /home/myproject/pages/api/component/DELETE.test.ts:6
Rule: "vitest/expect-expect"
    at /home/myproject/node_modules/.pnpm/[email protected]_hsf322ms6xhhd4b5ne6lb74y4a/node_modules/eslint-plugin-vitest/dist/index.cjs:309:62
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/home/myproject/node_modules/.pnpm/[email protected]_hsf322ms6xhhd4b5ne6lb74y4a/node_modules/eslint-plugin-vitest/dist/index.cjs:307:32)
    at ruleErrorHandler (/home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

I think it's because of the withUser function which doesn't have any assignment.

Crash in `no-conditional-tests` when using array destructuring

The following code:

import {describe, expect, it} from 'vitest';
import endpoint from './index.page';
import {test} from '../../../../../utils/tests/testEndpoint';

describe('my test', () => {
	it('do something', async () => {
		const asd = await test(endpoint);
		expect(1).toBe(1);
	});
});

causes eslint-plugin-vitest to crash with:

Oops! Something went wrong! :(

ESLint: 8.28.0

TypeError: Cannot use 'in' operator to search for 'body' in undefined
Occurred while linting /home/myproject/pages/api/component/[id]/duplicate/index.test.ts:7
Rule: "vitest/no-conditional-tests"
    at checkConditionalTest (/home/myproject/node_modules/.pnpm/[email protected]_hsf322ms6xhhd4b5ne6lb74y4a/node_modules/eslint-plugin-vitest/dist/index.cjs:257:20)
    at CallExpression[callee.name=/^(it|test)$/] (/home/myproject/node_modules/.pnpm/[email protected]_hsf322ms6xhhd4b5ne6lb74y4a/node_modules/eslint-plugin-vitest/dist/index.cjs:281:9)
    at ruleErrorHandler (/home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/home/myproject/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)

Results of weekly scheduled smoke test

Detected 29410 ESLint reports and/or crashes.
Scanned 7046 repositories.

Reached maximum result count 50.
Showing 50/29410

Rules:

  • vitest/expect-expect
  • vitest/no-conditional-tests
  • vitest/lower-case-title
Click to expand

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/StreakYC/react-smooth-collapse/src/getTransitionTimeMs.test.js:8 Rule: "vitest/expect-expect"
  • Path: StreakYC/react-smooth-collapse/src/getTransitionTimeMs.test.js
  • Link
   6 |
   7 | describe('getTransitionTimeMs', function() {
>  8 |   it('works with milliseconds', function() {
   9 |     assert.strictEqual(getTransitionTimeMs('250ms ease'), 250);
  10 |   });
  11 |
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/StreakYC/react-smooth-collapse/src/getTransitionTimeMs.test.js:8
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/accordion/__tests__/accordion-axe.test.tsx:18 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/accordion/__tests__/accordion-axe.test.tsx
  • Link
  16 |
  17 | describe("<Accordion /> with axe", () => {
> 18 | 	it("Should not have ARIA violations", async () => {
  19 | 		vi.useRealTimers();
  20 | 		let { getByText, container } = render(
  21 | 			<Accordion data-testid="wrapper">
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/accordion/__tests__/accordion-axe.test.tsx:18
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/accordion/__tests__/accordion.test.tsx:151 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/accordion/__tests__/accordion.test.tsx
  • Link
  149 | 			});
  150 |
> 151 | 			it("`hidden` is not present for the active panel element", () => {
  152 | 				expect(panels[0]).not.toHaveAttribute("hidden");
  153 | 			});
  154 |
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/accordion/__tests__/accordion.test.tsx:151
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/alert/__tests__/alert-axe.test.tsx:18 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/alert/__tests__/alert-axe.test.tsx
  • Link
  16 |
  17 | describe("<Alert /> with axe", () => {
> 18 | 	it("Should not have ARIA violations", async () => {
  19 | 		vi.useRealTimers();
  20 | 		let { container, getByTestId } = render(<AlertApp />);
  21 | 		let results: AxeCore.AxeResults = null as any;
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/alert/__tests__/alert-axe.test.tsx:18
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/alert-dialog/__tests__/alert-dialog-axe.test.tsx:18 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/alert-dialog/__tests__/alert-dialog-axe.test.tsx
  • Link
  16 |
  17 | describe("<AlertDialog /> with axe", () => {
> 18 | 	it("Should not have ARIA violations", async () => {
  19 | 		vi.useRealTimers();
  20 | 		let { container, getByText, getByTestId } = render(<BasicAlertDialog />);
  21 | 		let results: AxeCore.AxeResults = null as any;
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/alert-dialog/__tests__/alert-dialog-axe.test.tsx:18
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/auto-id/__tests__/auto-id-axe.test.tsx:16 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/auto-id/__tests__/auto-id-axe.test.tsx
  • Link
  14 |
  15 | describe("useId with axe", () => {
> 16 | 	it("should provide a valid ID for a11y", async () => {
  17 | 		vi.useRealTimers();
  18 | 		let { container } = render(<TestInput />);
  19 | 		let results = await axe(container);
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/auto-id/__tests__/auto-id-axe.test.tsx:16
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'object' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/auto-id/__tests__/auto-id.test.tsx:15 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/auto-id/__tests__/auto-id.test.tsx
  • Link
  13 |
  14 | describe("useId", () => {
> 15 | 	it("should generate a unique ID value", () => {
  16 | 		function Comp() {
  17 | 			let justNull = null;
  18 | 			let randId = useId(justNull);
TypeError: Cannot read property 'object' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/auto-id/__tests__/auto-id.test.tsx:15
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:55
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/checkbox/__tests__/checkbox-axe.test.tsx:22 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/checkbox/__tests__/checkbox-axe.test.tsx
  • Link
  20 |
  21 | describe("<MixedCheckbox />", () => {
> 22 | 	it("Should not have ARIA violations after render", async () => {
  23 | 		vi.useRealTimers();
  24 | 		let { container } = render(<BasicMixedCheckbox />);
  25 | 		let results: AxeCore.AxeResults = null as any;
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/checkbox/__tests__/checkbox-axe.test.tsx:22
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/combobox/__tests__/combobox-axe.test.tsx:23 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/combobox/__tests__/combobox-axe.test.tsx
  • Link
  21 |
  22 | describe("<Combobox /> with axe", () => {
> 23 | 	it("Should not have ARIA violations", async () => {
  24 | 		vi.useRealTimers();
  25 | 		let { container } = render(<BasicCombobox />);
  26 | 		let results: AxeCore.AxeResults = null as any;
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/combobox/__tests__/combobox-axe.test.tsx:23
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/dialog/__tests__/dialog-axe.test.tsx:14 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/dialog/__tests__/dialog-axe.test.tsx
  • Link
  12 |
  13 | describe("<Dialog /> with axe", () => {
> 14 | 	it("Should not have ARIA violations", async () => {
  15 | 		vi.useRealTimers();
  16 | 		const { container } = render(<BasicOpenDialog />);
  17 | 		let results: AxeCore.AxeResults = null as any;
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/dialog/__tests__/dialog-axe.test.tsx:14
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/disclosure/__tests__/disclosure-axe.test.tsx:17 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/disclosure/__tests__/disclosure-axe.test.tsx
  • Link
  15 |
  16 | describe("<Disclosure /> with axe", () => {
> 17 | 	it("Should not have ARIA violations", async () => {
  18 | 		vi.useRealTimers();
  19 | 		let { getByRole, container } = render(
  20 | 			<Disclosure>
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/disclosure/__tests__/disclosure-axe.test.tsx:17
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/listbox/__tests__/listbox-axe.test.tsx:16 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/listbox/__tests__/listbox-axe.test.tsx
  • Link
  14 |
  15 | describe("<Listbox /> with axe", () => {
> 16 | 	it("Should not have ARIA violations", async () => {
  17 | 		vi.useRealTimers();
  18 | 		let { container } = render(<FancyListbox />);
  19 | 		let results: AxeCore.AxeResults = null as any;
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/listbox/__tests__/listbox-axe.test.tsx:16
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'callee' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/listbox/__tests__/listbox.test.tsx:44 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/listbox/__tests__/listbox.test.tsx
  • Link
  42 | 		});
  43 |
> 44 | 		it("should mount the composed component", () => {
  45 | 			act(() => {
  46 | 				let { queryByRole } = render(
  47 | 					<ListboxInput>
TypeError: Cannot read property 'callee' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/listbox/__tests__/listbox.test.tsx:44
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:62
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/menu-button/__tests__/menu-button-axe.test.tsx:25 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/menu-button/__tests__/menu-button-axe.test.tsx
  • Link
  23 | describe("<MenuButton /> with axe", () => {
  24 | 	describe("with <MenuItem />", () => {
> 25 | 		it("Should not have ARIA violations", async () => {
  26 | 			vi.useRealTimers();
  27 | 			let { container, list, button } = renderTestMenu();
  28 |
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/menu-button/__tests__/menu-button-axe.test.tsx:25
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/menu-button/__tests__/menu-button.test.tsx:75 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/menu-button/__tests__/menu-button.test.tsx
  • Link
  73 | 				});
  74 |
> 75 | 				it("`aria-activedescendant` for list element is not present", () => {
  76 | 					expect(rendered.list).not.toHaveAttribute("aria-activedescendant");
  77 | 				});
  78 |
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/menu-button/__tests__/menu-button.test.tsx:75
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/skip-nav/__tests__/skip-nav-axe.test.tsx:14 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/skip-nav/__tests__/skip-nav-axe.test.tsx
  • Link
  12 | describe("<SkipNavLink />", () => {
  13 | 	describe("a11y", () => {
> 14 | 		it("Should not have ARIA violations", async () => {
  15 | 			vi.useRealTimers();
  16 | 			let { container } = render(<Layout />);
  17 | 			expect(await axe(container)).toHaveNoViolations();
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/skip-nav/__tests__/skip-nav-axe.test.tsx:14
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/slider/__tests__/slider-axe.test.tsx:14 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/slider/__tests__/slider-axe.test.tsx
  • Link
  12 | describe("<Slider /> with axe", () => {
  13 | 	describe("a11y", () => {
> 14 | 		it("Should not have ARIA violations", async () => {
  15 | 			vi.useRealTimers();
  16 | 			const { container } = render(<Slider aria-label="basic slider" />);
  17 | 			const results = await axe(container);
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/slider/__tests__/slider-axe.test.tsx:14
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/tabs/__tests__/tabs-axe.test.tsx:15 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/tabs/__tests__/tabs-axe.test.tsx
  • Link
  13 |
  14 | describe("<Tabs /> with axe", () => {
> 15 | 	it("Should not have ARIA violations", async () => {
  16 | 		vi.useRealTimers();
  17 | 		const { container } = render(
  18 | 			<div>
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/tabs/__tests__/tabs-axe.test.tsx:15
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/tooltip/__tests__/tooltip.test.tsx:19 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/tooltip/__tests__/tooltip.test.tsx
  • Link
  17 | describe("<Tooltip />", () => {
  18 | 	describe("rendering", () => {
> 19 | 		it("renders as any HTML element", () => {
  20 | 			vi.useFakeTimers();
  21 |
  22 | 			let tooltipText = "Look at me";
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/tooltip/__tests__/tooltip.test.tsx:19
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/visually-hidden/__tests__/visually-hidden-axe.test.tsx:13 Rule: "vitest/expect-expect"
  • Path: reach/reach-ui/packages/visually-hidden/__tests__/visually-hidden-axe.test.tsx
  • Link
  11 |
  12 | describe("<VisuallyHidden /> with axe", () => {
> 13 | 	it("Should not have ARIA violations", async () => {
  14 | 		vi.useRealTimers();
  15 | 		const { container } = render(
  16 | 			<button onClick={() => void null}>
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reach/reach-ui/packages/visually-hidden/__tests__/visually-hidden-axe.test.tsx:13
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'object' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/CarouselSpec.tsx:166 Rule: "vitest/expect-expect"
  • Path: react-bootstrap/react-bootstrap/test/CarouselSpec.tsx
  • Link
  164 |
  165 |   ['onSlide', 'onSlid'].forEach((eventName) => {
> 166 |     it(`should call ${eventName} with previous index and direction`, (done) => {
  167 |       function onEvent(index, direction) {
  168 |         index.should.equal(0);
  169 |         direction.should.equal('end');
TypeError: Cannot read property 'object' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/CarouselSpec.tsx:166
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:55
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'callee' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/CollapseSpec.tsx:35 Rule: "vitest/expect-expect"
  • Path: react-bootstrap/react-bootstrap/test/CollapseSpec.tsx
  • Link
  33 |   }
  34 |
> 35 |   it('should not throw an error with StrictMode', () => {
  36 |     render(
  37 |       <React.StrictMode>
  38 |         <Component in>Panel content</Component>
TypeError: Cannot read property 'callee' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/CollapseSpec.tsx:35
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:62
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'name' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/DropdownMenuSpec.tsx:110 Rule: "vitest/expect-expect"
  • Path: react-bootstrap/react-bootstrap/test/DropdownMenuSpec.tsx
  • Link
  108 |
  109 |   describe('getDropdownMenuPlacement', () => {
> 110 |     it('should return top placement', () => {
  111 |       getDropdownMenuPlacement(false, 'up', false).should.equal('top-start');
  112 |       getDropdownMenuPlacement(true, 'up', false).should.equal('top-end');
  113 |       getDropdownMenuPlacement(true, 'up-centered', false).should.equal('top');
TypeError: Cannot read property 'name' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/DropdownMenuSpec.tsx:110
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:69
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'callee' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/FadeSpec.tsx:33 Rule: "vitest/expect-expect"
  • Path: react-bootstrap/react-bootstrap/test/FadeSpec.tsx
  • Link
  31 |   }
  32 |
> 33 |   it('should not throw an error with StrictMode', () => {
  34 |     render(
  35 |       <React.StrictMode>
  36 |         <Component in>Panel content</Component>
TypeError: Cannot read property 'callee' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/FadeSpec.tsx:33
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:62
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'callee' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/FormControlSpec.tsx:67 Rule: "vitest/expect-expect"
  • Path: react-bootstrap/react-bootstrap/test/FormControlSpec.tsx
  • Link
  65 |   });
  66 |
> 67 |   it('should prefer explicit id', () => {
  68 |     shouldWarn('ignored');
  69 |
  70 |     const { getByTestId } = render(
TypeError: Cannot read property 'callee' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/FormControlSpec.tsx:67
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:62
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'callee' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/FormLabelSpec.tsx:80 Rule: "vitest/expect-expect"
  • Path: react-bootstrap/react-bootstrap/test/FormLabelSpec.tsx
  • Link
  78 |   });
  79 |
> 80 |   it('should prefer explicit htmlFor', () => {
  81 |     shouldWarn('ignored');
  82 |
  83 |     const { getByTestId } = render(
TypeError: Cannot read property 'callee' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/FormLabelSpec.tsx:80
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:62
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'callee' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/ListGroupItemSpec.tsx:93 Rule: "vitest/expect-expect"
  • Path: react-bootstrap/react-bootstrap/test/ListGroupItemSpec.tsx
  • Link
  91 |       expect(item.getAttribute('href')).to.be.equal('/foo');
  92 |     });
> 93 |     it('renders a div and show warning', () => {
  94 |       shouldWarn('together');
  95 |       const { getByTestId } = render(
  96 |         <ListGroupItem action={false} href="/foo" data-testid="test" />,
TypeError: Cannot read property 'callee' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/ListGroupItemSpec.tsx:93
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:62
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'callee' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/ListGroupSpec.tsx:56 Rule: "vitest/expect-expect"
  • Path: react-bootstrap/react-bootstrap/test/ListGroupSpec.tsx
  • Link
  54 |   });
  55 |
> 56 |   it('throws a warning if flush and horizontal are used', () => {
  57 |     shouldWarn('together');
  58 |     render(<ListGroup horizontal variant="flush" />);
  59 |   });
TypeError: Cannot read property 'callee' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/ListGroupSpec.tsx:56
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:62
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'callee' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/ModalSpec.tsx:143 Rule: "vitest/expect-expect"
  • Path: react-bootstrap/react-bootstrap/test/ModalSpec.tsx
  • Link
  141 |   });
  142 |
> 143 |   it('Should use backdropClassName to add classes to the backdrop', () => {
  144 |     render(
  145 |       <Modal show backdropClassName="my-modal-backdrop">
  146 |         <strong>Message</strong>
TypeError: Cannot read property 'callee' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/ModalSpec.tsx:143
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:62
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'callee' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/NavDropdownSpec.tsx:83 Rule: "vitest/expect-expect"
  • Path: react-bootstrap/react-bootstrap/test/NavDropdownSpec.tsx
  • Link
  81 |   });
  82 |
> 83 |   it('passes menuVariant to dropdown menu', () => {
  84 |     render(
  85 |       <NavDropdown renderMenuOnMount title="blah" menuVariant="dark" id="test">
  86 |         <DropdownItem>Item 1</DropdownItem>
TypeError: Cannot read property 'callee' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/NavDropdownSpec.tsx:83
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:62
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: Cannot read property 'callee' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/NavSpec.tsx:153 Rule: "vitest/expect-expect"
  • Path: react-bootstrap/react-bootstrap/test/NavSpec.tsx
  • Link
  151 |   });
  152 |
> 153 |   it('should warn when attempting to use a justify navbar nav', () => {
  154 |     shouldWarn('justify navbar `Nav`s are not supported');
  155 |
  156 |     render(<Nav navbar justify />);
TypeError: Cannot read property 'callee' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/react-bootstrap/react-bootstrap/test/NavSpec.tsx:153
Rule: "vitest/expect-expect"
    at /github/workspace/dist/index.cjs:309:62
    at Array.some (<anonymous>)
    at CallExpression[callee.name=/^(it|test)$/] (/github/workspace/dist/index.cjs:307:32)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: vitest/expect-expect

  • Message: `Cannot read property 'callee' of undefined Occurred while linting

Results of weekly scheduled smoke test

Detected 2 ESLint reports and/or crashes.
Scanned 7005 repositories.

Rules:

  • vitest/prefer-lowercase-title
Click to expand

Rule: vitest/prefer-lowercase-title

  • Message: Cannot read property 'type' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/fakeNetflix/facebook-repo-jest/e2e/test-todo/__tests__/todoNoArgs.test.js:8 Rule: "vitest/prefer-lowercase-title"
  • Path: fakeNetflix/facebook-repo-jest/e2e/test-todo/__tests__/todoNoArgs.test.js
  • Link
  6 |  */
  7 |
> 8 | it.todo();
  9 |
TypeError: Cannot read property 'type' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/fakeNetflix/facebook-repo-jest/e2e/test-todo/__tests__/todoNoArgs.test.js:8
Rule: "vitest/prefer-lowercase-title"
    at getStringValue (/github/workspace/dist/index.cjs:48:39)
    at CallExpression (/github/workspace/dist/index.cjs:476:29)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)

Rule: vitest/prefer-lowercase-title

  • Message: Cannot read property 'type' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/fakeNetflix/facebook-repo-jest/packages/jest-jasmine2/src/__tests__/todoError.test.ts:13 Rule: "vitest/prefer-lowercase-title"
  • Path: fakeNetflix/facebook-repo-jest/packages/jest-jasmine2/src/__tests__/todoError.test.ts
  • Link
  11 |     expect(() => {
  12 |       // @ts-ignore
> 13 |       it.todo();
  14 |     }).toThrowError('Todo must be called with only a description.');
  15 |   });
  16 |   it('it throws error when given more than one argument', () => {
TypeError: Cannot read property 'type' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/fakeNetflix/facebook-repo-jest/packages/jest-jasmine2/src/__tests__/todoError.test.ts:13
Rule: "vitest/prefer-lowercase-title"
    at getStringValue (/github/workspace/dist/index.cjs:48:39)
    at CallExpression (/github/workspace/dist/index.cjs:476:29)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)

vitest/expect-expect not working in some cases

issue example:

describe('title', () => {
  it('test is not ok', () => {
    [1, 2, 3, 4, 5, 6].forEach((n) => {
      expect(n).toBe(1);
    });
  });
});

gives an error:
Use 'expect' in test body eslint[vitest/expect-expect

vitest/no-conditional-tests - false positive

Hi
I'm using the vitest/no-conditional-tests rule, but it alerts all my tests.
Here is an example:

function myFunc(str: string) {
  return str;
}

describe("myTest", () => {
  it("convert shortened equal filter", () => {
    expect(
      myFunc("5")
    ).toEqual("5");
  });
});

I expect this to be ok.
Thanks!

Cannot read property 'name' of undefined

I am getting an error that crashes eslint when the plugin tries to parse the following statement.

    it('should update all file aggregations then all scans', () => {
      fileAggregationRepositoryMock.verify((x) => x.updateAllFileAggregations())
    })

This is the code block in question that causes the issue:

image

in the expect-expect rule

vitest/no-conditional-tests - false positive

Hi
I'm using the vitest/no-conditional-tests rule, but it alerts all my tests.
Here is an example:

function myFunc(str: string) {
  return str;
}

describe("myTest", () => {
  it("convert shortened equal filter", () => {
    expect(
      myFunc("5")
    ).toEqual("5");
  });
});

I expect this to be ok.
Thanks!

Results of weekly scheduled smoke test

Detected 12 ESLint reports and/or crashes.
Scanned 7019 repositories.

Rules:

  • vitest/no-identical-title
  • vitest/prefer-lowercase-title
Click to expand

Rule: vitest/no-identical-title

  • Message: Cannot read property 'describeTitles' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/codesandbox/codesandbox-client/packages/app/src/sandbox/eval/tests/jest-lite.test.js:238 Rule: "vitest/no-identical-title"
  • Path: codesandbox/codesandbox-client/packages/app/src/sandbox/eval/tests/jest-lite.test.js
  • Link
  236 |
  237 |   // deprecated
> 238 |   xdescribe('reportResults', () => {
  239 |     let testRunner;
  240 |
  241 |     beforeEach(() => {
TypeError: Cannot read property 'describeTitles' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/codesandbox/codesandbox-client/packages/app/src/sandbox/eval/tests/jest-lite.test.js:238
Rule: "vitest/no-identical-title"
    at CallExpression (/github/workspace/dist/index.cjs:616:26)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1153:32

Rule: vitest/no-identical-title

  • Message: Cannot read property 'describeTitles' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/palantir/blueprint/packages/table/test/table2Tests.tsx:1610 Rule: "vitest/no-identical-title"
  • Path: palantir/blueprint/packages/table/test/table2Tests.tsx
  • Link
  1608 |     // HACKHACK: these tests were not running their assertions correctly for a while, and when that
  1609 |     // was fixed, the tests broke. Skipping for now so that the rest of the suite can run without error.
> 1610 |     xdescribe("Autoscrolling when rows/columns decrease in count or size", () => {
  1611 |         const COL_WIDTH = 400;
  1612 |         const ROW_HEIGHT = 60;
  1613 |
TypeError: Cannot read property 'describeTitles' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/palantir/blueprint/packages/table/test/table2Tests.tsx:1610
Rule: "vitest/no-identical-title"
    at CallExpression (/github/workspace/dist/index.cjs:616:26)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1153:32

Rule: vitest/no-identical-title

  • Message: Cannot read property 'describeTitles' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/palantir/blueprint/packages/table/test/tableTests.tsx:1556 Rule: "vitest/no-identical-title"
  • Path: palantir/blueprint/packages/table/test/tableTests.tsx
  • Link
  1554 |     // HACKHACK: these tests were not running their assertions correctly for a while, and when that
  1555 |     // was fixed, the tests broke. Skipping for now so that the rest of the suite can run without error.
> 1556 |     xdescribe("Autoscrolling when rows/columns decrease in count or size", () => {
  1557 |         const COL_WIDTH = 400;
  1558 |         const ROW_HEIGHT = 60;
  1559 |
TypeError: Cannot read property 'describeTitles' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/palantir/blueprint/packages/table/test/tableTests.tsx:1556
Rule: "vitest/no-identical-title"
    at CallExpression (/github/workspace/dist/index.cjs:616:26)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1153:32

Rule: vitest/no-identical-title

  • Message: Cannot read property 'describeTitles' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/smooth-code/xstyled/packages/system/tests/common/breakpoints.tsx:38 Rule: "vitest/no-identical-title"
  • Path: smooth-code/xstyled/packages/system/tests/common/breakpoints.tsx
  • Link
  36 |
  37 |   // Currently not testable with toHaveStyle
> 38 |   xdescribe('#up', () => {
  39 |     it('should work with `css`', () => {
  40 |       const Dummy = styled.div`
  41 |         ${up(
TypeError: Cannot read property 'describeTitles' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/smooth-code/xstyled/packages/system/tests/common/breakpoints.tsx:38
Rule: "vitest/no-identical-title"
    at CallExpression (/github/workspace/dist/index.cjs:616:26)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1153:32

Rule: vitest/no-identical-title

  • Message: Cannot read property 'describeTitles' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/justindujardin/rns-redux/test/components.spec.tsx:111 Rule: "vitest/no-identical-title"
  • Path: justindujardin/rns-redux/test/components.spec.tsx
  • Link
  109 | // describe('NotifyProvider', () => {})
  110 | // describe('NotifyContainer', () => {})
> 111 | xdescribe('NotifyItem', () => {
  112 |   xit('should remove a notification after autoDismiss', () => {
  113 |     const { root } = renderNotifications([getNote({ uid: defaultId, autoDismiss: 2 })])
  114 |     act(() => {
TypeError: Cannot read property 'describeTitles' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/justindujardin/rns-redux/test/components.spec.tsx:111
Rule: "vitest/no-identical-title"
    at CallExpression (/github/workspace/dist/index.cjs:616:26)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1153:32

Rule: vitest/no-identical-title

  • Message: Cannot read property 'describeTitles' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/SAP/spartacus/projects/storefrontapp-e2e-cypress/cypress/integration/accessibility/aux-key.e2e-spec.ts:150 Rule: "vitest/no-identical-title"
  • Path: SAP/spartacus/projects/storefrontapp-e2e-cypress/cypress/integration/accessibility/aux-key.e2e-spec.ts
  • Link
  148 |   });
  149 |
> 150 |   describe('Skip Links', () => {
  151 |     before(() => {
  152 |       loadPageWithComponenents('/');
  153 |       cy.get('body').focus();
TypeError: Cannot read property 'describeTitles' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/SAP/spartacus/projects/storefrontapp-e2e-cypress/cypress/integration/accessibility/aux-key.e2e-spec.ts:150
Rule: "vitest/no-identical-title"
    at CallExpression (/github/workspace/dist/index.cjs:616:26)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1153:32

Rule: vitest/no-identical-title

  • Message: Cannot read property 'describeTitles' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/SAP/spartacus/projects/storefrontapp-e2e-cypress/cypress/integration/regression/cart/cart-import-export.e2e-spec.ts:224 Rule: "vitest/no-identical-title"
  • Path: SAP/spartacus/projects/storefrontapp-e2e-cypress/cypress/integration/regression/cart/cart-import-export.e2e-spec.ts
  • Link
  222 |     });
  223 |
> 224 |     describe('Malformed CSVs', () => {
  225 |       it('should NOT import empty csv file', () => {
  226 |         const CSV = 'empty.csv';
  227 |         cy.writeFile(`cypress/downloads/${CSV}`, '');
TypeError: Cannot read property 'describeTitles' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/SAP/spartacus/projects/storefrontapp-e2e-cypress/cypress/integration/regression/cart/cart-import-export.e2e-spec.ts:224
Rule: "vitest/no-identical-title"
    at CallExpression (/github/workspace/dist/index.cjs:616:26)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1153:32

Rule: vitest/no-identical-title

  • Message: Cannot read property 'describeTitles' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reapit/foundations/packages/utils-react/src/searchable-multi-select/__tests__/index.test.tsx:43 Rule: "vitest/no-identical-title"
  • Path: reapit/foundations/packages/utils-react/src/searchable-multi-select/__tests__/index.test.tsx
  • Link
  41 | })
  42 |
> 43 | describe('handleSetNewOptions', () => {
  44 |   it('should handle setting new options', () => {
  45 |     const currentValues = ['MOCK_ID']
  46 |     const options = [{ value: 'MOCK_ID', name: 'MOCK_NAME' }]
TypeError: Cannot read property 'describeTitles' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/reapit/foundations/packages/utils-react/src/searchable-multi-select/__tests__/index.test.tsx:43
Rule: "vitest/no-identical-title"
    at CallExpression (/github/workspace/dist/index.cjs:616:26)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1153:32

Rule: vitest/no-identical-title

  • Message: Cannot read property 'describeTitles' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/yatsu/fixture-injection/packages/jest-fixture-injection-tests/global-api/jsdom/fdescribe.test.ts:21 Rule: "vitest/no-identical-title"
  • Path: yatsu/fixture-injection/packages/jest-fixture-injection-tests/global-api/jsdom/fdescribe.test.ts
  • Link
  19 | })
  20 |
> 21 | describe('skip', () => {
  22 |   test('skip', () => {
  23 |     expect(true).toBe(false)
  24 |   })
TypeError: Cannot read property 'describeTitles' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/yatsu/fixture-injection/packages/jest-fixture-injection-tests/global-api/jsdom/fdescribe.test.ts:21
Rule: "vitest/no-identical-title"
    at CallExpression (/github/workspace/dist/index.cjs:616:26)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1153:32

Rule: vitest/no-identical-title

  • Message: Cannot read property 'describeTitles' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/yatsu/fixture-injection/packages/jest-fixture-injection-tests/global-api/node/fdescribe.test.ts:21 Rule: "vitest/no-identical-title"
  • Path: yatsu/fixture-injection/packages/jest-fixture-injection-tests/global-api/node/fdescribe.test.ts
  • Link
  19 | })
  20 |
> 21 | describe('skip', () => {
  22 |   test('skip', () => {
  23 |     expect(true).toBe(false)
  24 |   })
TypeError: Cannot read property 'describeTitles' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/yatsu/fixture-injection/packages/jest-fixture-injection-tests/global-api/node/fdescribe.test.ts:21
Rule: "vitest/no-identical-title"
    at CallExpression (/github/workspace/dist/index.cjs:616:26)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1153:32

Rule: vitest/prefer-lowercase-title

  • Message: Cannot read property 'type' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/fakeNetflix/facebook-repo-jest/e2e/test-todo/__tests__/todoNoArgs.test.js:8 Rule: "vitest/prefer-lowercase-title"
  • Path: fakeNetflix/facebook-repo-jest/e2e/test-todo/__tests__/todoNoArgs.test.js
  • Link
  6 |  */
  7 |
> 8 | it.todo();
  9 |
TypeError: Cannot read property 'type' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/fakeNetflix/facebook-repo-jest/e2e/test-todo/__tests__/todoNoArgs.test.js:8
Rule: "vitest/prefer-lowercase-title"
    at getStringValue (/github/workspace/dist/index.cjs:47:39)
    at CallExpression (/github/workspace/dist/index.cjs:475:29)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)

Rule: vitest/prefer-lowercase-title

  • Message: Cannot read property 'type' of undefined Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/fakeNetflix/facebook-repo-jest/packages/jest-jasmine2/src/__tests__/todoError.test.ts:13 Rule: "vitest/prefer-lowercase-title"
  • Path: fakeNetflix/facebook-repo-jest/packages/jest-jasmine2/src/__tests__/todoError.test.ts
  • Link
  11 |     expect(() => {
  12 |       // @ts-ignore
> 13 |       it.todo();
  14 |     }).toThrowError('Todo must be called with only a description.');
  15 |   });
  16 |   it('it throws error when given more than one argument', () => {
TypeError: Cannot read property 'type' of undefined
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/fakeNetflix/facebook-repo-jest/packages/jest-jasmine2/src/__tests__/todoError.test.ts:13
Rule: "vitest/prefer-lowercase-title"
    at getStringValue (/github/workspace/dist/index.cjs:47:39)
    at CallExpression (/github/workspace/dist/index.cjs:475:29)
    at ruleErrorHandler (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1118:28)
    at /github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at CodePathAnalyzer.enterNode (/github/workspace/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.