As I work on creating unit tests using jasmine and karma for my angular 6 application to validate the validity of a formGroup field, I encountered a challenge with the mat-select control. While running the test case, Karma throws an error stating
Error: No value accessor for form control with name: 'importId'
. However, the component functions correctly as expected.
https://i.sstatic.net/loCIJ.jpg
Here is the code snippet of my component:
// Component code here
This is how my HTML template looks like:
// HTML template code here
Lastly, this is my unit test script:
// Unit test script here
I'm currently stuck and can't figure out what might be missing, any suggestions or insights would be greatly appreciated.