-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instrumentation fails for strings containing urls #2402
Comments
I'll have a look at this issue tomorrow |
I can't reproduce this. Running on express crashes with this error:
If you then look at the file, ( it('should require a preceding /', function(done){
var app = express();
app.get('/file There the test ends. End of file. The problem is with the Disabling stripping of comments solves it: "sandbox": {
"stripComments": false
} We're using I was hoping that strip comments would (almost) always be safe to do. But I see it has some unfortunate side effects and now this bug. @brodybits isn't happy with this solution either (#2407). Any ideas on how to solve this issue better would be much appreciated. I'll open a new discussion issue and closing this one for now. |
Summary
This is a bug regarding Stryker 4 beta 3.
When instrumenting an object definition with as below:
Stryker throws the following error
This only happens with a URL string (including protocol) that is preceded by an empty string. When the second string does not contain
*://
this does not happen.Additional note. It does not matter if the empty string is nested. The following throws the same error:
Stryker config
Test runner config
Stryker environment
Test runner environment
Your Environment
Add stryker.log
stryker.log
The text was updated successfully, but these errors were encountered: