hbenl / vscode-jasmine-test-adapter

Jasmine Test Adapter for the VS Code Test Explorer
MIT License
20 stars 20 forks source link

document is not defined #29

Closed kambizalipour closed 5 years ago

kambizalipour commented 5 years ago

I have an Angular 7 CLI project with 700+ tests and all are passing using ng test command. I tried Jasmine Test Explorer 1.4.1 and getting the following error in the log:

'function' === typeof document.createEvent ? function CustomEvent (type, params) {
                      ^
ReferenceError: document is not defined

Any thoughts of what I'm missing here?

I'm using VS Code 1.30.2 on Windows 10

hbenl commented 5 years ago

angular-cli projects use Karma and Protractor for their tests. Even though both use Jasmine behind the scenes, they are incompatible with this Test Adapter and would require their own Test Adapters. See also #17 and hbenl/vscode-test-explorer#19.

hbenl commented 5 years ago

A Karma adapter is being worked on, see hbenl/vscode-example-test-adapter#1