Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A test PR #3483

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

A test PR #3483

wants to merge 1 commit into from

Conversation

RulaKhaled
Copy link
Contributor

@RulaKhaled RulaKhaled commented Nov 11, 2024

For testing purposes, don't merge.

Copy link

codecov bot commented Nov 11, 2024

Bundle Report

Bundle size has no change ✅

@codecov-staging
Copy link

Bundle Report

Bundle size has no change ✅

@codecov-staging
Copy link

codecov-staging bot commented Nov 11, 2024

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
2707 2 2705 0
View the top 2 failed tests by shortest run time
src/services/commit/useCommit.test.tsx > useCommit polling > when called > returns commit data merged with what polling fetched
Stack Traces | 1.02s run time
AssertionError: expected { commit: { …(12) } } to strictly equal { commit: { …(12) } }

Ignored nodes: comments, script, style
<html>
  <head />
  <body>
    <div />
  </body>
</html>

- Expected
+ Received

  Object {
    "commit": Object {
      "author": Object {
        "username": "febg",
      },
-     "branchName": "null",
+     "branchName": null,
      "ciPassed": true,
      "commitid": "f00162848a3cebc0728d915763c2fd9e92132408",
      "compareWithParent": Object {
        "__typename": "Comparison",
        "directChangedFilesCount": 1,
        "impactedFiles": Object {
          "__typename": "ImpactedFiles",
          "results": Array [],
        },
        "indirectChangedFilesCount": 1,
        "patchTotals": null,
        "state": "PROCESSED",
      },
      "coverageAnalytics": Object {
        "totals": Object {
          "coverage": 38.30846,
        },
      },
      "createdAt": "2020-08-25T16:35:32",
      "message": "paths test",
      "parent": Object {
        "commitid": "d773f5bc170caec7f6e64420b0967e7bac978a8f",
        "coverageAnalytics": Object {
          "totals": Object {
            "coverage": 38.30846,
          },
        },
      },
      "pullId": 10,
      "state": "complete",
      "uploads": Array [
        Object {
          "buildCode": null,
          "ciUrl": "https://travis-ci..../repo-test/jobs/721065746",
          "createdAt": "2020-08-25T16:36:19.55947400:00",
          "downloadUrl": ".../repo-test/download/build?path=.../F84D6D9A7F883055E40E3B380280BC44/f00162848a3cebc0728d915763c2fd9e92132408/30582d33-de37-4272-ad50-c4dc805802fb.txt",
          "errors": Array [],
          "flags": Array [],
          "id": 0,
          "jobCode": null,
          "name": "upload name",
          "provider": "travis",
          "state": "PROCESSED",
          "updatedAt": "2020-08-25T16:36:19.67986800:00",
          "uploadType": "UPLOADED",
        },
        Object {
          "buildCode": null,
          "ciUrl": "https://travis-ci..../repo-test/jobs/721065763",
          "createdAt": "2020-08-25T16:36:25.82034000:00",
          "downloadUrl": ".../repo-test/download/build?path=.../F84D6D9A7F883055E40E3B380280BC44/f00162848a3cebc0728d915763c2fd9e92132408/18b19f8d-5df6-48bd-90eb-50578ed8812f.txt",
          "errors": Array [],
          "flags": Array [],
          "id": 1,
          "jobCode": null,
          "name": "upload name",
          "provider": "travis",
          "state": "PROCESSED",
          "updatedAt": "2020-08-25T16:36:25.85988900:00",
          "uploadType": "UPLOADED",
        },
      ],
    },
  }

 ❯ .../services/commit/useCommit.test.tsx:690:37
 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12
 ❯ checkCallback node_modules/@.../dom/dist/wait-for.js:124:77
 ❯ Timeout.checkRealTimersCallback node_modules/@.../dom/dist/wait-for.js:118:16
src/services/commits/useCommits.test.tsx > GetCommits > unsuccessful parse of zod schema > throws a 404
Stack Traces | 1.07s run time
AssertionError: expected { status: 404, data: {} } to deeply equal ObjectContaining {"status": 405}

Ignored nodes: comments, script, style
<html>
  <head />
  <body>
    <div />
  </body>
</html>

- Expected
+ Received

- ObjectContaining {
-   "status": 405,
+ Object {
+   "data": Object {},
+   "status": 404,
  }

 ❯ .../services/commits/useCommits.test.tsx:380:38
 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12
 ❯ checkCallback node_modules/@.../dom/dist/wait-for.js:124:77
 ❯ Timeout.checkRealTimersCallback node_modules/@.../dom/dist/wait-for.js:118:16

To view more test analytics go to the Test Analytics Dashboard
Got feedback? Let us know on Github

Copy link

codecov-public-qa bot commented Nov 11, 2024

Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time.

❌ Failed Test Results:

Completed 2707 tests with 2 failed, 2705 passed and 0 skipped.

View the full list of failed tests

src/services/commit/useCommit.test.tsx

  • Class name: src/services/commit/useCommit.test.tsx
    Test name: useCommit polling > when called > returns commit data merged with what polling fetched

    AssertionError: expected { commit: { …(12) } } to strictly equal { commit: { …(12) } }

    Ignored nodes: comments, script, style
    <html>
    <head />
    <body>
    <div />
    </body>
    </html>

    - Expected
    + Received

    Object {
    "commit": Object {
    "author": Object {
    "username": "febg",
    },
    - "branchName": "null",
    + "branchName": null,
    "ciPassed": true,
    "commitid": "f00162848a3cebc0728d915763c2fd9e92132408",
    "compareWithParent": Object {
    "__typename": "Comparison",
    "directChangedFilesCount": 1,
    "impactedFiles": Object {
    "__typename": "ImpactedFiles",
    "results": Array [],
    },
    "indirectChangedFilesCount": 1,
    "patchTotals": null,
    "state": "PROCESSED",
    },
    "coverageAnalytics": Object {
    "totals": Object {
    "coverage": 38.30846,
    },
    },
    "createdAt": "2020-08-25T16:35:32",
    "message": "paths test",
    "parent": Object {
    "commitid": "d773f5bc170caec7f6e64420b0967e7bac978a8f",
    "coverageAnalytics": Object {
    "totals": Object {
    "coverage": 38.30846,
    },
    },
    },
    "pullId": 10,
    "state": "complete",
    "uploads": Array [
    Object {
    "buildCode": null,
    "ciUrl": "https://travis-ci..../repo-test/jobs/721065746",
    "createdAt": "2020-08-25T16:36:19.55947400:00",
    "downloadUrl": ".../repo-test/download/build&path=.../F84D6D9A7F883055E40E3B380280BC44/f00162848a3cebc0728d915763c2fd9e92132408/30582d33-de37-4272-ad50-c4dc805802fb.txt",
    "errors": Array [],
    "flags": Array [],
    "id": 0,
    "jobCode": null,
    "name": "upload name",
    "provider": "travis",
    "state": "PROCESSED",
    "updatedAt": "2020-08-25T16:36:19.67986800:00",
    "uploadType": "UPLOADED",
    },
    Object {
    "buildCode": null,
    "ciUrl": "https://travis-ci..../repo-test/jobs/721065763",
    "createdAt": "2020-08-25T16:36:25.82034000:00",
    "downloadUrl": ".../repo-test/download/build&path=.../F84D6D9A7F883055E40E3B380280BC44/f00162848a3cebc0728d915763c2fd9e92132408/18b19f8d-5df6-48bd-90eb-50578ed8812f.txt",
    "errors": Array [],
    "flags": Array [],
    "id": 1,
    "jobCode": null,
    "name": "upload name",
    "provider": "travis",
    "state": "PROCESSED",
    "updatedAt": "2020-08-25T16:36:25.85988900:00",
    "uploadType": "UPLOADED",
    },
    ],
    },
    }

    ❯ .../services/commit/useCommit.test.tsx:690:37
    ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12
    ❯ checkCallback node_modules/@.../dom/dist/wait-for.js:124:77
    ❯ Timeout.checkRealTimersCallback node_modules/@.../dom/dist/wait-for.js:118:16

src/services/commits/useCommits.test.tsx

  • Class name: src/services/commits/useCommits.test.tsx
    Test name: GetCommits > unsuccessful parse of zod schema > throws a 404

    AssertionError: expected { status: 404, data: {} } to deeply equal ObjectContaining {"status": 405}

    Ignored nodes: comments, script, style
    <html>
    <head />
    <body>
    <div />
    </body>
    </html>

    - Expected
    + Received

    - ObjectContaining {
    - "status": 405,
    + Object {
    + "data": Object {},
    + "status": 404,
    }

    ❯ .../services/commits/useCommits.test.tsx:380:38
    ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12
    ❯ checkCallback node_modules/@.../dom/dist/wait-for.js:124:77
    ❯ Timeout.checkRealTimersCallback node_modules/@.../dom/dist/wait-for.js:118:16

@codecov-qa
Copy link

codecov-qa bot commented Nov 11, 2024

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
2707 2 2705 0
View the top 2 failed tests by shortest run time
src/services/commit/useCommit.test.tsx > useCommit polling &gt; when called &gt; returns commit data merged with what polling fetched
Stack Traces | 1.02s run time
AssertionError: expected { commit: { …(12) } } to strictly equal { commit: { …(12) } }

Ignored nodes: comments, script, style
&lt;html&gt;
  &lt;head /&gt;
  &lt;body&gt;
    &lt;div /&gt;
  &lt;/body&gt;
&lt;/html&gt;

- Expected
+ Received

  Object {
    &quot;commit&quot;: Object {
      &quot;author&quot;: Object {
        &quot;username&quot;: &quot;febg&quot;,
      },
-     &quot;branchName&quot;: &quot;null&quot;,
+     &quot;branchName&quot;: null,
      &quot;ciPassed&quot;: true,
      &quot;commitid&quot;: &quot;f00162848a3cebc0728d915763c2fd9e92132408&quot;,
      &quot;compareWithParent&quot;: Object {
        &quot;__typename&quot;: &quot;Comparison&quot;,
        &quot;directChangedFilesCount&quot;: 1,
        &quot;impactedFiles&quot;: Object {
          &quot;__typename&quot;: &quot;ImpactedFiles&quot;,
          &quot;results&quot;: Array [],
        },
        &quot;indirectChangedFilesCount&quot;: 1,
        &quot;patchTotals&quot;: null,
        &quot;state&quot;: &quot;PROCESSED&quot;,
      },
      &quot;coverageAnalytics&quot;: Object {
        &quot;totals&quot;: Object {
          &quot;coverage&quot;: 38.30846,
        },
      },
      &quot;createdAt&quot;: &quot;2020-08-25T16:35:32&quot;,
      &quot;message&quot;: &quot;paths test&quot;,
      &quot;parent&quot;: Object {
        &quot;commitid&quot;: &quot;d773f5bc170caec7f6e64420b0967e7bac978a8f&quot;,
        &quot;coverageAnalytics&quot;: Object {
          &quot;totals&quot;: Object {
            &quot;coverage&quot;: 38.30846,
          },
        },
      },
      &quot;pullId&quot;: 10,
      &quot;state&quot;: &quot;complete&quot;,
      &quot;uploads&quot;: Array [
        Object {
          &quot;buildCode&quot;: null,
          &quot;ciUrl&quot;: &quot;https://travis-ci..../repo-test/jobs/721065746&quot;,
          &quot;createdAt&quot;: &quot;2020-08-25T16:36:19.55947400:00&quot;,
          &quot;downloadUrl&quot;: &quot;.../repo-test/download/build?path=.../F84D6D9A7F883055E40E3B380280BC44/f00162848a3cebc0728d915763c2fd9e92132408/30582d33-de37-4272-ad50-c4dc805802fb.txt&quot;,
          &quot;errors&quot;: Array [],
          &quot;flags&quot;: Array [],
          &quot;id&quot;: 0,
          &quot;jobCode&quot;: null,
          &quot;name&quot;: &quot;upload name&quot;,
          &quot;provider&quot;: &quot;travis&quot;,
          &quot;state&quot;: &quot;PROCESSED&quot;,
          &quot;updatedAt&quot;: &quot;2020-08-25T16:36:19.67986800:00&quot;,
          &quot;uploadType&quot;: &quot;UPLOADED&quot;,
        },
        Object {
          &quot;buildCode&quot;: null,
          &quot;ciUrl&quot;: &quot;https://travis-ci..../repo-test/jobs/721065763&quot;,
          &quot;createdAt&quot;: &quot;2020-08-25T16:36:25.82034000:00&quot;,
          &quot;downloadUrl&quot;: &quot;.../repo-test/download/build?path=.../F84D6D9A7F883055E40E3B380280BC44/f00162848a3cebc0728d915763c2fd9e92132408/18b19f8d-5df6-48bd-90eb-50578ed8812f.txt&quot;,
          &quot;errors&quot;: Array [],
          &quot;flags&quot;: Array [],
          &quot;id&quot;: 1,
          &quot;jobCode&quot;: null,
          &quot;name&quot;: &quot;upload name&quot;,
          &quot;provider&quot;: &quot;travis&quot;,
          &quot;state&quot;: &quot;PROCESSED&quot;,
          &quot;updatedAt&quot;: &quot;2020-08-25T16:36:25.85988900:00&quot;,
          &quot;uploadType&quot;: &quot;UPLOADED&quot;,
        },
      ],
    },
  }

 ❯ .../services/commit/useCommit.test.tsx:690:37
 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12
 ❯ checkCallback node_modules/@.../dom/dist/wait-for.js:124:77
 ❯ Timeout.checkRealTimersCallback node_modules/@.../dom/dist/wait-for.js:118:16
src/services/commits/useCommits.test.tsx > GetCommits &gt; unsuccessful parse of zod schema &gt; throws a 404
Stack Traces | 1.07s run time
AssertionError: expected { status: 404, data: {} } to deeply equal ObjectContaining {&quot;status&quot;: 405}

Ignored nodes: comments, script, style
&lt;html&gt;
  &lt;head /&gt;
  &lt;body&gt;
    &lt;div /&gt;
  &lt;/body&gt;
&lt;/html&gt;

- Expected
+ Received

- ObjectContaining {
-   &quot;status&quot;: 405,
+ Object {
+   &quot;data&quot;: Object {},
+   &quot;status&quot;: 404,
  }

 ❯ .../services/commits/useCommits.test.tsx:380:38
 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12
 ❯ checkCallback node_modules/@.../dom/dist/wait-for.js:124:77
 ❯ Timeout.checkRealTimersCallback node_modules/@.../dom/dist/wait-for.js:118:16

To view more test analytics, go to the Test Analytics Dashboard
Got feedback? Let us know on Github

Copy link

codecov bot commented Nov 11, 2024

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
2707 2 2705 0
View the top 2 failed tests by shortest run time
src/services/commit/useCommit.test.tsx > useCommit polling &gt; when called &gt; returns commit data merged with what polling fetched
Stack Traces | 1.02s run time
AssertionError: expected { commit: { …(12) } } to strictly equal { commit: { …(12) } }

Ignored nodes: comments, script, style
&lt;html&gt;
  &lt;head /&gt;
  &lt;body&gt;
    &lt;div /&gt;
  &lt;/body&gt;
&lt;/html&gt;

- Expected
+ Received

  Object {
    &quot;commit&quot;: Object {
      &quot;author&quot;: Object {
        &quot;username&quot;: &quot;febg&quot;,
      },
-     &quot;branchName&quot;: &quot;null&quot;,
+     &quot;branchName&quot;: null,
      &quot;ciPassed&quot;: true,
      &quot;commitid&quot;: &quot;f00162848a3cebc0728d915763c2fd9e92132408&quot;,
      &quot;compareWithParent&quot;: Object {
        &quot;__typename&quot;: &quot;Comparison&quot;,
        &quot;directChangedFilesCount&quot;: 1,
        &quot;impactedFiles&quot;: Object {
          &quot;__typename&quot;: &quot;ImpactedFiles&quot;,
          &quot;results&quot;: Array [],
        },
        &quot;indirectChangedFilesCount&quot;: 1,
        &quot;patchTotals&quot;: null,
        &quot;state&quot;: &quot;PROCESSED&quot;,
      },
      &quot;coverageAnalytics&quot;: Object {
        &quot;totals&quot;: Object {
          &quot;coverage&quot;: 38.30846,
        },
      },
      &quot;createdAt&quot;: &quot;2020-08-25T16:35:32&quot;,
      &quot;message&quot;: &quot;paths test&quot;,
      &quot;parent&quot;: Object {
        &quot;commitid&quot;: &quot;d773f5bc170caec7f6e64420b0967e7bac978a8f&quot;,
        &quot;coverageAnalytics&quot;: Object {
          &quot;totals&quot;: Object {
            &quot;coverage&quot;: 38.30846,
          },
        },
      },
      &quot;pullId&quot;: 10,
      &quot;state&quot;: &quot;complete&quot;,
      &quot;uploads&quot;: Array [
        Object {
          &quot;buildCode&quot;: null,
          &quot;ciUrl&quot;: &quot;https://travis-ci..../repo-test/jobs/721065746&quot;,
          &quot;createdAt&quot;: &quot;2020-08-25T16:36:19.55947400:00&quot;,
          &quot;downloadUrl&quot;: &quot;.../repo-test/download/build?path=.../F84D6D9A7F883055E40E3B380280BC44/f00162848a3cebc0728d915763c2fd9e92132408/30582d33-de37-4272-ad50-c4dc805802fb.txt&quot;,
          &quot;errors&quot;: Array [],
          &quot;flags&quot;: Array [],
          &quot;id&quot;: 0,
          &quot;jobCode&quot;: null,
          &quot;name&quot;: &quot;upload name&quot;,
          &quot;provider&quot;: &quot;travis&quot;,
          &quot;state&quot;: &quot;PROCESSED&quot;,
          &quot;updatedAt&quot;: &quot;2020-08-25T16:36:19.67986800:00&quot;,
          &quot;uploadType&quot;: &quot;UPLOADED&quot;,
        },
        Object {
          &quot;buildCode&quot;: null,
          &quot;ciUrl&quot;: &quot;https://travis-ci..../repo-test/jobs/721065763&quot;,
          &quot;createdAt&quot;: &quot;2020-08-25T16:36:25.82034000:00&quot;,
          &quot;downloadUrl&quot;: &quot;.../repo-test/download/build?path=.../F84D6D9A7F883055E40E3B380280BC44/f00162848a3cebc0728d915763c2fd9e92132408/18b19f8d-5df6-48bd-90eb-50578ed8812f.txt&quot;,
          &quot;errors&quot;: Array [],
          &quot;flags&quot;: Array [],
          &quot;id&quot;: 1,
          &quot;jobCode&quot;: null,
          &quot;name&quot;: &quot;upload name&quot;,
          &quot;provider&quot;: &quot;travis&quot;,
          &quot;state&quot;: &quot;PROCESSED&quot;,
          &quot;updatedAt&quot;: &quot;2020-08-25T16:36:25.85988900:00&quot;,
          &quot;uploadType&quot;: &quot;UPLOADED&quot;,
        },
      ],
    },
  }

 ❯ .../services/commit/useCommit.test.tsx:690:37
 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12
 ❯ checkCallback node_modules/@.../dom/dist/wait-for.js:124:77
 ❯ Timeout.checkRealTimersCallback node_modules/@.../dom/dist/wait-for.js:118:16
src/services/commits/useCommits.test.tsx > GetCommits &gt; unsuccessful parse of zod schema &gt; throws a 404
Stack Traces | 1.07s run time
AssertionError: expected { status: 404, data: {} } to deeply equal ObjectContaining {&quot;status&quot;: 405}

Ignored nodes: comments, script, style
&lt;html&gt;
  &lt;head /&gt;
  &lt;body&gt;
    &lt;div /&gt;
  &lt;/body&gt;
&lt;/html&gt;

- Expected
+ Received

- ObjectContaining {
-   &quot;status&quot;: 405,
+ Object {
+   &quot;data&quot;: Object {},
+   &quot;status&quot;: 404,
  }

 ❯ .../services/commits/useCommits.test.tsx:380:38
 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12
 ❯ checkCallback node_modules/@.../dom/dist/wait-for.js:124:77
 ❯ Timeout.checkRealTimersCallback node_modules/@.../dom/dist/wait-for.js:118:16

To view more test analytics, go to the Test Analytics Dashboard
Got feedback? Let us know on Github

@codecov-releaser
Copy link
Contributor

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
b42731a Mon, 11 Nov 2024 10:37:55 GMT Cloud Enterprise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants