test: Establish coverage baseline
MODIFY
package.json
package.json
},
"scripts": {
"clean": "lerna clean",
+ "cover": "lerna run cover",
"depcheck": "node scripts/check-mismatched-dependencies.js",
"update": "lernaupdate --dedupe",
"prettier": "lerna run prettier",

MODIFY
packages/base64/package.json
packages/base64/package.json
},
"scripts": {
"build": "exit 0",
+ "cover": "c8 --check-coverage --lines 90 --functions 100 --branches 75 ava",
"lint": "yarn lint:types && yarn lint:js",
"lint-fix": "eslint --fix '**/*.js'",
"lint:js": "eslint '**/*.js'",
"@endo/eslint-config": "^0.3.11",
"ava": "^3.12.1",
"babel-eslint": "^10.0.3",
+ "c8": "^7.7.3",
"eslint": "^7.23.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.9.0",

MODIFY
packages/cjs-module-analyzer/package.json
packages/cjs-module-analyzer/package.json
},
"scripts": {
"build": "exit 0",
+ "cover": "c8 --check-coverage --lines 95 --functions 100 --branches 70 ava",
"lint": "yarn lint:types && yarn lint:js",
"lint-fix": "eslint --fix '**/*.js'",
"lint:js": "eslint '**/*.js'",
"@endo/eslint-config": "^0.3.11",
"ava": "^3.12.1",
"babel-eslint": "^10.0.3",
+ "c8": "^7.7.3",
"eslint": "^7.23.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.9.0",

MODIFY
packages/compartment-mapper/package.json
packages/compartment-mapper/package.json
},
"scripts": {
"build": "exit 0",
+ "cover": "c8 --check-coverage --lines 90 --functions 90 --branches 75 ava",
"lint": "yarn lint:types && yarn lint:js",
"lint-fix": "eslint --fix '**/*.js'",
"lint:js": "eslint '**/*.js'",
"@endo/eslint-config": "^0.3.11",
"ava": "^3.12.1",
"babel-eslint": "^10.0.3",
+ "c8": "^7.7.3",
"eslint": "^7.23.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.9.0",

MODIFY
packages/endo/package.json
packages/endo/package.json
"type": "module",
"scripts": {
"build": "exit 0",
+ "cover": "c8 --check-coverage --lines 95 --functions 95 --branches 95 ava",
"lint": "yarn lint:types && yarn lint:js",
"lint-fix": "eslint --fix '**/*.js'",
"lint:js": "eslint '**/*.js'",
"@endo/eslint-config": "^0.3.11",
"ava": "^3.12.1",
"babel-eslint": "^10.0.3",
+ "c8": "^7.7.3",
"eslint": "^7.23.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.9.0",

MODIFY
packages/netstring/package.json
packages/netstring/package.json
},
"scripts": {
"build": "exit 0",
+ "cover": "c8 --check-coverage --lines 85 --functions 80 --branches 55 ava",
"lint": "yarn lint:types && yarn lint:js",
"lint-fix": "eslint --fix '**/*.js'",
"lint:js": "eslint '**/*.js'",
"@endo/eslint-config": "^0.3.11",
"ava": "^3.12.1",
"babel-eslint": "^10.0.3",
+ "c8": "^7.7.3",
"eslint": "^7.23.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.9.0",

MODIFY
packages/ses-ava/package.json
packages/ses-ava/package.json
},
"scripts": {
"build": "exit 0",
+ "cover": "c8 --check-coverage --lines 95 --functions 95 --branches 95 ava",
"lint": "yarn lint:types && yarn lint:js",
"lint-fix": "eslint --fix '**/*.js'",
"lint:js": "eslint '**/*.js'",
"@endo/eslint-config": "^0.3.11",
"ava": "^3.12.1",
"babel-eslint": "^10.0.3",
+ "c8": "^7.7.3",
"eslint": "^7.23.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.9.0",

MODIFY
packages/ses/package.json
packages/ses/package.json
"scripts": {
"build": "node scripts/bundle.js",
"clean": "rm -rf dist",
+ "cover": "c8 --check-coverage --lines 80 --functions 76 --branches 77 ava",
"demo": "http-server -o /demos",
"lint": "yarn lint:types && yarn lint:js",
"lint-fix": "eslint --fix '**/*.js'",
"@endo/test262-runner": "^0.1.5",
"ava": "^3.12.1",
"babel-eslint": "^10.0.3",
+ "c8": "^7.7.3",
"eslint": "^7.23.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.9.0",

MODIFY
packages/static-module-record/package.json
packages/static-module-record/package.json
},
"scripts": {
"build": "exit 0",
+ "cover": "c8 --check-coverage --lines 85 --functions 95 --branches 85 ava",
"lint": "yarn lint:types && yarn lint:js",
"lint:types": "tsc --build jsconfig.json",
"lint:js": "eslint '**/*.js'",
"@endo/ses-ava": "^0.2.4",
"ava": "^3.12.1",
"babel-eslint": "^10.0.3",
+ "c8": "^7.7.3",
"eslint": "^7.23.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.9.0",

MODIFY
packages/syrup/package.json
packages/syrup/package.json
},
"scripts": {
"build": "exit 0",
+ "cover": "c8 --check-coverage --lines 85 --functions 100 --branches 75 ava",
"lint": "yarn lint:types && yarn lint:js",
"lint-fix": "eslint --fix '**/*.js'",
"lint:js": "eslint '**/*.js'",
"@endo/eslint-config": "^0.3.11",
"ava": "^3.12.1",
"babel-eslint": "^10.0.3",
+ "c8": "^7.7.3",
"eslint": "^7.23.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.9.0",

MODIFY
packages/zip/package.json
packages/zip/package.json
},
"scripts": {
"build": "exit 0",
+ "cover": "c8 --check-coverage --lines 92 --functions 86 --branches 81 ava",
"lint": "yarn lint:types && yarn lint:js",
"lint-fix": "eslint --fix '**/*.js'",
"lint:js": "eslint '**/*.js'",
"@endo/eslint-config": "^0.3.11",
"ava": "^3.12.1",
"babel-eslint": "^10.0.3",
+ "c8": "^7.7.3",
"eslint": "^7.23.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.9.0",

test: Establish coverage baseline