Atom does not recognize angular 2 TestBed entries


Atom editing does not recognuze keywords of Angular 2 Jasmine TestBed (like describe, expect, it, beforeEach) are not recogized, even though I’ve installed all relevant atom snippets which I could find (using apm).


What package are you using? Installing snippets packages isn’t going to fix it if the linter package you’re using doesn’t include Jasmine keywords.


You have to tell the linter you use that you have global identifiers in your code.
For example, with ESLint, you just specify env: jasmine: true (I simplify), although one can also defines each word in the globals: section.
Check the doc of your own linter, it might allows this as well.