You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: