From 2bd3d0a6d8fa38c762f154905ef74ffffcc8128b Mon Sep 17 00:00:00 2001 From: trunekm Date: Tue, 25 May 2021 20:18:55 +0200 Subject: [PATCH] fix: config file moved closer to the e2e tests, should not impact other tests --- .mocharc.js => __tests__/e2e/.mocharc.js | 0 package.json | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .mocharc.js => __tests__/e2e/.mocharc.js (100%) diff --git a/.mocharc.js b/__tests__/e2e/.mocharc.js similarity index 100% rename from .mocharc.js rename to __tests__/e2e/.mocharc.js diff --git a/package.json b/package.json index a0225a48..fa01dad3 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "test-integration-ci": "NODE_ENV=test DOTENV_CONFIG_PATH=.env.ci mocha -r dotenv/config --exit --timeout 20000 --require co-mocha --parallel=false './__tests__/*.spec.js' './__tests__/integration/*.spec.js'", "test-watch": "NODE_ENV=test NODE_LOG_LEVEL=info mocha -r dotenv/config dotenv_config_path=.env.test --timeout 10000 --require co-mocha -w -b --ignore './server/repositories/**/*.spec.js' './server/setup.js' './server/**/*.spec.js' './__tests__/seed.spec.js' './__tests__/supertest.js'", "test-watch-debug": "NODE_ENV=test NODE_LOG_LEVEL=debug DOTENV_CONFIG_PATH=.env.test mocha -r dotenv/config --timeout 10000 --require co-mocha -w -b --ignore './server/repositories/**/*.spec.js' './server/setup.js' './server/**/*.spec.js' './__tests__/seed.spec.js' './__tests__/**/*.spec.js'", - "test-e2e": "NODE_TLS_REJECT_UNAUTHORIZED='0' mocha --config ./.mocharc.js", + "test-e2e": "NODE_TLS_REJECT_UNAUTHORIZED='0' mocha --config ./__tests__/e2e/.mocharc.js", "prettier-fix": "prettier ./ --write", "db-migrate-ci": "cd database; db-migrate up", "start-db": "docker-compose up"