Add tests

This commit is contained in:
Tom Hu
2021-01-02 17:50:17 -05:00
parent 56353bc0f0
commit c0466185ef
6 changed files with 791 additions and 213 deletions

View File

@@ -1,14 +1,14 @@
{
"name": "codecov-action",
"version": "1.1.1",
"version": "1.2.0",
"description": "Upload coverage reports to Codecov from GitHub Actions",
"main": "index.js",
"scripts": {
"test": "jest --coverage",
"test-calculator": "jest --testPathPattern=src/calculator/ --coverage --coverageDirectory=coverage/calculator",
"test-index": "jest --testPathPattern=src/index --coverage --coverageDirectory=coverage/index",
"test-all": "yarn run test && yarn run test-calculator && yarn run test-index",
"build": "ncc build index.js"
"test-all": "yarn run test && yarn run test-calculator && yarn run test-index && eslint",
"build": "ncc build src/index.ts"
},
"repository": {
"type": "git",
@@ -35,5 +35,7 @@
"typescript": "^4.1.3",
"yarn": "^1.22.10"
},
"devDependencies": {}
"devDependencies": {
"eslint": "^7.17.0"
}
}