1
0
Fork 0

add a way to skip tests for deprecated packages

This commit is contained in:
Enoch Riese 2022-07-04 11:05:12 -05:00
parent 69210d2296
commit fcc4ae78b5
3 changed files with 8 additions and 2 deletions

View file

@ -14,6 +14,8 @@ customBuild:
- remark-jargon
- plugin-bundle
- utils
skipTests:
- theo
packageJson:
bee:
author: bobgeorgethe3rd (https://github.com/bobgeorgethe3rd)

View file

@ -31,12 +31,12 @@
"clean": "rimraf dist",
"mbuild": "NO_MINIFY=1 node build.js",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",
"test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register",
"test": "echo \"skipping tests for theo\"",
"vbuild": "VERBOSE=1 node build.js",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.js' 'config/*.js'",
"testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js",
"testci": "echo \"skipping tests for theo\"",
"cibuild_step5": "node build.js"
},
"peerDependencies": {

View file

@ -248,6 +248,10 @@ function packageJson(pkg) {
}
pkgConf.keywords = pkgConf.keywords.concat(keywords(pkg))
pkgConf.scripts = scripts(pkg)
if (repo.exceptions.skipTests.indexOf(pkg.name) !== -1) {
pkgConf.scripts.test = `echo "skipping tests for ${pkg.name}"`
pkgConf.scripts.testci = `echo "skipping tests for ${pkg.name}"`
}
pkgConf.dependencies = dependencies('_', pkg)
pkgConf.devDependencies = dependencies('dev', pkg)
pkgConf.peerDependencies = dependencies('peer', pkg)