microsoft / microsoft/AdaptiveCards
[Unit Tests] Configure Jest to allow `swiper` module
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Platform
- Unit test project
Issue
Jest does not allow swiper to be present in node_modules since it is an ES Module. We need to configure the unit-test project to allow swiper so that we can update the project to v3.x.x of adaptivecards
Began work on this branch: https://github.com/microsoft/AdaptiveCards/tree/anna/serializationBug
Potentially helpful links:
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
https://jestjs.io/docs/29.0/ecmascript-modules
https://jestjs.io/docs/29.0/configuration
https://nodejs.org/api/esm.html#esm_enabling
https://kulshekhar.github.io/ts-jest/docs/guides/esm-support/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
In the unit-test project, start with the Jest configuration and review the linked Jest ECMAScript Modules guidance. Run the unit tests to reproduce the failure involving swiper. Done means swiper can remain in node_modules without Jest rejecting it, allowing the project to move to adaptivecards v3.x.x.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100