Make sure we only have one React in tests
Otherwise if we symlink in react-gemini-scrollbar, React gets very confused
This commit is contained in:
parent
267bf10e69
commit
66966eecf8
1 changed files with 5 additions and 0 deletions
|
@ -147,6 +147,11 @@ module.exports = function (config) {
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
|
// alias any requires to the react module to the one in our
|
||||||
|
// path, otherwise we tend to get the react source included
|
||||||
|
// twice when using npm link.
|
||||||
|
react: path.resolve('./node_modules/react'),
|
||||||
|
|
||||||
'matrix-react-sdk': path.resolve('test/skinned-sdk.js'),
|
'matrix-react-sdk': path.resolve('test/skinned-sdk.js'),
|
||||||
'sinon': 'sinon/pkg/sinon.js',
|
'sinon': 'sinon/pkg/sinon.js',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue