chore: update eslint-plugin-unicorn
#14157
Annotations
5 errors and 2 warnings
|
run tests:
e2e/__tests__/wrongEnv.test.ts#L15
expect(received).toMatchSnapshot()
Snapshot name: `Wrong globals for environment on node <=18 print useful error for navigator 1`
- Snapshot - 7
+ Received + 7
@@ -8,14 +8,14 @@
The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
Consider using the "jsdom" test environment.
ReferenceError: navigator is not defined
- 30 |
+ 31 |
- 31 | test('use navigator', () => {
+ 32 | test('use navigator', () => {
- > 32 | const userAgent = navigator.userAgent;
+ > 33 | const userAgent = navigator.userAgent;
| ^
- 33 |
+ 34 |
- 34 | console.log(userAgent);
+ 35 | console.log(userAgent);
- 35 |
+ 36 |
- at Object.navigator (__tests__/node.js:32:21)"
+ at Object.navigator (__tests__/node.js:33:21)"
at toMatchSnapshot (e2e/__tests__/wrongEnv.test.ts:15:46)
at Object.assertFailuresAndSnapshot (e2e/__tests__/wrongEnv.test.ts:30:7)
|
run tests:
e2e/__tests__/wrongEnv.test.ts#L15
expect(received).toMatchSnapshot()
Snapshot name: `Wrong globals for environment on node <=18 print useful error for navigator 1`
- Snapshot - 7
+ Received + 7
@@ -8,14 +8,14 @@
The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
Consider using the "jsdom" test environment.
ReferenceError: navigator is not defined
- 30 |
+ 31 |
- 31 | test('use navigator', () => {
+ 32 | test('use navigator', () => {
- > 32 | const userAgent = navigator.userAgent;
+ > 33 | const userAgent = navigator.userAgent;
| ^
- 33 |
+ 34 |
- 34 | console.log(userAgent);
+ 35 | console.log(userAgent);
- 35 |
+ 36 |
- at Object.navigator (__tests__/node.js:32:21)"
+ at Object.navigator (__tests__/node.js:33:21)"
at toMatchSnapshot (e2e/__tests__/wrongEnv.test.ts:15:46)
at Object.assertFailuresAndSnapshot (e2e/__tests__/wrongEnv.test.ts:30:7)
|
run tests:
e2e/__tests__/wrongEnv.test.ts#L15
expect(received).toMatchSnapshot()
Snapshot name: `Wrong globals for environment on node <=18 print useful error for navigator 1`
- Snapshot - 7
+ Received + 7
@@ -8,14 +8,14 @@
The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
Consider using the "jsdom" test environment.
ReferenceError: navigator is not defined
- 30 |
+ 31 |
- 31 | test('use navigator', () => {
+ 32 | test('use navigator', () => {
- > 32 | const userAgent = navigator.userAgent;
+ > 33 | const userAgent = navigator.userAgent;
| ^
- 33 |
+ 34 |
- 34 | console.log(userAgent);
+ 35 | console.log(userAgent);
- 35 |
+ 36 |
- at Object.navigator (__tests__/node.js:32:21)"
+ at Object.navigator (__tests__/node.js:33:21)"
at toMatchSnapshot (e2e/__tests__/wrongEnv.test.ts:15:46)
at Object.assertFailuresAndSnapshot (e2e/__tests__/wrongEnv.test.ts:30:7)
|
run tests
The operation was canceled.
|
run tests
Attempt 1 failed. Reason: Child_process exited with error code 1
|
run tests
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Loading