We're updating the issue view to help you get more done. 

Discovery/Make plan to add jest/react-testing-library into blip

Description

`react-testing-library` is now the leading testing solution for react – particularly for components and patterns using the new features in React 16.8 (hooks). This also ties into the previous interest of bringing Jest into `blip` adding features such as snapshots which are not available with our current setup using mocha/chai/enzyme.

`react-testing-library` represents a change in the testing paradigm moving away from testing implementation details and moving to testing the components in the DOM – focusing on what the user is seeing rather than if the conditions are correct to trigger the component to show. It also has an advantage in enforcing accessibility in our testing.

Jest has already been implemented for Uploader.

We need to compare the benefits of using jest/react-testing-library versus using our current implementation which includes `react-hooks-testing-library` already.

This ticket is to do this research and if it is determined that we want to go this direction, to determine a plan to move forward with the transition and determine what the lift would be.

Done Criteria

  • Research the benefits of using jest/react-testing-library versus using our current implementation of mocha/chai/enzyme and `react-hooks-testing-library`

  • determine if we want to go this direction

  • if so, determine a plan to move forward with the transition and determine what the lift would be

Design Specifications:

None

Accessibility Specifications

None

Test Strategy

None

Environment

None

New Fields for Analytics/Export Configuration (if needed)

None

Priority

None

Assignee

Clint Beacock

QA Assignee

None

Reporter

Thacher Hussain

Requested By (External)

None

Fix versions

None

T-Shirt Size

M: <=1 week

Risk Level

None

User Experience Assessment Level

None

UEA: Issue Volume

None

UEA: Category

None

Components

None

Design Review Required?

None

Design Approved By:

None

QA done during validation of another ticket?

None

Accessibility Review Required?

None

Accessibility Review Approved By

None

Approved for Production By:

None

Pull Request Needed

None

Resolved Build #

None

Story Points

5

Sprint

None
Configure