This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ gatsby git:(mutation) ✗ yarn test:mutate babel-preset-gatsby-package | |
yarn run v1.12.3 | |
$ node scripts/mutate.js babel-preset-gatsby-package | |
-> package: babel-preset-gatsby-package | |
Found 1 file to mutate. | |
14:13:59 (3703) INFO ConfigReader No config file specified. Running with command line arguments. | |
14:13:59 (3703) INFO ConfigReader Use `stryker init` command to generate your config file. | |
14:13:59 (3703) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/ollelauribostrom/Desktop/Sommar/gatsby/node_modules/@stryker-mutator | |
14:13:59 (3703) DEBUG PluginLoader Loading plugin "/Users/ollelauribostrom/Desktop/Sommar/gatsby/node_modules/@stryker-mutator/babel-transpiler" (matched with expression @stryker-mutator/*) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo: false | |
language: node_js | |
node_js: | |
- '8' | |
branches: | |
only: | |
- master | |
cache: | |
directories: | |
- node_modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"coveralls": "jest --coverage && cat ./tests/coverage/lcov.info | coveralls", | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function init() { | |
await import(/* webpackChunkName: "monaco-editor" */ "monaco-editor"); | |
ReactDOM.render(<App />, document.getElementById("app")); | |
await import(/* webpackChunkName: "monaco-languages" */ "monaco-editor"); | |
await registerLanguages(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
optimization: { | |
splitChunks: { | |
cacheGroups: { | |
editor: { | |
// Editor bundle | |
test: /[\\/]node_modules\/(monaco-editor\/esm\/vs\/(nls\.js|editor|platform|base|basic-languages|language\/(css|html|json|typescript)\/monaco\.contribution\.js)|style-loader\/lib|css-loader\/lib\/css-base\.js)/, | |
name: "monaco-editor", | |
chunks: "async" | |
}, | |
languages: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inRange from '../src/inRange'; | |
describe('{unit}: Testing inRange', () => { | |
it('should return true if in range', () => { | |
expect(inRange({ number: 5, low: 0, high: 10 })).toEqual(true); | |
}); | |
it('should return false if not in range', () => { | |
expect(inRange({ number: 1, low: 5, high: 10 })).toEqual(false); | |
}); | |
it('should include low value in range', () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inRange from '../src/inRange'; | |
describe('{unit}: Testing inRange', () => { | |
it('should return true if in range', () => { | |
expect(inRange({ number: 5, low: 0, high: 10 })).toEqual(true); | |
}); | |
it('should return false if not in range', () => { | |
expect(inRange({ number: 1, low: 5, high: 10 })).toEqual(false); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function inRange({ number, low, high }) { | |
return number >= low && number <= high; | |
} | |
export default inRange; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function assert(condition, message) { | |
if (condition) { | |
throw new Error(message); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function assert(condition, message) { | |
if (!condition) { | |
throw new Error(message); | |
} | |
} |
NewerOlder