2

Should I exclude the material theme.scss, I get this...

Should I exclude the material theme.scss, I get this...

However, should I include the theme, I get this... However, should I include the theme, I get this...

I've searched for about an hour and a half now, there seems to be no way around this.

I just want to test my app and use angular material at the same time... I'd settle for turning off the rendered html ?

DGmip
  • 193
  • 2
  • 9
  • So what is the problem? Does it fail because of that or what? – Amir Arbabian Feb 01 '19 at 20:31
  • No it doesn't fail it's just rendering the html over the test results – DGmip Mar 09 '19 at 20:59
  • 1
    I assume you know which component it is, try to add `afterEach()` into the test class and add a call `componentFixture.destroy()` to destroy your component after each test, and it should disappear after all tests run. – Amir Arbabian Mar 10 '19 at 08:49
  • Ahh this should be the answer thank you ! Can you add as an answer so I can set it as the answer? – DGmip Mar 19 '19 at 07:08

1 Answers1

1

I assume you know which component it is, try to add afterEach() into the test class and add a call componentFixture.destroy() to destroy your component after each test, and it should disappear after all tests run.

jnicolau
  • 106
  • 3