diff --git a/.mocharc.yml b/.mocharc.yml new file mode 100644 index 0000000..84c4be3 --- /dev/null +++ b/.mocharc.yml @@ -0,0 +1 @@ +timeout: 2000 diff --git a/.roboconfig.lock b/.roboconfig.lock index 1e85233..254e13a 100644 --- a/.roboconfig.lock +++ b/.roboconfig.lock @@ -8,6 +8,7 @@ ".gally.json", ".gitignore", ".idea/joi-strict.iml", + ".mocharc.yml", ".npmignore", ".releaserc.json", "LICENSE", @@ -15,7 +16,6 @@ "gardener.js", "package.json", "src/index.js", - "test/index.spec.js", - "test/mocha.opts" + "test/index.spec.js" ] } diff --git a/CONFDOCS.md b/CONFDOCS.md index f88daa6..944dcb6 100644 --- a/CONFDOCS.md +++ b/CONFDOCS.md @@ -9,7 +9,7 @@ Documents configuration tasks managed by [robo-config](https://github.com/blackf - :clipboard: `struct/force-gardener` - :open_file_folder: `struct/#npm-base` - :clipboard: `struct/template-readme` - - :clipboard: `struct/template-mocha-opts` + - :clipboard: `struct/template-mocharc` - :clipboard: `struct/template-index-test` - :clipboard: `struct/template-index` - :clipboard: `struct/template-eslintrc` @@ -76,6 +76,7 @@ Manage various configuration files for an open source npm package on github. ├─ gardener.js
├─ .gitignore
├─ LICENSE
+├─ .mocharc.yml
├─ .npmignore
├─ package.json
├─ README.md
@@ -83,8 +84,7 @@ Manage various configuration files for an open source npm package on github. ├─ src
│  └─ index.js
└─ test
-   ├─ index.spec.js
-   └─ mocha.opts
+   └─ index.spec.js
@@ -142,12 +142,12 @@ Manage basic project structure for npm package on github. ├─ .babelrc
├─ .eslintrc.json
├─ gardener.js
+├─ .mocharc.yml
├─ README.md
├─ src
│  └─ index.js
└─ test
-   ├─ index.spec.js
-   └─ mocha.opts
+   └─ index.spec.js
@@ -215,12 +215,12 @@ Manage basic project structure for npm package on github. project
├─ .babelrc
├─ .eslintrc.json
+├─ .mocharc.yml
├─ README.md
├─ src
│  └─ index.js
└─ test
-   ├─ index.spec.js
-   └─ mocha.opts
+   └─ index.spec.js
@@ -269,9 +269,9 @@ _Updating README.md -###### :clipboard: struct/template-mocha-opts (`index`) +###### :clipboard: struct/template-mocharc (`index`) -_Updating test/mocha.opts using create-only._ +_Updating .mocharc.yml using create-only._ - Create options file for mocha tests. @@ -285,8 +285,7 @@ _Updating test/m @@ -1645,7 +1644,7 @@ Execute all configured js-gardener tasks. Contains lots of information about the project itself. -### test/mocha.opts ([`link`](https://mochajs.org/#mochaopts)) +### .mocharc.yml ([`link`](https://mochajs.org/#mochaopts)) :small_red_triangle: mocha, javascript diff --git a/package.json b/package.json index 9207abc..a0faf39 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@babel/plugin-proposal-object-rest-spread": "7.10.1", "@babel/register": "7.10.1", "@blackflux/eslint-plugin-rules": "1.3.29", - "@blackflux/robo-config-plugin": "3.4.10", + "@blackflux/robo-config-plugin": "3.4.11", "babel-eslint": "10.1.0", "chai": "4.2.0", "coveralls": "3.1.0", diff --git a/test/mocha.opts b/test/mocha.opts deleted file mode 100644 index e601b44..0000000 --- a/test/mocha.opts +++ /dev/null @@ -1 +0,0 @@ ---timeout 2000 diff --git a/yarn.lock b/yarn.lock index c3795c8..539b78f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -247,10 +247,10 @@ dependencies: smart-fs "1.11.13" -"@blackflux/robo-config-plugin@3.4.10": - version "3.4.10" - resolved "https://registry.yarnpkg.com/@blackflux/robo-config-plugin/-/robo-config-plugin-3.4.10.tgz#d09e79d860aa091a44218e71e7fc5a3f9e6acd8e" - integrity sha512-3ulU/31BvD/pQRPHs/GJZkcTLv1Ewhd3/yX8jlEIsqkUxjJR4+e5x8oquaDIYtFDXWSjHXRToZUuJKFDTtDBBA== +"@blackflux/robo-config-plugin@3.4.11": + version "3.4.11" + resolved "https://registry.yarnpkg.com/@blackflux/robo-config-plugin/-/robo-config-plugin-3.4.11.tgz#28527316b3d843f403392d10294e157d2f2a766c" + integrity sha512-dt04euAsZloMMm1/xzaydeD82anj1aKGjzMetvNEeufBUAldBtK+FZWPGGofPO7C3SArDND8ZIN2YivhwwMGEA== "@hapi/address@^4.0.1": version "4.0.1"