Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions crates/oxc_linter/src/snapshots/eslint_no_global_assign.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ source: crates/oxc_linter/src/tester.rs
· ╰── Read-only global 'String' should not be modified.
╰────

⚠ eslint(no-global-assign): Read-only global 'Object' should not be modified.
╭─[no_global_assign.tsx:1:3]
1 │ ({Object = 0, String = 0} = {});
· ───┬──
· ╰── Read-only global 'Object' should not be modified.
╰────

⚠ eslint(no-global-assign): Read-only global 'String' should not be modified.
╭─[no_global_assign.tsx:1:15]
1 │ ({Object = 0, String = 0} = {});
· ───┬──
· ╰── Read-only global 'String' should not be modified.
╰────

⚠ eslint(no-global-assign): Read-only global 'Object' should not be modified.
╭─[no_global_assign.tsx:1:3]
1 │ ({Object = 0, String = 0} = {});
· ───┬──
· ╰── Read-only global 'Object' should not be modified.
╰────

⚠ eslint(no-global-assign): Read-only global 'top' should not be modified.
╭─[no_global_assign.tsx:1:1]
1 │ top = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ source: crates/oxc_linter/src/tester.rs
11 │
╰────

⚠ eslint-plugin-jest(no-confusing-set-timeout): Do not call `jest.setTimeout` multiple times
⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should be placed before any other jest methods.
╭─[no_confusing_set_timeout.tsx:10:17]
9 │ });
10 │ jest.setTimeout(800);
· ───────────────
11 │
╰────
help: Only the last call to `jest.setTimeout` will have an effect.

⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should be placed before any other jest methods.
╭─[no_confusing_set_timeout.tsx:10:17]
Expand All @@ -34,31 +33,32 @@ source: crates/oxc_linter/src/tester.rs
11 │
╰────

⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should be placed before any other jest methods.
⚠ eslint-plugin-jest(no-confusing-set-timeout): Do not call `jest.setTimeout` multiple times
╭─[no_confusing_set_timeout.tsx:10:17]
9 │ });
10 │ jest.setTimeout(800);
· ───────────────
11 │
╰────
help: Only the last call to `jest.setTimeout` will have an effect.

⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should only be called in a global scope
⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should be placed before any other jest methods.
╭─[no_confusing_set_timeout.tsx:3:21]
2 │ describe('A', () => {
3 │ jest.setTimeout(800);
· ───────────────
4 │ beforeEach(async () => { await new Promise(resolve => { setTimeout(resolve, 10000).unref(); });});
╰────

⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should be placed before any other jest methods.
⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should only be called in a global scope
╭─[no_confusing_set_timeout.tsx:3:21]
2 │ describe('A', () => {
3 │ jest.setTimeout(800);
· ───────────────
4 │ beforeEach(async () => { await new Promise(resolve => { setTimeout(resolve, 10000).unref(); });});
╰────

⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should only be called in a global scope
⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should be placed before any other jest methods.
╭─[no_confusing_set_timeout.tsx:5:25]
4 │ await new Promise((resolve) => {
5 │ jest.setTimeout(1000);
Expand All @@ -74,23 +74,23 @@ source: crates/oxc_linter/src/tester.rs
6 │ setTimeout(resolve, 10000).unref();
╰────

⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should be placed before any other jest methods.
⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should only be called in a global scope
╭─[no_confusing_set_timeout.tsx:5:25]
4 │ await new Promise((resolve) => {
5 │ jest.setTimeout(1000);
· ───────────────
6 │ setTimeout(resolve, 10000).unref();
╰────

⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should only be called in a global scope
⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should be placed before any other jest methods.
╭─[no_confusing_set_timeout.tsx:3:21]
2 │ test('test-suite', () => {
3 │ jest.setTimeout(1000);
· ───────────────
4 │ });
╰────

⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should be placed before any other jest methods.
⚠ eslint-plugin-jest(no-confusing-set-timeout): `jest.setTimeout` should only be called in a global scope
╭─[no_confusing_set_timeout.tsx:3:21]
2 │ test('test-suite', () => {
3 │ jest.setTimeout(1000);
Expand Down
12 changes: 6 additions & 6 deletions crates/oxc_linter/src/snapshots/jest_no_identical_title.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ source: crates/oxc_linter/src/tester.rs
help: Change the title of test.

⚠ eslint-plugin-jest(no-identical-title): Test title is used multiple times in the same describe block.
╭─[no_identical_title.tsx:2:21]
1 │
╭─[no_identical_title.tsx:3:20]
2 │ xtest('this', () => {});
· ──────
3 │ test('this', () => {});
· ──────
4 │
╰────
help: Change the title of test.

Expand Down Expand Up @@ -83,11 +83,11 @@ source: crates/oxc_linter/src/tester.rs
help: Change the title of describe block.

⚠ eslint-plugin-jest(no-identical-title): Describe block title is used multiple times in the same describe block.
╭─[no_identical_title.tsx:3:24]
╭─[no_identical_title.tsx:2:25]
1 │
2 │ fdescribe('foo', () => {});
· ─────
3 │ describe('foo', () => {});
· ─────
4 │
╰────
help: Change the title of describe block.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ source: crates/oxc_linter/src/tester.rs
╰────
help: Make sure there is an empty new line before the test block

⚠ eslint-plugin-jest(padding-around-test-blocks): Missing padding before test block
╭─[padding_around_test_blocks.tsx:3:1]
2 │ fit('bar', () => {});
3 │ test('baz', () => {});
· ▲
╰────
help: Make sure there is an empty new line before the test block

⚠ eslint-plugin-jest(padding-around-test-blocks): Missing padding before fit block
╭─[padding_around_test_blocks.tsx:2:1]
1 │ it('foo', () => {});
Expand All @@ -33,14 +25,13 @@ source: crates/oxc_linter/src/tester.rs
╰────
help: Make sure there is an empty new line before the fit block

⚠ eslint-plugin-jest(padding-around-test-blocks): Missing padding before xit block
╭─[padding_around_test_blocks.tsx:26:2]
25 │ .skip('skippy skip', () => {});
26 │ xit('bar foo', () => {});
· ▲
27 │
╰────
help: Make sure there is an empty new line before the xit block
⚠ eslint-plugin-jest(padding-around-test-blocks): Missing padding before test block
╭─[padding_around_test_blocks.tsx:3:1]
2 │ fit('bar', () => {});
3 │ test('baz', () => {});
· ▲
╰────
help: Make sure there is an empty new line before the test block

⚠ eslint-plugin-jest(padding-around-test-blocks): Missing padding before it block
╭─[padding_around_test_blocks.tsx:4:1]
Expand Down Expand Up @@ -69,24 +60,6 @@ source: crates/oxc_linter/src/tester.rs
╰────
help: Make sure there is an empty new line before the it block

⚠ eslint-plugin-jest(padding-around-test-blocks): Missing padding before xtest block
╭─[padding_around_test_blocks.tsx:23:5]
22 │ it.skip('skipping too', () => {});
23 │ });xtest('weird', () => {});
· ▲
24 │ test
╰────
help: Make sure there is an empty new line before the xtest block

⚠ eslint-plugin-jest(padding-around-test-blocks): Missing padding before fit block
╭─[padding_around_test_blocks.tsx:7:1]
6 │ });
7 │ fit('bar', () => {
· ▲
8 │ // stuff
╰────
help: Make sure there is an empty new line before the fit block

⚠ eslint-plugin-jest(padding-around-test-blocks): Missing padding before test block
╭─[padding_around_test_blocks.tsx:10:1]
9 │ });
Expand Down Expand Up @@ -132,6 +105,33 @@ source: crates/oxc_linter/src/tester.rs
╰────
help: Make sure there is an empty new line before the test block

⚠ eslint-plugin-jest(padding-around-test-blocks): Missing padding before xit block
╭─[padding_around_test_blocks.tsx:26:2]
25 │ .skip('skippy skip', () => {});
26 │ xit('bar foo', () => {});
· ▲
27 │
╰────
help: Make sure there is an empty new line before the xit block

⚠ eslint-plugin-jest(padding-around-test-blocks): Missing padding before xtest block
╭─[padding_around_test_blocks.tsx:23:5]
22 │ it.skip('skipping too', () => {});
23 │ });xtest('weird', () => {});
· ▲
24 │ test
╰────
help: Make sure there is an empty new line before the xtest block

⚠ eslint-plugin-jest(padding-around-test-blocks): Missing padding before fit block
╭─[padding_around_test_blocks.tsx:7:1]
6 │ });
7 │ fit('bar', () => {
· ▲
8 │ // stuff
╰────
help: Make sure there is an empty new line before the fit block

⚠ eslint-plugin-jest(padding-around-test-blocks): Missing padding before it block
╭─[padding_around_test_blocks.tsx:5:5]
4 │ });
Expand Down
Loading
Loading