Don't include src in the test resolve root
Don't include src in resolve root for the karma test, as otherwise modules from react sdk get pulled in instead of npm libraries like 'extend' which breaks everything in really subtle ways.
This commit is contained in:
parent
46bb29a3af
commit
ba8e37a84e
4 changed files with 3 additions and 4 deletions
|
@ -8,7 +8,7 @@ import * as testUtils from '../../../test-utils';
|
|||
import sdk from 'matrix-react-sdk';
|
||||
import UserSettingsStore from '../../../../src/UserSettingsStore';
|
||||
const MessageComposerInput = sdk.getComponent('views.rooms.MessageComposerInput');
|
||||
import MatrixClientPeg from 'MatrixClientPeg';
|
||||
import MatrixClientPeg from '../../../../src/MatrixClientPeg';
|
||||
|
||||
function addTextToDraft(text) {
|
||||
const components = document.getElementsByClassName('public-DraftEditor-content');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue