diff --git a/config/exceptions.yaml b/config/exceptions.yaml index dcfc887207f..9f97a97bb03 100644 --- a/config/exceptions.yaml +++ b/config/exceptions.yaml @@ -14,6 +14,8 @@ customBuild: - remark-jargon - plugin-bundle - utils +skipTests: + - theo packageJson: bee: author: bobgeorgethe3rd (https://github.com/bobgeorgethe3rd) diff --git a/designs/theo/package.json b/designs/theo/package.json index 70ca99a0137..d4d9f673927 100644 --- a/designs/theo/package.json +++ b/designs/theo/package.json @@ -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": { diff --git a/scripts/reconfigure.mjs b/scripts/reconfigure.mjs index 5f964647be8..0d3ec04d5e1 100644 --- a/scripts/reconfigure.mjs +++ b/scripts/reconfigure.mjs @@ -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)