diff --git a/components/mention/__tests__/demo.test.js b/components/mention/__tests__/demo.test.js index 22a6524f8a..2876c67f97 100644 --- a/components/mention/__tests__/demo.test.js +++ b/components/mention/__tests__/demo.test.js @@ -2,6 +2,4 @@ import demoTest from '../../../tests/shared/demoTest'; jest.mock('draft-js/lib/generateRandomKey', () => () => '123'); -if (process.env.LIB_DIR !== 'dist') { - demoTest('mention'); -} +demoTest('mention', { skip: process.env.LIB_DIR === 'dist' });