User Story
As a: sales exec I want: to login to the system So that: i can see my sales for the day
Scenarios
- given: a username and password
- when: the username is valid
- and: the password is incorrect
- then: the system should not allow login
- and: should return an error with 401 status code
- and: should show the following message to the user: "you shall not pass"
- and: should redirect the user to the login page
created new empty directory git init
Users.
Jest uses jsdom
as the default environment. Change it to node
in jest
key inside package.json
;