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
| npm install jest enzyme --save-dev |
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
| jest.genMockFromModule(moduleName) | |
| jest.mock(moduleName, factory, options) | |
| jest.unmock(moduleName) | |
| jest.dontMock(moduleName) | |
| jest.clearAllMocks() | |
| jest.resetAllMocks() | |
| jest.setMock(moduleName, moduleExports) | |
| jest.spyOn(object, methodName) |
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
| const fs = require('fs'); | |
| const getBootstraprcCustomLocation = () => { | |
| return process.env.BOOTSTRAPRC_LOCATION; | |
| }; | |
| const bootstraprcCustomLocation = getBootstraprcCustomLocation(); | |
| let defaultBootstraprcFileExists; |
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
| module.exports = { | |
| // Default for the style loading | |
| styleLoader: 'style-loader!css-loader!sass-loader', | |
| styles: { | |
| mixins: true, | |
| 'bordered-pulled': true, | |
| core: true, | |
| 'fixed-width': true, | |
| icons: true, |
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
| const webpack = require('webpack'); | |
| const path = require('path'); | |
| const TransferWebpackPlugin = require('transfer-webpack-plugin'); | |
| const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| module.exports = { | |
| devtool: 'eval', | |
| entry: [ | |
| 'webpack/hot/only-dev-server', | |
| './client/app.jsx' |
OlderNewer