mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-16 04:04:06 +02:00
Jest testing for slate-react (#4459)
* initial skeleton for jest testing * run in serial mocha, then jest on slate-react only * run-s without glob patterns https://github.com/yarnpkg/berry/issues/22 * don't run mocha on slate-react package * use yarn run instead of run-s
This commit is contained in:
@@ -9,7 +9,7 @@ describe('slate-react', () => {
|
||||
describe('Editable', () => {
|
||||
describe('decorate', () => {
|
||||
// stub out some DOM stuff to avoid crashes
|
||||
before(() => {
|
||||
beforeEach(() => {
|
||||
const jsdom = new JSDOM()
|
||||
global.window = jsdom.window
|
||||
global.document = jsdom.window.document
|
||||
|
Reference in New Issue
Block a user