Skip to content

Commit

Permalink
Added missed require statements (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skorney authored and ccpricenytimes committed Mar 10, 2017
1 parent 72acb8e commit 99ac96f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ In `kyt.config.js`
```javascript
modifyWebpackConfig: (baseConfig, options) => {
baseConfig.resolve.alias = {
'myAliasFolder': path.resolve(process.cwd(), './src/path/to/my/folder'),
'myAliasFolder': require('path').resolve(process.cwd(), './src/path/to/my/folder'),
}
return baseConfig;
}
Expand Down Expand Up @@ -109,7 +109,7 @@ modifyJestConfig: (baseConfig) => {
// always mock Relay (react-relay) for tests
jestConfig.moduleNameMapper = Object.assign({}, jestConfig.moduleNameMapper,
{
'react-relay': path.resolve(__dirname, '__mocks__/react-relay.js'),
'react-relay': require('path').resolve(__dirname, '__mocks__/react-relay.js'),
}
);

Expand Down

0 comments on commit 99ac96f

Please sign in to comment.