You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
],
moduleFileExtensions: [
'vue',
'js',
'jsx',
'ts',
'tsx',
'json',
'node',
],
resetMocks: true,
};
` This is the address of the package. Are there two node_comodules causing Jest to not find this file?
Hi, @SeTioss, first we need to determine if this is an extension issue or a jest config issue: Can you run jest CLI directly from a terminal? Does it work? If it works in a terminal, then it should work with the extension.
[>]hi! Guys, why can I find this file when I run dev, but I can't find it when testing with jest
This is my jest.config
`module.exports = {
roots: [
'/src'
],
testMatch: [
'/src//tests//.{vue,js,jsx,ts,tsx}',
'/src/**/.{spec,test}.{vue,js,jsx,ts,tsx}',
],
moduleNameMapper: {
'^@/(.*)$': '/src/$1',
"\.(css|less|scss|sass)$": "identity-obj-proxy",
"\.(jpg|jpeg|png|gif|svg)$": "/mocks/fileMock.js",
},
testEnvironment: 'jsdom',
transform: {
'^.+\.(vue)$': '/node_modules/vue-jest',
'^.+\.ts$': 'ts-jest',
'^.+\.(js|jsx|mjs|cjs|ts|tsx)$': 'babel-jest',
'^.+\.js$': 'babel-jest'
},
transformIgnorePatterns: [
],
moduleFileExtensions: [
'vue',
'js',
'jsx',
'ts',
'tsx',
'json',
'node',
],
resetMocks: true,
};
`
This is the address of the package. Are there two node_comodules causing Jest to not find this file?
/node_modules.pnpm\[email protected][email protected]_@[email protected]@1.77.8 [email protected]_s4qqz6wlzfvghujxi4wiatvzym\node modules\vite-plugin-vue-meta-layouts\client.d.ts
The text was updated successfully, but these errors were encountered: