This is a work in progress, but I think it'll be much easier for you to know what to do to have it written out!
- Run
npm start api.unitto run the tests in watch mode - Relevant files:
- You'll write your tests in:
api/src/routes/__tests__/utils.js - The source code you're testing is:
api/src/routes/utils.js - The demo is in:
api-final/demo/unit/ - The solution is in:
api-final/src/routes/
- You'll write your tests in:
Setup is the same as above!
- Run
npm start api.unitto run the tests in watch mode - Relevant files:
- You'll write your tests in:
api/src/models/__tests__/user.js - The bug is in:
api/src/models/user.js - The solution is in:
api-final/src/models/
- You'll write your tests in:
Remember to first find the bug, reproduce it with a test, then fix the bug. That order is important!
- Run
npm start api.integrationto run the tests in watch mode - Relevant files:
- You'll write your tests in:
api/tests/integration/articles.test.js - The article's routes are defined in:
api/src/routes/api/articles.js - The demo is in:
api-final/demo/integration/ - The solution is in:
api-final/tests/integration/
- You'll write your tests in:
- Run
npm start client.unitto run the tests in watch mode - Relevant files:
- You'll write your tests in:
src/reducers/__tests__/andsrc/screens/__tests__ - The source code you're testing is next to those folders.
- The demo is in:
client-final/demo/unit/ - The solution is in:
client-final/tests/unit/
- You'll write your tests in:
- Run
npm start client.integrationto run the tests in watch mode - Relevant files:
- You'll write your tests in:
client/tests/integration/login.test.js - The login component is:
client/src/screens/login.js - The demo is:
client-final/tests/integration/register.test.js - The solution is:
client-final/tests/integration/login.test.js
- You'll write your tests in:
- Run
npm start e2e.devto run the tests in dev mode - Relevant files:
- You'll write your tests in:
cypress/e2e/users_spec.js - You may find:
cypress/e2e/utils.jsuseful
- You'll write your tests in: