NX Sublime Coverage
No description provided
Labels code coverage
Details
Installs
- Total 125
- Win 0
- Mac 97
- Linux 28
Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
NX Coverage
Combined code from JS Coverage Plugin with Atom lcov-info to build this plugin.
Highlights uncovered lines in the current file based on a previous coverage run.
Display highlights: Super + Shift + C
Remove highlights: Super + Shift + C + X
Plugin tries to find the latest coverage report in a closest “coverage” directory.
Configuration
We can also configure your where the plugin is going to look for coverage the information. Just go to Preferences > Package Settings > NX Coverage > Settings - User. The configuration should look something like:
{
"coverageDir": "my_custom_coverage_dir"
}
Jest configuration
Jest has a coverage tool integrated, it is just hidden behind a flag “bash $ jest –coverage
Jest configuration should output to the coverage directory, the following configuration has typescript support as well
```javascript
module.exports = {
testEnvironment: 'node',
transform: {
'.(ts|tsx)': '<rootDir>/node_modules/ts-jest/preprocessor.js'
},
clearMocks: true,
bail: true,
mapCoverage: true,
modulePaths: [
"src",
"node_modules"
],
moduleDirectories: [
"node_modules",
"<rootDir>/src"
],
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx'
],
testRegex: '/src/.*\.spec\.[tj]sx?$',
coverageDirectory: 'coverage',
collectCoverageFrom: [
'lib/**/*.{ts,tsx,js,jsx}'
],
}