-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* installed @babel/runtime for regenerator-runtime * added dummy test * configured jest (transforms, ignore patterns, module mapper @/, jest-transform-stub)
- Loading branch information
1 parent
015f69b
commit aaf643b
Showing
5 changed files
with
24,132 additions
and
12,303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset' | ||
|
||
presets: ["@babel/preset-env"], | ||
|
||
env: { | ||
test: { | ||
plugins: ["@babel/plugin-transform-runtime"] | ||
} | ||
}, | ||
|
||
plugins: [ | ||
["@babel/transform-runtime"] | ||
] | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
module.exports = { | ||
|
||
verbose: true, | ||
|
||
testEnvironment: 'jsdom', | ||
|
||
moduleFileExtensions: [ | ||
'js', | ||
'json', | ||
'vue' | ||
], | ||
|
||
moduleNameMapper: { | ||
"^.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub", | ||
// enable import beginning with @/ - as reference to <root>/src/ folder | ||
"^@/(.*)$": "<rootDir>/src/$1" | ||
}, | ||
|
||
modulePathIgnorePatterns: [ | ||
'<rootDir>/build/', | ||
'<rootDir>/dist/', | ||
'<rootDir>/coverage/' | ||
], | ||
|
||
transform: { | ||
'.*\\.(vue)$': 'vue-jest', | ||
'.*\\.(js)$': 'babel-jest' | ||
}, | ||
|
||
collectCoverage: true, | ||
collectCoverageFrom: ['src/**/*.{js,vue}', '!**/node_modules/**'], | ||
coveragePathIgnorePatterns: [], | ||
coverageThreshold: { | ||
global: { | ||
branches: 100, | ||
functions: 100, | ||
lines: 100, | ||
statements: 100 | ||
} | ||
}, | ||
|
||
} |
Oops, something went wrong.