Wikimedia
Wiki Ed Dashboard: using mocha, add tests for the functionality of the Student component
The dashboard uses mocha to write unit tests of React components and other javascript files.
Create a new mocha test file to exercise the main features of the Student component, app/assets/javascripts/components/students/student.jsx
.
You can find examples of existing mocha tests in the tests
directory.
You can run the javascript test suite with the command npm test
.
To complete this task, you'll first need to set up a Wiki Ed Dashboard development environment: https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/docs/setup.md
Task tags
Students who completed this task
Filip