Skip to content

Commit

Permalink
Add c8 and scripts for it
Browse files Browse the repository at this point in the history
  • Loading branch information
octet-stream committed Mar 5, 2023
1 parent d4c48ba commit b19fade
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["src/__helper__", "src/__macro__", "src/**/*.test.ts", "src/**/*.test.tsx"]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_modules

/@type
/lib
/coverage

# Unwanted lockfiles
yarn.lock
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"scripts": {
"lint:types": "tsc --noEmit",
"test": "ava",
"coverage": "c8 npm test",
"report": "c8 -r=html npm test",
"build": "microbundle --tsconfig tsconfig.build.json --jsx React.createElement --jsxFragment React.Fragment",
"cleanup": "del-cli @type lib"
},
Expand All @@ -35,6 +37,7 @@
"@types/react-dom": "18.0.11",
"@types/uuid": "^9.0.1",
"ava": "5.2.0",
"c8": "^7.13.0",
"del-cli": "^5.0.0",
"global-jsdom": "8.7.0",
"jsdom": "21.1.0",
Expand Down
145 changes: 145 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b19fade

Please sign in to comment.