about summary refs log tree commit diff
path: root/jest.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js
new file mode 100644
index 0000000..efc0e6e
--- /dev/null
+++ b/jest.config.js
@@ -0,0 +1,17 @@
+module.exports = {
+  moduleNameMapper: {
+    '^@/(.*)$': '<rootDir>/$1',
+    '^~/(.*)$': '<rootDir>/$1',
+    '^vue$': 'vue/dist/vue.common.js'
+  },
+  moduleFileExtensions: ['js', 'vue', 'json'],
+  transform: {
+    '^.+\\.js$': 'babel-jest',
+    '.*\\.(vue)$': 'vue-jest'
+  },
+  'collectCoverage': true,
+  'collectCoverageFrom': [
+    '<rootDir>/components/**/*.vue',
+    '<rootDir>/pages/**/*.vue'
+  ]
+}