Can not load webpack. TypeError: arguments[i].apply is not a function. #20
Comments
@Pablodotnet thanks for trying out Stryker and reporting this issue. When you use Even if you would copy all files an the initial test run works, mutation testing will not succeed, as we do not support TypeScript as input for now. We are working on this behind the scenes, but you cannot rely on this any time soon. The only way to make this work for now, is by moving the ts compilation to a pre test step. So compile your ts to js and use those files to run your tests using karma. Once that is working, you should be able to enable Stryker as you're doing right now. |
Hmm what setup are you using? Angular 2 with the angular-cli? Or something else? |
Hi guys. |
Made some investigation,
I doubt that serializing helps at all, because content of apply function is:
What is I think need do load webpack config inside subprocess. |
Hi, facing the same issue, are there any news on this ? |
Solved using stryker with the compiled javascript code and not with the typescript code, in this way we are still getting 100% of killed mutants' score. |
@Pablodotnet , is there a reason why this issue is closed? It should really be able to run against the transplanted code but still use the source maps to point to the exact location in the original code where things have changed. Considering that Angular 2,4 and the upcoming 5 are all written in TS it would be more than useful to have that capability. |
Hi, I'm trying to use stryker on a project I'm working on, I tried first using it in a simple application that I have to test things like this, and it worked perfectly so I decided to apply it to a bigger project, this bigger project uses Webpack, below I'll paste my three configurations, stryker, karma and webpack and also the error I get.
stryker.conf.js:
karma.conf.js:
webpack.config.test.js:
Error Code:
The text was updated successfully, but these errors were encountered: