mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-17 19:26:23 +00:00
add c8 coverage
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -22,4 +22,5 @@ jobs:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm install
|
||||
- run: npm run build --if-present
|
||||
- run: npm run test:io
|
||||
- run: npm run test.unit
|
||||
- run: npm run test.coverage
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"cli": "node ./packages/cli/bin/cli.js",
|
||||
"cli:rollup": "rollup ./packages/cli/index.js --config ./packages/cli/rollup-cli.config.js",
|
||||
"io:rollup": "rollup ./packages/io/index.js --config ./packages/io/rollup-cli.config.js",
|
||||
"test:io": "node ./node_modules/uvu/bin.js ./packages/io/tests"
|
||||
"test.unit": "node ./node_modules/uvu/bin.js packages test",
|
||||
"test.coverage": "node ./node_modules/c8/bin/c8.js --check-coverage --lines=90 npm run test.unit"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/cli",
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
const { addKeyword, addAnswer } = require('./methods')
|
||||
module.exports = { addKeyword, addAnswer }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user