"use strict";

module.exports = {
  coveragePathIgnorePatterns: ["/node_modules/", "/test/", "/dist/"],
  coverageThreshold: {
    global: {
      branches: 55,
      functions: 95,
      statements: 60
    }
  },
  moduleFileExtensions: ["js", "json", "vue"],
  moduleNameMapper: {
    "^sulcalc$": "<rootDir>/src/index",
    "^sulcalc/(.*)$": "<rootDir>/src/$1",
    "^app$": "<rootDir>/app/index",
    "^app/(.*)$": "<rootDir>/app/$1",
    "^package$": "<rootDir>/package.json"
  },
  transform: {
    "^.+\\.js$": "<rootDir>/node_modules/babel-jest",
    "^.+\\.vue$": "<rootDir>/node_modules/vue-jest"
  }
};

@@ -27,16 +27,181 @@
 rts = %7B%0A
+  collectCoverageFrom: %5B%0A    %22%3CrootDir%3E/app/**/*.%7Bjs,vue%7D%22,%0A    %22%3CrootDir%3E/src/**/*.%7Bjs,vue%7D%22,%0A    %22!**/node_modules/**%22,%0A    %22!**/dist/**%22,%0A    %22!**/*.test.*%22%0A  %5D,%0A
   covera
@@ -244,18 +244,8 @@
 s/%22,
- %22/test/%22,
  %22/d
@@ -283,14 +283,15 @@
     
-global
+%22./src%22
 : %7B%0A
@@ -354,68 +354,250 @@
 s: 6
-0
+5
 %0A    %7D
-%0A  %7D,%0A  moduleFileExtensions: %5B%22js%22, %22json%22, %22vue
+,%0A    %22./app%22: %7B%0A      branches: 50,%0A      functions: 55,%0A      statements: 50%0A    %7D%0A  %7D,%0A  projects: %5B%0A    %7B%0A      displayName: %22sulcalc%22,%0A      testEnvironment: %22node%22,%0A      testMatch: %5B%22%3CrootDir%3E/src/**/*.(spec%7Ctest).js?(x)
 %22%5D,%0A
+    
   mo
@@ -610,24 +610,28 @@
 meMapper: %7B%0A
+    
     %22%5Esulcal
@@ -658,24 +658,28 @@
 index%22,%0A    
+ 
+   
 %22%5Esulcalc/(.
@@ -712,31 +712,301 @@
     
-%22%5Eapp$%22: %22%3CrootDir%3E/app
+    %22%5Epackage$%22: %22%3CrootDir%3E/package.json%22%0A      %7D%0A    %7D,%0A    %7B%0A      displayName: %22app%22,%0A      testEnvironment: %22jsdom%22,%0A      testMatch: %5B%22%3CrootDir%3E/app/**/*.(spec%7Ctest).js?(x)%22%5D,%0A      moduleFileExtensions: %5B%22js%22, %22json%22, %22vue%22%5D,%0A      moduleNameMapper: %7B%0A        %22%5Esulcalc$%22: %22%3CrootDir%3E/src
 /ind
@@ -1018,13 +1018,21 @@
     
+ 
-%22%5Eapp
+   %22%5Esulcalc
 /(.*
@@ -1051,17 +1051,21 @@
 ir%3E/
-app
+src
 /$1%22,%0A
+    
     
@@ -1104,19 +1104,27 @@
 json%22%0A  
-%7D,%0A
+    %7D,%0A    
   transf
@@ -1126,24 +1126,28 @@
 ransform: %7B%0A
+    
     %22%5E.+%5C%5C.j
@@ -1188,24 +1188,28 @@
 -jest%22,%0A    
+ 
+   
 %22%5E.+%5C%5C.vue$%22
@@ -1246,13 +1246,27 @@
 jest%22%0A  
-%7D
+    %7D%0A    %7D%0A  %5D
 %0A%7D;%0A

split jest.config.js to use projects for src and app