question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong indents in stryker.conf.js file after stryker init command

See original GitHub issue

Hi!

Right after stryker init command executed successfully I get this code in stryker.conf.js:

svlad at sharikovvlad in ~/sandbox/test-stryker
$ cat stryker.conf.js

  module.exports = function(config){
    config.set(
      {
  "files": [
    {
      "pattern": "src/**/*.js",
      "mutated": true,
      "included": false
    },
    "test/**/*.js"
  ],
  "testRunner": "jest",
  "reporter": [
    "clear-text",
    "progress"
  ],
  "coverageAnalysis": "all"
}
    );
  }
svlad at sharikovvlad in ~/sandbox/test-stryker
$

All indents are saved.

Why don’t you use some format tool when creating the config file?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
simondelcommented, Sep 6, 2017

@sharikovvladislav It works like a charm! Thanks for the hard work! image

0reactions
sharikovvladislavcommented, Sep 3, 2017

@nicojs ok, done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make stryker config file mandatory · Issue #390 - GitHub
Running stryker with command line options won't read a stryker.conf.js file. This results in unexpacted behavior, for example:.
Read more >
stryker-mutator/core/CHANGELOG.md - UNPKG
The CDN for @stryker-mutator/core. ... 1434, * **init command:** indent "stryker.conf.js" file after "stryker init" ...
Read more >
stryker | Yarn - Package Manager
By default, Stryker will look for a stryker.conf.js file in the current working directory (if it exists). This can be overridden by specifying...
Read more >
stryker-mutator/stryker - Gitter
How do we setup stryker for both angular and node js if they're in the same folder. Can i add two configs to...
Read more >
How do I fix incorrect inline Javascript indentation in Vim?
It does the same if I re-indent the whole file. How do I get it to automatically indent using the more standard JS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found