DGmip
DGmip

Reputation: 302

Karma rendering html over test results

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 ?

Upvotes: 2

Views: 785

Answers (1)

jnicolau
jnicolau

Reputation: 106

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.

Upvotes: 1

Related Questions