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