From f45e7b8d6b54cef7c950cefc0529f169d4fa41f1 Mon Sep 17 00:00:00 2001 From: Ben West Date: Thu, 18 Feb 2021 11:15:45 -0800 Subject: [PATCH] task: tidy ci test env away from project root This change moves the ci.test.env file into the tests/ subdirectory in an effort to reduce the number of files in the project root. The package.json metadata is updated to enable continuous integration tools to continue to work as expected. --- package.json | 4 ++-- ci.test.env => tests/ci.test.env | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename ci.test.env => tests/ci.test.env (100%) diff --git a/package.json b/package.json index 01bdb0efe80..44eeb3a985d 100644 --- a/package.json +++ b/package.json @@ -29,14 +29,14 @@ "start": "node lib/server/server.js", "test": "env-cmd -f ./my.test.env mocha --require ./tests/hooks.js -exit ./tests/*.test.js", "test-single": "env-cmd -f ./my.test.env mocha --require ./tests/hooks.js --exit ./tests/$TEST.test.js", - "test-ci": "env-cmd -f ./ci.test.env nyc --reporter=lcov --reporter=text-summary mocha --require ./tests/hooks.js --exit ./tests/*.test.js", + "test-ci": "env-cmd -f ./tests/ci.test.env nyc --reporter=lcov --reporter=text-summary mocha --require ./tests/hooks.js --exit ./tests/*.test.js", "env": "env", "postinstall": "webpack --mode production --config webpack/webpack.config.js && npm run-script generate-keys", "bundle": "webpack --mode production --config webpack/webpack.config.js && npm run-script generate-keys", "bundle-dev": "webpack --mode development --config webpack/webpack.config.js && npm run-script generate-keys", "bundle-analyzer": "webpack --mode development --config webpack/webpack.config.js --profile --json > stats.json && webpack-bundle-analyzer stats.json", "generate-keys": "node bin/generateRandomString.js >tmp/randomString", - "coverage": "cat ./coverage/lcov.info | env-cmd -f ./ci.test.env codacy-coverage", + "coverage": "cat ./coverage/lcov.info | env-cmd -f ./tests/ci.test.env codacy-coverage", "dev": "env-cmd -f ./my.env nodemon --inspect lib/server/server.js 0.0.0.0", "dev-test": "env-cmd -f ./my.devtest.env nodemon --inspect lib/server/server.js 0.0.0.0", "prod": "env-cmd -f ./my.prod.env node lib/server/server.js 0.0.0.0", diff --git a/ci.test.env b/tests/ci.test.env similarity index 100% rename from ci.test.env rename to tests/ci.test.env