I'm getting this error after importing NoopAnimationsModule for my Angular 6 app
ERROR TypeError: this.driver.matchesElement is not a function
at TransitionAnimationEngine.push../node_modules/@angular/animations/fesm5/browser.js.TransitionAnimationEngine.processLeaveNode (browser.js:2976)