ng test will break on apps that have moduleId: module.id in the @Component metadata.
Error: moduleId should be a string in "AppComponent". See https://goo.gl/wIDDiL for more information.
If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.
This is due to ng test using a different setup of AoTplugin that does not strip module.id.
ng testwill break on apps that havemoduleId: module.idin the@Componentmetadata.This is due to
ng testusing a different setup of AoTplugin that does not stripmodule.id.