Skip to content

Sprint 3.2 Unit Tests

Jeffery Tang edited this page Nov 24, 2018 · 6 revisions

About the Tests

The unit tests for this sprint are in /tests/unit/.

The tests are written in Jest.

There are 3 test suites for the store (/src/store.js), Vue components, and our Axios settings (/src/axios.js).

Running the Tests

To run the units tests, go to the root of the project folder and run yarn run test:unit.

You will need to have Node, NPM, Yarn, and the node modules required for our project installed for the above command to work. When you do run it, you should get an output like this:

yarntest

Clone this wiki locally