javascript - Intern - window is undefined -
i have loop of tests running in intern-geezer, twenty out of hundred similar tests running successfully. suddenly:
fatal error referenceerror: window not defined
and loop stops. there no explicit calls window
or document
in code. it's pure js. i'm using intern-geezer, 2.2.2. line numbers referenced in error stack make absolutely no sense. they're way off.
i've read suggestion switch command:
./node_modules/.bin/intern-client config=tests/intern
to:
./node_modules/.bin/intern-runner config=tests/intern
but don't want connect server or open browser (there's separate, strange loading error occurring there seems specific geezer). want going @ command line. grateful help, i'm totally new intern.
window
browser object, it's not going available in node. if want run tests exclusively in node client (intern-client
), you'll need make sure you're not using (and none of dependencies using) code references browser objects document
, window
, navigator
, etc.
if stack trace line numbers off, it's code coverage instrumentation. can disable setting excludeinstrumentation
property in intern config /./
.
Comments
Post a Comment