diff --git a/template/test/unit/jest.conf.js b/template/test/unit/jest.conf.js
index c524e9d7bd..672f9cf354 100644
--- a/template/test/unit/jest.conf.js
+++ b/template/test/unit/jest.conf.js
@@ -17,6 +17,7 @@ module.exports = {
   testPathIgnorePatterns: [
     '<rootDir>/test/e2e'
   ],{{/e2e}}
+  testURL: 'http://localhost',
   snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
   setupFiles: ['<rootDir>/test/unit/setup'],
   mapCoverage: true,