veritem / eslint-plugin-vitest Goto Github PK
View Code? Open in Web Editor NEWeslint plugin for vitest
License: MIT License
eslint plugin for vitest
License: MIT License
It'd be nice to have at least a .md
docs file describing each rule. It's easier to read rule docs that way.
https://github.com/bmish/eslint-doc-generator exists and is great for setting up eslint plugin repo scaffolding. Would you accept a PR that adds it in here? π
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
Add auto-fix for lower-case-title, which just replaces the title by its lowercased version. Maybe consider replacing pascal casing by spaces, e.g. userAuth
-> user auth
.
I think the rule is also way to strong, since it inspects the whole title but its jest equivalent https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-lowercase-title.md only cares about the first character of the title.
β Fail
it("test", () => {
expect(1).toMatchSnapshot()
})
β Pass
it("test", ({ expect }) => {
expect(1).toMatchSnapshot()
})
helped fix Error: Snapshot cannot be used outside of test
error vitest-dev/vitest#2729 (comment)
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.
Vite suggests importing the api instead of relying on globals.
This needs to be implemented properly below, or some rules such as expect-expect
aren't working if api is imported from vitest.
A lot of ESLint plugins provide a 'recommended' ruleset so folks don't have to manually enable most of their rules. Would you accept a PR for one here?
A couple examples:
When vitest/lower-case-title
is enabled, the autofixer adds a bunch of spaces between letters. Please fix?
@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)
it('some test ', () => {
const value1 = 1;
const value2 = 2;
expect(value1 === 1 && value2 === 2).toBeTruthy();
});
error:
Avoid using conditionals in a test
Hello,
We have recently implemented vite & vitest in our projet
I have noticed that the rule vitest/prefer-to-be
wants us to use toBe
with floating point numbers, even though it is not recommended by the vitest api doc itself.
For example hereβ―: OpenRailAssociation/osrd#3328 (comment)
I think the rule should allow to use toEqual
with floating point numbers.
expect
expect inside a testtest
or it
, but not bothtoBeCalled
or toHaveBeenCalled
(and so on)await expect().resolves.toBe
/await expect().rejects.toBe
instead of expect(await ...).toBe
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).
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.
It seems as the vitest/no-skipped-test
doesnt work if you use test
instead of it
in your test files
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)
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
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"
StreakYC/react-smooth-collapse/src/getTransitionTimeMs.test.js
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)
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"
reach/reach-ui/packages/accordion/__tests__/accordion-axe.test.tsx
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)
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"
reach/reach-ui/packages/accordion/__tests__/accordion.test.tsx
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)
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"
reach/reach-ui/packages/alert/__tests__/alert-axe.test.tsx
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)
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"
reach/reach-ui/packages/alert-dialog/__tests__/alert-dialog-axe.test.tsx
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)
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"
reach/reach-ui/packages/auto-id/__tests__/auto-id-axe.test.tsx
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)
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"
reach/reach-ui/packages/auto-id/__tests__/auto-id.test.tsx
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)
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"
reach/reach-ui/packages/checkbox/__tests__/checkbox-axe.test.tsx
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)
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"
reach/reach-ui/packages/combobox/__tests__/combobox-axe.test.tsx
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)
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"
reach/reach-ui/packages/dialog/__tests__/dialog-axe.test.tsx
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)
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"
reach/reach-ui/packages/disclosure/__tests__/disclosure-axe.test.tsx
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)
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"
reach/reach-ui/packages/listbox/__tests__/listbox-axe.test.tsx
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)
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"
reach/reach-ui/packages/listbox/__tests__/listbox.test.tsx
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)
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"
reach/reach-ui/packages/menu-button/__tests__/menu-button-axe.test.tsx
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)
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"
reach/reach-ui/packages/menu-button/__tests__/menu-button.test.tsx
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)
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"
reach/reach-ui/packages/skip-nav/__tests__/skip-nav-axe.test.tsx
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)
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"
reach/reach-ui/packages/slider/__tests__/slider-axe.test.tsx
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)
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"
reach/reach-ui/packages/tabs/__tests__/tabs-axe.test.tsx
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)
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"
reach/reach-ui/packages/tooltip/__tests__/tooltip.test.tsx
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)
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"
reach/reach-ui/packages/visually-hidden/__tests__/visually-hidden-axe.test.tsx
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)
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"
react-bootstrap/react-bootstrap/test/CarouselSpec.tsx
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)
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"
react-bootstrap/react-bootstrap/test/CollapseSpec.tsx
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)
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"
react-bootstrap/react-bootstrap/test/DropdownMenuSpec.tsx
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)
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"
react-bootstrap/react-bootstrap/test/FadeSpec.tsx
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)
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"
react-bootstrap/react-bootstrap/test/FormControlSpec.tsx
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)
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"
react-bootstrap/react-bootstrap/test/FormLabelSpec.tsx
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)
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"
react-bootstrap/react-bootstrap/test/ListGroupItemSpec.tsx
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)
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"
react-bootstrap/react-bootstrap/test/ListGroupSpec.tsx
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)
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"
react-bootstrap/react-bootstrap/test/ModalSpec.tsx
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)
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"
react-bootstrap/react-bootstrap/test/NavDropdownSpec.tsx
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)
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"
react-bootstrap/react-bootstrap/test/NavSpec.tsx
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)
Detected 2 ESLint reports and/or crashes.
Scanned 7005 repositories.
Rules:
vitest/prefer-lowercase-title
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"
fakeNetflix/facebook-repo-jest/e2e/test-todo/__tests__/todoNoArgs.test.js
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)
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"
fakeNetflix/facebook-repo-jest/packages/jest-jasmine2/src/__tests__/todoError.test.ts
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)
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
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!
As the title states, is there a difference between no-skipped-tests
and no-disabled-tests
?
If yes, it should be documented more clearly (I'm willing to help with that).
If not, should one be deprecated in favor of the other?
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:
in the expect-expect
rule
rule to perfer *.spec.*
or *.test.*
And I have time to send a Pull Request if you think it's a useful rule.
This rule doesn't seem to consider describe.skip
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!
It would be nice if this plugin also exported vitest globals so that there's no need to install two different plugins for vitest, e.g. eslint-plugin-vitest-globals
.
I'll try to submit a PR for this if / when I have time.
Detected 12 ESLint reports and/or crashes.
Scanned 7019 repositories.
Rules:
vitest/no-identical-title
vitest/prefer-lowercase-title
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"
codesandbox/codesandbox-client/packages/app/src/sandbox/eval/tests/jest-lite.test.js
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
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"
palantir/blueprint/packages/table/test/table2Tests.tsx
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
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"
palantir/blueprint/packages/table/test/tableTests.tsx
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
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"
smooth-code/xstyled/packages/system/tests/common/breakpoints.tsx
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
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"
justindujardin/rns-redux/test/components.spec.tsx
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
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"
SAP/spartacus/projects/storefrontapp-e2e-cypress/cypress/integration/accessibility/aux-key.e2e-spec.ts
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
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"
SAP/spartacus/projects/storefrontapp-e2e-cypress/cypress/integration/regression/cart/cart-import-export.e2e-spec.ts
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
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"
reapit/foundations/packages/utils-react/src/searchable-multi-select/__tests__/index.test.tsx
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
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"
yatsu/fixture-injection/packages/jest-fixture-injection-tests/global-api/jsdom/fdescribe.test.ts
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
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"
yatsu/fixture-injection/packages/jest-fixture-injection-tests/global-api/node/fdescribe.test.ts
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
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"
fakeNetflix/facebook-repo-jest/e2e/test-todo/__tests__/todoNoArgs.test.js
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)
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"
fakeNetflix/facebook-repo-jest/packages/jest-jasmine2/src/__tests__/todoError.test.ts
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.