1"use strict";(self.webpackChunkstryker_mutator_github_io=self.webpackChunkstryker_mutator_github_io||[]).push([["549"],{16979:function(e,t,r){r.r(t),r.d(t,{metadata:function(){return n},default:function(){return f},frontMatter:function(){return o},contentTitle:function(){return c},toc:function(){return a},assets:function(){return u}});var n=JSON.parse('{"id":"stryker-js/usage","title":"Usage","description":"The main command for Stryker is run, which kicks off mutation testing.","source":"@site/docs/stryker-js/usage.md","sourceDirName":"stryker-js","slug":"/stryker-js/usage","permalink":"/docs/stryker-js/usage","draft":false,"unlisted":false,"editUrl":"https://github.com/stryker-mutator/stryker-js/edit/master/docs/usage.md","tags":[],"version":"current","frontMatter":{"title":"Usage","custom_edit_url":"https://github.com/stryker-mutator/stryker-js/edit/master/docs/usage.md"},"sidebar":"docs","previous":{"title":"Getting started","permalink":"/docs/stryker-js/getting-started"},"next":{"title":"Config file","permalink":"/docs/stryker-js/config-file"}}'),s=r(94686),i=r(23191);let o={title:"Usage",custom_edit_url:"https://github.com/stryker-mutator/stryker-js/edit/master/docs/usage.md"},c,u={},a=[];function d(e){let t={a:"a",code:"code",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-sh",children:"npx stryker <command> [options] [configFile]\n"})}),"\n",(0,s.jsxs)(t.p,{children:["The main ",(0,s.jsx)(t.code,{children:"command"})," for Stryker is ",(0,s.jsx)(t.code,{children:"run"}),", which kicks off mutation testing."]}),"\n",(0,s.jsxs)(t.p,{children:["By default, Stryker will look for a ",(0,s.jsx)(t.code,{children:"stryker.config.json"}),", ",(0,s.jsx)(t.code,{children:"stryker.config.js"})," or ",(0,s.jsx)(t.a,{href:"/docs/stryker-js/config-file",children:"other variations"})," files in the current working directory (if it exists). This can be overridden by specifying a different file as the last argument."]}),"\n",(0,s.jsxs)(t.p,{children:["Before your first run, we recommend you try the ",(0,s.jsx)(t.code,{children:"init"})," command, which helps you to set up this config file and install any missing packages needed for your specific configuration. We recommend you verify the contents of the configuration file after this initialization, to make sure everything is setup correctly. Of course, you can still make changes to it, before you run Stryker for the first time."]})]})}function f(e={}){let{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},23191:function(e,t,r){r.d(t,{R:function(){return o},x:function(){return c}});var n=r(92990);let s={},i=n.createContext(s);function o(e){let t=n.useContext(i);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(i.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.