From 96d48dc4861ac60466eee1a1570f8d3be984b8f7 Mon Sep 17 00:00:00 2001
From: Caleb Cartwright <calebcartwright@users.noreply.github.com>
Date: Wed, 20 Feb 2019 17:05:14 -0600
Subject: [PATCH] chore: make mocha rc configs dotfiles (#3065)

Fixes #3054

Apparently mocha 6's new auto-config discovery only works with dotfiles. This renames our mocha rc files accordingly: `mocharc.yml` --> `.mocharc.yml` and solely to be consistent `mocharc-frontend.yml` --> ` .mocharc-frontend.yml`

- https://github.com/mochajs/mocha/blob/master/lib/cli/config.js#L23
- https://mochajs.org/#configuring-mocha-nodejs
- https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#tada-enhancements-1
---
 mocharc-frontend.yml => .mocharc-frontend.yml | 0
 mocharc.yml => .mocharc.yml                   | 0
 package.json                                  | 2 +-
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename mocharc-frontend.yml => .mocharc-frontend.yml (100%)
 rename mocharc.yml => .mocharc.yml (100%)

diff --git a/mocharc-frontend.yml b/.mocharc-frontend.yml
similarity index 100%
rename from mocharc-frontend.yml
rename to .mocharc-frontend.yml
diff --git a/mocharc.yml b/.mocharc.yml
similarity index 100%
rename from mocharc.yml
rename to .mocharc.yml
diff --git a/package.json b/package.json
index ec70c40a90..1ad7d051b8 100644
--- a/package.json
+++ b/package.json
@@ -82,7 +82,7 @@
     "test:js:server": "echo \"Deprecated; run `npm run test:core` instead.\" && npm run test:core",
     "test:js:frontend": "echo \"Deprecated; run `npm run test:frontend` instead.\" && npm run test:frontend",
     "test:js:package": "echo \"Deprecated; run `npm run test:package` instead.\" && npm run test:package",
-    "test:frontend": "cross-env NODE_ENV=test mocha --config mocharc-frontend.yml \"frontend/**/*.spec.js\"",
+    "test:frontend": "cross-env NODE_ENV=test mocha --config .mocharc-frontend.yml \"frontend/**/*.spec.js\"",
     "test:core": "cross-env NODE_CONFIG_ENV=test mocha \"core/**/*.spec.js\" \"lib/**/*.spec.js\" \"services/**/*.spec.js\"",
     "test:package": "mocha \"gh-badges/**/*.spec.js\"",
     "test:entrypoint": "cross-env NODE_CONFIG_ENV=test mocha entrypoint.spec.js",
-- 
GitLab