diff --git a/jest.config.js b/jest.config.js index 5b10496..0e24ce9 100644 --- a/jest.config.js +++ b/jest.config.js @@ -9,6 +9,9 @@ module.exports = { customExportConditions: ["node", "node-addons"], }, moduleFileExtensions: ['js', 'json', 'ts', 'vue'], + moduleNameMapper: { + '^@/(.*)$': '/src/$1' + }, transform: { '^.+\\.vue$': '@vue/vue3-jest', '^.+\\.js$': 'babel-jest'