-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Jest for unit testing as Cypress doesn't support good Unit testing yet. All Cypress test except the Peer Connection are now on localhost to improve CI testing. Small decrease in percentage as pnp.js is lesser tested in e2e tests now.
- Loading branch information
1 parent
e2bbe7e
commit 33b853c
Showing
8 changed files
with
4,936 additions
and
1,951 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,17 +1,33 @@ | ||
module.exports = { | ||
root: true, | ||
|
||
env: { | ||
node: true | ||
}, | ||
|
||
extends: [ | ||
'plugin:vue/strongly-recommended', | ||
'@vue/standard' | ||
], | ||
|
||
rules: { | ||
'no-console': 'off', | ||
'no-debugger': 'off' | ||
}, | ||
|
||
parserOptions: { | ||
parser: 'babel-eslint' | ||
} | ||
}, | ||
|
||
overrides: [ | ||
{ | ||
files: [ | ||
'**/__tests__/*.{j,t}s?(x)', | ||
'**/tests/unit/**/*.spec.{j,t}s?(x)' | ||
], | ||
env: { | ||
jest: true | ||
} | ||
} | ||
] | ||
} |
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
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
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
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,25 @@ | ||
module.exports = { | ||
verbose: true, | ||
moduleNameMapper: { | ||
"module_name_(.*)": "<rootDir>/src/$1" | ||
}, | ||
moduleFileExtensions: [ | ||
"js", | ||
"json", | ||
"vue" | ||
], | ||
transform: { | ||
".*\\.(vue)$": "vue-jest", | ||
"^.+\\.js$": "<rootDir>/node_modules/babel-jest" | ||
}, | ||
collectCoverage: true, | ||
collectCoverageFrom: [ | ||
"src\\*.{js,vue}", | ||
"!**/node_modules/**" | ||
], | ||
coverageReporters: [ | ||
"html", | ||
"text-summary" | ||
], | ||
preset: '@vue/cli-plugin-unit-jest' | ||
} |
Oops, something went wrong.