diff --git a/themes/10up-theme/.eslintrc b/themes/10up-theme/.eslintrc index f9985ee2..2b588d41 100644 --- a/themes/10up-theme/.eslintrc +++ b/themes/10up-theme/.eslintrc @@ -1,3 +1,9 @@ { - "extends": ["@10up/eslint-config/wordpress"] + "settings": { + "jest": { + "version": 25, + "react": 17 + } + }, + "extends": ["@10up/eslint-config/wordpress", "@10up/eslint-config/jest"] } diff --git a/themes/10up-theme/__mocks__/@wordpress/block-editor.js b/themes/10up-theme/__mocks__/@wordpress/block-editor.js new file mode 100644 index 00000000..6a695ee3 --- /dev/null +++ b/themes/10up-theme/__mocks__/@wordpress/block-editor.js @@ -0,0 +1,6 @@ +/* eslint-disable react/prop-types */ +const RichText = ({ onChange }) =>