我目前正在爲某些使用Angular Material的角度組件編寫一些單元測試。我現在遇到的問題是在運行單元測試時不斷收到以下警告。單元測試組件中顯示的角度材質警告
console.warn node_modules\@angular\material\bundles\material.umd.js:183
Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.
console.warn node_modules\@angular\material\bundles\material.umd.js:196
Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.ang
ular.io/guide/theming
console.warn node_modules\@angular\material\bundles\material.umd.js:3327
Could not find HammerJS. Certain Angular Material components may not work correctly.
查看這些警告是否正常?關於如何抑制這些警告的任何想法,因爲我沒有看到它們與單元測試真正相關?