allenhwkim / ngentest

Angular6+ Unit Test Generator For Components, Directive, Services, and Pipes
https://ngentest.github.io
MIT License
144 stars 60 forks source link

Reference Error: document is undefined #29

Closed mdjack78 closed 3 years ago

mdjack78 commented 4 years ago

When I run this command from the directory that contains my .ts file: $ ngentest link-options.service.ts -s

I get this output: ReferenceError: document is not defined

at Object. (C:\gitRepos\mdl_common\node_modules\custom-event\index.js:24:23)

at Module._compile (internal/modules/cjs/loader.js:689:30)

at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)

at Module.load (internal/modules/cjs/loader.js:599:32)

at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

at Function.Module._load (internal/modules/cjs/loader.js:530:3)

at Module.require (internal/modules/cjs/loader.js:637:17)

at require (internal/modules/cjs/helpers.js:22:18)

at Object. (C:\gitRepos\mdl_common\node_modules\crossvent\src\crossvent.js:3:19)

at Module._compile (internal/modules/cjs/loader.js:689:30)

I am using the Full Example ngentest.config.js

mdjack78 commented 4 years ago

I'm on Windows 10.

allenhwkim commented 4 years ago

sorry for the late resp. can you provide your link-options.service.ts?

allenhwkim commented 3 years ago

no detail, closing