swagger-api/swagger-ui

Migrate 3 Mocha+Enzyme test files to Jest

Open

#6,486 opened on Oct 7, 2020

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (8,801 forks)batch import
Hacktoberfesttype: feature

Repository metrics

Stars
 (25,447 stars)
PR merge metrics
 (Avg merge 20h 34m) (14 merged PRs in 30d)

Description

Content & configuration

Is your feature request related to a problem?

The 3 remaining Mocha-based test files are all related to Enzyme, and currently fail on Jest with both enzyme@2 and enzyme@3.

Reason: Consolidate testing framework.

Describe the solution you'd like

The 3 remaining Mocha-based test files should be refactored for Jest+Enzyme. Ideally, the replacement test files should be in Enzyme 3.

Describe alternatives you've considered

May also consider using Jest + Testing Library, instead of Jest + Enyzme

Additional context

related to #6487

Contributor guide