Closed wadehammes closed 1 year ago
For others that stumble on this, was as simple as adding "@vercel/analytics": "identity-obj-proxy",
to the moduleNameMapper.
const moduleNameMapper = {
...jestConfig.moduleNameMapper,
"swiper/react": "<rootDir>/node_modules/swiper",
"@vercel/analytics": "identity-obj-proxy",
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
};
Sneaky stuff that should be documented but is not. Thanks for the solution!
I'm getting this error in my Jest tests when trying to us
va.track
:Here is my jest.config.ts:
Any idea if this is something on my end?