2.0.0 • Published 4 years ago
@start/plugin-lib-istanbul v2.0.0
💯 plugin-lib-istanbul
Collect, report and check code coverage using Istanbul.
Install
$ yarn add --dev @start/plugin-lib-istanbul
Usage
Signature
istanbulInstrument(extensions?: string[])
options
extensions
File extensions to instrument, for example ['.ts']
import type { ReportType } from 'istanbul-reports'
istanbulReports(formats: ReportType[] = ['lcovonly', 'text-summary'])
istanbulThresholds(options: {
branches?: number,
functions?: number,
lines?: number,
statements?: number
})
Example
import sequence from '@start/plugin-sequence'
import find from '@start/plugin-find'
import {
istanbulInstrument,
istanbulReport,
istanbulThresholds
} from '@start/plugin-lib-istanbul'
import tape from '@start/plugin-lib-tape'
export const task = () =>
sequence(
find('src/**/*.js'),
istanbulInstrument(),
find('test/**/*.js'),
tape(),
istanbulReport(['lcovonly', 'html', 'text-summary']),
istanbulThresholds({ functions: 100 })
)
2.0.0
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.8.0
4 years ago
0.7.0
5 years ago
0.6.0
5 years ago
0.5.1
5 years ago
0.5.0
5 years ago
0.4.2
6 years ago
0.4.1
6 years ago
0.4.0
6 years ago
0.3.0
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.1.0-4
6 years ago
0.1.0-3
6 years ago
0.1.0-2
6 years ago
0.1.0-1
6 years ago
0.1.0-0
6 years ago