chore(deps-dev): bump xo from 0.56.0 to 0.57.0 #514
tests.yml
on: pull_request
Run linters
24s
Run tests
22s
Annotations
8 errors and 2 warnings
@next/next/google-font-display › correct:
__tests__/next.js#L7
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at Object.<anonymous> (__tests__/next.js:7:31)
|
@next/next/google-font-display › incorrect:
__tests__/next.js#L13
expect(received).toHaveLength(expected)
Expected length: 4
Received length: 5
Received array: [{"column": 22, "endColumn": 25, "endLine": 6, "fix": {"range": [179, 182], "text": "Document_"}, "line": 6, "message": "The variable `Doc` should be named `Document_`. A more descriptive name will do too.", "messageId": "replace", "nodeType": "Identifier", "ruleId": "unicorn/prevent-abbreviations", "severity": 2}, {"column": 9, "endColumn": 93, "endLine": 11, "line": 11, "message": "A font-display parameter is missing (adding `&display=optional` is recommended). See: https://nextjs.org/docs/messages/google-font-display", "nodeType": "JSXOpeningElement", "ruleId": "@next/next/google-font-display", "severity": 1}, {"column": 9, "endColumn": 107, "endLine": 12, "line": 12, "message": "Block is not recommended. See: https://nextjs.org/docs/messages/google-font-display", "nodeType": "JSXOpeningElement", "ruleId": "@next/next/google-font-display", "severity": 1}, {"column": 9, "endColumn": 106, "endLine": 13, "line": 13, "message": "Auto is not recommended. See: https://nextjs.org/docs/messages/google-font-display", "nodeType": "JSXOpeningElement", "ruleId": "@next/next/google-font-display", "severity": 1}, {"column": 9, "endColumn": 110, "endLine": 14, "line": 14, "message": "Fallback is not recommended. See: https://nextjs.org/docs/messages/google-font-display", "nodeType": "JSXOpeningElement", "ruleId": "@next/next/google-font-display", "severity": 1}]
at Object.<anonymous> (__tests__/next.js:13:29)
|
@next/next/google-font-preconnect › correct:
__tests__/next.js#L31
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at Object.<anonymous> (__tests__/next.js:31:31)
|
@next/next/google-font-preconnect › incorrect:
__tests__/next.js#L37
expect(received).toHaveLength(expected)
Expected length: 3
Received length: 4
Received array: [{"column": 22, "endColumn": 25, "endLine": 6, "fix": {"range": [179, 182], "text": "Document_"}, "line": 6, "message": "The variable `Doc` should be named `Document_`. A more descriptive name will do too.", "messageId": "replace", "nodeType": "Identifier", "ruleId": "unicorn/prevent-abbreviations", "severity": 2}, {"column": 9, "endColumn": 61, "endLine": 10, "line": 10, "message": "`rel=\"preconnect\"` is missing from Google Font. See: https://nextjs.org/docs/messages/google-font-preconnect", "nodeType": "JSXOpeningElement", "ruleId": "@next/next/google-font-preconnect", "severity": 1}, {"column": 9, "endColumn": 64, "endLine": 11, "line": 11, "message": "`rel=\"preconnect\"` is missing from Google Font. See: https://nextjs.org/docs/messages/google-font-preconnect", "nodeType": "JSXOpeningElement", "ruleId": "@next/next/google-font-preconnect", "severity": 1}, {"column": 9, "endColumn": 50, "endLine": 12, "line": 12, "message": "`rel=\"preconnect\"` is missing from Google Font. See: https://nextjs.org/docs/messages/google-font-preconnect", "nodeType": "JSXOpeningElement", "ruleId": "@next/next/google-font-preconnect", "severity": 1}]
at Object.<anonymous> (__tests__/next.js:37:29)
|
@next/next/no-css-tags › correct:
__tests__/next.js#L52
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at Object.<anonymous> (__tests__/next.js:52:31)
|
@next/next/no-css-tags › incorrect:
__tests__/next.js#L58
expect(received).toHaveLength(expected)
Expected length: 1
Received length: 2
Received array: [{"column": 22, "endColumn": 25, "endLine": 5, "fix": {"range": [127, 130], "text": "Document_"}, "line": 5, "message": "The variable `Doc` should be named `Document_`. A more descriptive name will do too.", "messageId": "replace", "nodeType": "Identifier", "ruleId": "unicorn/prevent-abbreviations", "severity": 2}, {"column": 9, "endColumn": 52, "endLine": 9, "line": 9, "message": "Do not include stylesheets manually. See: https://nextjs.org/docs/messages/no-css-tags", "nodeType": "JSXOpeningElement", "ruleId": "@next/next/no-css-tags", "severity": 1}]
at Object.<anonymous> (__tests__/next.js:58:29)
|
react/react-in-jsx-scope › incorrect:
__tests__/react.js#L39
expect(received).toBe(expected) // Object.is equality
Expected: "'React' is defined but never used."
Received: "'React' is defined but never used. Allowed unused vars must match /^_/u."
at Object.<anonymous> (__tests__/react.js:39:40)
|
Run tests
Process completed with exit code 1.
|
Run tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run linters
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|