I'm trying to first fix the basic unit test that cli wrote for me. I'm new to unit testing so here's the code
import { MyDirective } from './my.directive';
describe('MyDirective', () => {
it('should create an instance', () => {
const directive = new MyDirective(); // it throws error here
expect(directive).toBeTruthy();
});
});
I need to inject ElementRef inside MyDirective