Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- When I run Jest in my plugin, if any code that imports `registerBlockType` is imported, I get this error:
- ```
- ● Test suite failed to run
- /Users/josh/caldera-dev/caldera-wordpress-plugin/node_modules/simple-html-tokenizer/dist/es6/tokenizer.js:1
- ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import EventedTokenizer from './evented-tokenizer';
- ^^^^^^
- SyntaxError: Unexpected token import
- at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/ScriptTransformer.js:289:17)
- at Object.<anonymous> (node_modules/@wordpress/blocks/build/api/validation.js:33:41)
- at Object.<anonymous> (node_modules/@wordpress/blocks/build/api/parser.js:38:19)
- ```
Add Comment
Please, Sign In to add comment