FSG by default loads the home state upon initialization. This makes it difficult to unit test components. To have working front-end tests, students must either:
- Architect all their services as belonging to a standalone Angular module, à la
fsgPrebuilt.
- Use a preprocessor and accept that the home state + all its dependencies are going to be bootstrapped (bad idea)
- Add a testing harness that detects the node environment, sets some window flags, and configures the app accordingly (probably the easiest).
This is, of course, specific to Angular and we are probably going to abandon Angular-FSG for React-FSG. However if we continue to use the Angular version of this app, we should probably implement the third option above to make it easier on students.
FSG by default loads the home state upon initialization. This makes it difficult to unit test components. To have working front-end tests, students must either:
fsgPrebuilt.This is, of course, specific to Angular and we are probably going to abandon Angular-FSG for React-FSG. However if we continue to use the Angular version of this app, we should probably implement the third option above to make it easier on students.