OCU Test Day 5 Review Flashcards
1
Q
Which command to Angular CLI will run all of your tests?
A
npm test
2
Q
Why do we create feature modules?
A
To partition the app into logical parts that can be loaded separately if we want them to.
3
Q
Does Angular CLI include support for unit testing?
A
Yes! Jasmine, Karma, and Protractor come in our package.json.
4
Q
Where should we put the default (“/”) route in the route array?
The wildcard route?
A
Default: first
Wildcard: last
5
Q
Can you set up code to run before and/or after each test?
A
Yes! beforeEach, afterEach