Uploaded image for project: 'SimplyE 2.0'
  1. SimplyE 2.0
  2. SIMPLY-3989

Set up RTL/Jest configuration in circulation-web

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • Web - CM Admin
    • None
    • SIMPLY Sprint 1 Jan 5 - 19, SIMPLY Sprint 2 Jan 19 - Feb 2
    • 2

      As I refactor circulation-web's components from class to functional with hooks, Enzyme/Mocha, the current test stack doesn't serve our needs as well. I plan to slowly transition to more modern technologies, RTL/Jest, which tests based on user interaction and the DOM, rather than implementation details.

      This ticket is specifically to set up RTL/Jest – future tickets will cover migrating tests for specific portions of circlation-web.

      Acceptance criteria:
      1. Install proper libraries.
      2. Write config file for Jest.
      3. Get one test to pass with RTL/Jest.
      4. Ensure Enzyme/Mocha tests still work/pass.

            oliviawong Olivia Wong
            oliviawong Olivia Wong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: