我目前正在为某些使用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.
查看这些警告是否正常?关于如何抑制这些警告的任何想法,因为我没有看到它们与单元测试真正相关?