Setup Jest for unit testing and add initial test

Description

There are no Jest tests for this plugin, so it is needed to set up Jest and add the initial test.

  • Install @folio/jest-config-stripes@^2.0.0 dev dependency

  • Add jest.config.js in the root dir

  • Add a script to run unit tests

  • Add test/jest/_mock_ and test/jest/helpers directories

  • Add initial test for some component

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:
Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Folijet

Fix versions

Release

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created September 8, 2023 at 1:54 PM
Updated October 12, 2023 at 1:56 PM
Resolved September 11, 2023 at 8:12 PM
TestRail: Cases
TestRail: Runs