File tree Expand file tree Collapse file tree 2 files changed +34
-13
lines changed
packages/coverage-istanbul Expand file tree Collapse file tree 2 files changed +34
-13
lines changed Original file line number Diff line number Diff line change 1
- # Rslib project
1
+ <picture >
2
+ <img alt =" Rstest Banner " src =" https://assets.rspack.rs/rstest/rstest-banner.png " >
3
+ </picture >
2
4
3
- ## Setup
5
+ # @ rstest/coverage-istanbul
4
6
5
- Install the dependencies:
7
+ [ Istanbul] ( https://istanbul.js.org/ ) coverage provider for Rstest.
8
+
9
+ ## Install
6
10
7
11
``` bash
8
- pnpm install
12
+ npm add @rstest/coverage-istanbul -D
9
13
```
10
14
11
- ## Get started
15
+ ## Usage
12
16
13
- Build the library :
17
+ Enable coverage collection in ` rstest.config.ts ` :
14
18
15
- ``` bash
16
- pnpm build
17
- ```
19
+ ``` ts
20
+ import { defineConfig } from ' @rstest/core' ;
18
21
19
- Build the library in watch mode:
20
-
21
- ``` bash
22
- pnpm dev
22
+ export default defineConfig ({
23
+ coverage: {
24
+ enabled: true ,
25
+ provider: ' istanbul' ,
26
+ },
27
+ });
23
28
```
Original file line number Diff line number Diff line change 19
19
"build" : " rslib build" ,
20
20
"dev" : " rslib build --watch"
21
21
},
22
+ "peerDependencies" : {
23
+ "@rstest/core" : " workspace:~"
24
+ },
22
25
"dependencies" : {
23
26
"swc-plugin-coverage-instrument" : " ^0.0.31" ,
24
27
"istanbul-lib-coverage" : " ^3.2.2" ,
34
37
"@types/istanbul-lib-coverage" : " ^2.0.6" ,
35
38
"@types/istanbul-lib-report" : " ^3.0.3" ,
36
39
"@types/istanbul-reports" : " ^3.0.4"
40
+ },
41
+ "keywords" : [
42
+ " rstest" ,
43
+ " coverage" ,
44
+ " istanbul"
45
+ ],
46
+ "bugs" : {
47
+ "url" : " https://github.com/web-infra-dev/rstest/issues"
48
+ },
49
+ "repository" : {
50
+ "type" : " git" ,
51
+ "url" : " https://github.com/web-infra-dev/rstest" ,
52
+ "directory" : " packages/coverage-istanbul"
37
53
}
38
54
}
You can’t perform that action at this time.
0 commit comments