OCU Test Day 5 Review Flashcards

1
Q

Which command to Angular CLI will run all of your tests?

A

npm test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Does Angular CLI include support for unit testing?

A

Yes! Jasmine, Karma, and Protractor come in our package.json.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Where should we put the default (“/”) route in the route array?
The wildcard route?

A

Default: first
Wildcard: last

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Can you set up code to run before and/or after each test?

A

Yes! beforeEach, afterEach

How well did you know this?
1
Not at all
2
3
4
5
Perfectly