Closed webmaster128 closed 6 years ago
The error appears in this line 107173:61
const { request, request: { user, method, url, async, password, headers, body } } = this;
so we're right after async
. Seems like the variable is interpreted as a keyword.
After changing "target": "es2015",
to "target": "es5",
in tsconfig.json, the tests start running.
In any case, this is not this project's bug.
Great, thanks for the clarification. 😄
Besides that is karma-edge-launcher
working okay for you? I haven't tested it with recent versions of Edge and Windows 10.
I have the strange behaviour that old tabs are always opened. So when running tests with --single-run 100 times, 100 tabs are open. But I did not dig into that since there are other problems to be solved first
In case anyone finds this thread from Google: I hit this Edge/Chakra bug: https://github.com/Microsoft/ChakraCore/issues/4741
The reason this works with es5 is that es5 has no destructuring assignment and thus,
const { request, request: { user, method, url, async, password, headers, body } } = this;
is transpiled into
var _a = this, request = _a.request, _b = _a.request, user = _b.user, method = _b.method, url = _b.url, async = _b.async, password = _b.password, headers = _b.headers, body = _b.body;
which is a workaround for the Chakra bug.
Hi all,
when I try to test an Angular app using Edge, I get the errors
My application code does not contain any call of
call
and the same tests run fine using the Chrome, Safari and Firefox launchers.The browser opens but is stuck before running any tests:
Command line output