Skip to content

Commit

Permalink
fix: c8 coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Dec 28, 2023
1 parent d784cea commit c731be8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"release": "lerna publish",
"test": "cross-env ./scripts/prepare.sh",
"test_once": "cross-env ./scripts/prepare.sh v3/midway-serverless-http-new-esm",
"test_once": "cross-env ./scripts/prepare.sh v3/midway-serverless-http-new",
"build": "lerna run build"
},
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@midwayjs/core": "^3.12.0",
"@midwayjs/faas": "^3.12.0",
"@midwayjs/fc-starter": "^3.12.0",
"@midwayjs/logger": "^2.0.0"
"@midwayjs/logger": "^3.1.0"
},
"devDependencies": {
"@midwayjs/mock": "^3.12.0",
Expand Down
1 change: 0 additions & 1 deletion v3/midway-serverless-http-new/boilerplate/_.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"extension": ["ts"],
"node-option": ["no-warnings", "loader=ts-node/register"],
"spec": ["test/**/*.test.ts"],
"require": ["test/setup.ts"]
}
7 changes: 4 additions & 3 deletions v3/midway-serverless-http-new/boilerplate/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"version": "1.0.0",
"description": "Midway Serverless for the Serverless environment",
"type": "commonjs",
"main": "index.js",
"license": "MIT",
"keywords": [
Expand All @@ -11,8 +12,8 @@
],
"scripts": {
"dev": "cross-env NODE_ENV=local mwtsc --watch --run @midwayjs/mock/function --port 7001",
"test": "cross-env NODE_ENV=unittest mocha",
"cov": "cross-env c8 --all --reporter=text --reporter=lcovonly npm run test",
"test": "cross-env NODE_ENV=unittest node -r ts-node/register ./node_modules/.bin/mocha",
"cov": "cross-env c8 --include src --all --reporter=text --reporter=lcovonly npm run test",
"deploy": "",
"lint": "mwts check",
"lint:fix": "mwts fix",
Expand All @@ -23,7 +24,7 @@
"@midwayjs/core": "^3.12.0",
"@midwayjs/faas": "^3.12.0",
"@midwayjs/fc-starter": "^3.12.0",
"@midwayjs/logger": "^2.0.0"
"@midwayjs/logger": "^3.1.0"
},
"devDependencies": {
"@midwayjs/mock": "^3.12.0",
Expand Down

0 comments on commit c731be8

Please sign in to comment.