about summary refs log tree commit diff
path: root/jest.config.js
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-08-30 10:08:13 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-08-30 10:08:13 +0200
commit768b047e89f419deca3ddd00af7cb75209de97b6 (patch)
tree2e94259cc97a4370897278b6845ce5a7ddf31629 /jest.config.js
parentcef8ab49453e4ce8a2e19de4e27862b059f7d9d9 (diff)
downloadpuszcza-768b047e89f419deca3ddd00af7cb75209de97b6.tar.gz
puszcza-768b047e89f419deca3ddd00af7cb75209de97b6.zip
Move to nuxtjs
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'
+  ]
+}