kopia lustrzana https://github.com/wagtail/wagtail
Fix console errors in Draftail tests
rodzic
2fb27ed018
commit
f714f8d219
client/src/entrypoints/admin
|
@ -116,6 +116,8 @@ describe('importing the module multiple times', () => {
|
|||
|
||||
// Subsequent imports (e.g. in AJAX responses)
|
||||
jest.isolateModules(() => {
|
||||
// Ensure stubs are loaded in the new isolated context
|
||||
require('../../../tests/stubs');
|
||||
require('./draftail');
|
||||
});
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue