Issue testing code with plasmo/storage dependancies with Jest
The dependancy that plasmo/storage has on pify causes any jest tests that touch that code to fail with an error
Jest encountered an unexpected token
Details:
ext/node_modules/.pnpm/[email protected]/node_modules/pify/index.js:37
export default function pify(input, options) {
^^^^^^
Googling around it looks like this is should be addressed by adding
transformIgnorePatterns: [
"node_modules/(?!pify)"
]
to my jest.config.mjs but I am having no luck and going crazy!
0 Replies