Skip to content

tests: Additional useConnectQuery useConnectMutation tests #104

tests: Additional useConnectQuery useConnectMutation tests

tests: Additional useConnectQuery useConnectMutation tests #104

Triggered via pull request December 21, 2024 12:34
Status Failure
Total duration 1m 38s
Artifacts

tests.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 warning
packages/react/src/data-connect/useConnectQuery.test.tsx > useConnectQuery > returns pending state initially: packages/react/src/data-connect/useConnectQuery.test.tsx#L31
AssertionError: expected false to be true // Object.is equality Ignored nodes: comments, script, style <html> <head /> <body> <p class="firebase-emulator-warning" style="position: fixed; width: 100%; background-color: #ffffff; border: 0.1em solid #000000; color: #b50000; bottom: 0px; left: 0px; margin: 0px; z-index: 10000; text-align: center;" > Running in emulator mode. Do not use with production credentials. </p> <div /> </body> </html> - Expected + Received - true + false ❯ packages/react/src/data-connect/useConnectQuery.test.tsx:31:58 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
packages/react/src/data-connect/useConnectQuery.test.tsx > useConnectQuery > fetches data successfully: packages/react/src/data-connect/useConnectQuery.test.tsx#L43
AssertionError: expected false to be true // Object.is equality Ignored nodes: comments, script, style <html> <head /> <body> <p class="firebase-emulator-warning" style="position: fixed; width: 100%; background-color: #ffffff; border: 0.1em solid #000000; color: #b50000; bottom: 0px; left: 0px; margin: 0px; z-index: 10000; text-align: center;" > Running in emulator mode. Do not use with production credentials. </p> <div /> <div /> </body> </html> - Expected + Received - true + false ❯ packages/react/src/data-connect/useConnectQuery.test.tsx:43:58 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
packages/react/src/data-connect/useConnectQuery.test.tsx > useConnectQuery > refetches data successfully: packages/react/src/data-connect/useConnectQuery.test.tsx#L57
AssertionError: expected false to be true // Object.is equality Ignored nodes: comments, script, style <html> <head /> <body> <p class="firebase-emulator-warning" style="position: fixed; width: 100%; background-color: #ffffff; border: 0.1em solid #000000; color: #b50000; bottom: 0px; left: 0px; margin: 0px; z-index: 10000; text-align: center;" > Running in emulator mode. Do not use with production credentials. </p> <div /> <div /> <div /> </body> </html> - Expected + Received - true + false ❯ packages/react/src/data-connect/useConnectQuery.test.tsx:57:40 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
packages/react/src/data-connect/useConnectQuery.test.tsx > useConnectQuery > returns flattened data including ref, source, and fetchTime: packages/react/src/data-connect/useConnectQuery.test.tsx#L165
AssertionError: expected false to be true // Object.is equality Ignored nodes: comments, script, style <html> <head /> <body> <p class="firebase-emulator-warning" style="position: fixed; width: 100%; background-color: #ffffff; border: 0.1em solid #000000; color: #b50000; bottom: 0px; left: 0px; margin: 0px; z-index: 10000; text-align: center;" > Running in emulator mode. Do not use with production credentials. </p> <div /> <div /> <div /> <div /> <div /> <div /> </body> </html> - Expected + Received - true + false ❯ packages/react/src/data-connect/useConnectQuery.test.tsx:165:58 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
packages/react/src/data-connect/useConnectQuery.test.tsx > useConnectQuery > a query with no variables has null as the second query key argument: packages/react/src/data-connect/useConnectQuery.test.tsx#L226
TypeError: Cannot read properties of undefined (reading 'queryKey') ❯ packages/react/src/data-connect/useConnectQuery.test.tsx:226:34
test
Process completed with exit code 1.
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636