Page MenuHomePhabricator

Interaction Timeline: Setup a unit test framework for front-end
Open, MediumPublic3 Estimated Story Points

Description

It will be very helpful to have unit tests for the components and support libraries that we are writing. The application is rapidly growing in complexity and we should do this sooner than later


Acceptance criteria

  • A test framework for the Interaction Timeline is established
  • The top high-priority functionalities of the Timeline have tests written
  • A strategy for when to add new tests is decided-on by David, Dayllan, and Ryan
  • Create a single test that passes (doesn't need to test anything useful)

Event Timeline

Yeah, would be great to test things like isIPAddress(), with all it's complicated regexes.

TBolliger renamed this task from Setup test framework to Interaction Timeline: Setup test framework .Jan 10 2018, 11:32 PM
TBolliger updated the task description. (Show Details)

I've used mocha before, I know Facebook uses Jest (which they created). I don't have a strong preference.

It's probably worth doing some research on the pros and cons of different testing frameworks in JavaScript.

kaldari renamed this task from Interaction Timeline: Setup test framework to Interaction Timeline: Setup test framework for front-end.Jan 16 2018, 7:47 PM
kaldari renamed this task from Interaction Timeline: Setup test framework for front-end to Interaction Timeline: Setup a unit test framework for front-end.
kaldari updated the task description. (Show Details)
Niharika removed the point value for this task.
Niharika set the point value for this task to 3.