Closed Bug 1558756 Opened 5 years ago Closed 5 years ago

Add Jest unit tests for React components

Categories

(DevTools :: Application Panel, task, P1)

task

Tracking

(firefox70 fixed)

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: ladybenko, Assigned: ogasidlo)

References

Details

(Whiteboard: foundation-work)

Attachments

(1 file)

Add Jest tests for our components:

  • WorkerList
  • WorkerListEmpty
  • Worker
  • App
Type: defect → task
Whiteboard: foundation-work
Priority: -- → P3
Assignee: nobody → ogasidlo
Status: NEW → ASSIGNED
Priority: P3 → P1

added more jest test for components including snapshots + fixtures

Attachment #9078184 - Attachment description: Bug 1558756 - Adding jest tests for components → Bug 1558756 - Adding jest tests for components, r=jdescottes!, ladybenko!
Pushed by ogasidlo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/266931d06efb Adding jest tests for components, r=ladybenko,jdescottes

Backed out changeset 266931d06efb (Bug 1558756) for causing devtools failures

Backout link: https://hg.mozilla.org/integration/autoland/rev/4382f734fc377bbe7433fa6d58e58cd732ae4c82

Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception%2Crunnable&tochange=4382f734fc377bbe7433fa6d58e58cd732ae4c82&fromchange=266931d06efb975e630a88f7ba422aef8ffbebaa&selectedJob=257888533

Failure log:

  • https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=257888533&repo=autoland&lineNumber=587
    [task 2019-07-23T14:50:22.713Z] Snapshot Summary
    [task 2019-07-23T14:50:22.713Z] › 2 snapshots failed from 1 test suite. Inspect your code changes or run yarn run test-ci -u to update them.
    [task 2019-07-23T14:50:22.713Z]
    [task 2019-07-23T14:50:22.713Z] Test Suites: 1 failed, 2 passed, 3 total
    [task 2019-07-23T14:50:22.713Z] Tests: 2 failed, 4 passed, 6 total
    [task 2019-07-23T14:50:22.713Z] Snapshots: 2 failed, 4 passed, 6 total
    [task 2019-07-23T14:50:22.713Z] Time: 5.642s
    [task 2019-07-23T14:50:22.713Z] Ran all test suites.
    [task 2019-07-23T14:50:22.713Z] error Command failed with exit code 1.
    [task 2019-07-23T14:50:22.713Z]
    [task 2019-07-23T14:50:22.713Z] [devtools-node-test-runner] Parse errors from the test logs
    [task 2019-07-23T14:50:22.713Z] TEST-UNEXPECTED-FAIL | jest | application | ● Service Worker List: › renders the expected snapshot for a workerList with single worker list
    [task 2019-07-23T14:50:22.713Z] TEST-UNEXPECTED-FAIL | jest | application | ● Service Worker List: › renders the expected snapshot for a workerList with multiple workers list
    [task 2019-07-23T14:50:22.713Z] [devtools-node-test-runner] Test suite [application] failed
    [taskcluster 2019-07-23 14:50:23.200Z] === Task Finished ===
    [taskcluster 2019-07-23 14:50:23.200Z] Unsuccessful task run with exit code: 1 completed in 292.077 seconds
Flags: needinfo?(ogasidlo)

The issue is solved. Waiting on try as an intermittent occurred.

Flags: needinfo?(ogasidlo)

Should be back in the queue.

Pushed by ogasidlo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3ba90a7d4a46 Adding jest tests for components, r=ladybenko,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: