oxc/crates/oxc_linter/src/snapshots/vitest_prefer_each.snap
camc314 bd0693bcd0 feat(linter): allow lint rules with the same name (#7496)
Apologies @Boshen for the stupidly large diff.

I've done the following:

 - `RuleEnum`'s members are now prefixed with the plugin name. e.g. `NoDebugger` has become `EslintNoDebugger`
- updated tester.rs to accept the rule's NAME, CATEGORY to allow us to test rules with the same name (diff category)
- updates `declare_all_lint_rules` satisfy the first above change.
2024-11-27 04:25:05 +00:00

121 lines
6.3 KiB
Text

---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:1:3]
1 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
2 │ it(`results in ${expected}`, () => {
╰────
help: Prefer using `it.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:1:2]
1 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
2 │ describe(`when the input is ${input}`, () => {
╰────
help: Prefer using `describe.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:1:1]
1 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
2 │ describe(`when the input is ${input}`, () => {
╰────
help: Prefer using `describe.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:9:11]
8 │
9 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
10 │ it.skip(`results in ${expected}`, () => {
╰────
help: Prefer using `it.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:1:1]
1 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
2 │ it.skip(`results in ${expected}`, () => {
╰────
help: Prefer using `it.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:5:11]
4 │
5 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
6 │ it.skip(`results in ${expected}`, () => {
╰────
help: Prefer using `it.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:1:2]
1 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
2 │ it.skip(`results in ${expected}`, () => {
╰────
help: Prefer using `it.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:5:11]
4 │
5 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
6 │ it.skip(`results in ${expected}`, () => {
╰────
help: Prefer using `it.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:1:1]
1 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
2 │ it(`results in ${expected}`, () => {
╰────
help: Prefer using `it.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:1:1]
1 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
2 │ it(`results in ${expected}`, () => {
╰────
help: Prefer using `it.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:7:11]
6 │
7 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
8 │ it(`results in ${expected}`, () => {
╰────
help: Prefer using `it.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:1:1]
1 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
2 │ beforeEach(() => setupSomething(input));
╰────
help: Prefer using `describe.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:2:11]
1 │
2 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
3 │ it("only returns numbers that are greater than seven", function () {
╰────
help: Prefer using `it.each` rather than a manual loop.
⚠ eslint-plugin-vitest(prefer-each): Enforce using `each` rather than manual loops
╭─[prefer_each.tsx:2:11]
1 │
2 │ for (const [input, expected] of data) {
· ──────────────────────────────────────
3 │ beforeEach(() => setupSomething(input));
╰────
help: Prefer using `describe.each` rather than a manual loop.