Skip to content

Commit

Permalink
test: migrate mocha.opts to .mocharc.json (textlint#682)
Browse files Browse the repository at this point in the history
* chore(deps): update mocha

* test: migrate mocha.opts to .mocharc.json

* chore(kernel): remove unnecessary mocha.opts
  • Loading branch information
numb86 authored Jun 10, 2020
1 parent e0e3a83 commit 332ae5e
Show file tree
Hide file tree
Showing 37 changed files with 90 additions and 74 deletions.
5 changes: 5 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"babel-register"
]
}
5 changes: 5 additions & 0 deletions packages/@textlint/ast-node-types/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/@textlint/ast-node-types/test/mocha.opts

This file was deleted.

5 changes: 5 additions & 0 deletions packages/@textlint/ast-tester/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/@textlint/ast-tester/test/mocha.opts

This file was deleted.

5 changes: 5 additions & 0 deletions packages/@textlint/ast-traverse/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/@textlint/ast-traverse/test/mocha.opts

This file was deleted.

5 changes: 5 additions & 0 deletions packages/@textlint/feature-flag/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/@textlint/feature-flag/test/mocha.opts

This file was deleted.

5 changes: 5 additions & 0 deletions packages/@textlint/fixer-formatter/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/@textlint/fixer-formatter/test/mocha.opts

This file was deleted.

5 changes: 5 additions & 0 deletions packages/@textlint/kernel/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/@textlint/kernel/test/descriptor/mocha.opts

This file was deleted.

1 change: 0 additions & 1 deletion packages/@textlint/kernel/test/mocha.opts

This file was deleted.

7 changes: 7 additions & 0 deletions packages/@textlint/linter-formatter/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"require": [
"ts-node-test-register"
],
"color": false,
"timeout": "10000"
}
3 changes: 0 additions & 3 deletions packages/@textlint/linter-formatter/test/mocha.opts

This file was deleted.

5 changes: 5 additions & 0 deletions packages/@textlint/markdown-to-ast/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/@textlint/markdown-to-ast/test/mocha.opts

This file was deleted.

5 changes: 5 additions & 0 deletions packages/@textlint/module-interop/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/@textlint/module-interop/test/mocha.opts

This file was deleted.

5 changes: 5 additions & 0 deletions packages/@textlint/text-to-ast/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/@textlint/text-to-ast/test/mocha.opts

This file was deleted.

5 changes: 5 additions & 0 deletions packages/@textlint/textlint-plugin-markdown/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}

This file was deleted.

5 changes: 5 additions & 0 deletions packages/@textlint/textlint-plugin-text/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/@textlint/textlint-plugin-text/test/mocha.opts

This file was deleted.

5 changes: 5 additions & 0 deletions packages/@textlint/types/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/@textlint/types/test/mocha.opts

This file was deleted.

5 changes: 5 additions & 0 deletions packages/@textlint/utils/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/@textlint/utils/test/mocha.opts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/gulp-textlint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"eslint": "^6.5.1",
"eslint-plugin-prettier": "^3.1.1",
"gulp": "^4.0.1",
"mocha": "^6.2.1",
"mocha": "^7.1.1",
"npm-run-all": "^4.1.5",
"prettier": "^1.17.0",
"textlint-rule-prh": "^5.2.0"
Expand Down
5 changes: 5 additions & 0 deletions packages/textlint-tester/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": [
"ts-node-test-register"
]
}
1 change: 0 additions & 1 deletion packages/textlint-tester/test/mocha.opts

This file was deleted.

6 changes: 6 additions & 0 deletions packages/textlint/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"timeout": "5000",
"require": [
"ts-node-test-register"
]
}
2 changes: 0 additions & 2 deletions packages/textlint/test/mocha.opts

This file was deleted.

1 change: 0 additions & 1 deletion test/mocha.opts

This file was deleted.

53 changes: 1 addition & 52 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3785,7 +3785,7 @@ chai@^4.2.0:
pathval "^1.1.0"
type-detect "^4.0.5"

[email protected], chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.1, chalk@^2.4.1, chalk@^2.4.2:
[email protected], chalk@^2.0.0, chalk@^2.1.0, chalk@^2.3.1, chalk@^2.4.1, chalk@^2.4.2:
version "2.4.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
Expand Down Expand Up @@ -8859,13 +8859,6 @@ lodash@^4.0.0, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.1
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==

[email protected]:
version "2.2.0"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"
integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==
dependencies:
chalk "^2.0.1"

[email protected], log-symbols@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4"
Expand Down Expand Up @@ -9376,49 +9369,13 @@ [email protected]:
dependencies:
minimist "^1.2.5"

[email protected]:
version "0.5.4"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.4.tgz#fd01504a6797ec5c9be81ff43d204961ed64a512"
integrity sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==
dependencies:
minimist "^1.2.5"

mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1:
version "0.5.5"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def"
integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==
dependencies:
minimist "^1.2.5"

mocha@^6.2.1:
version "6.2.3"
resolved "https://registry.yarnpkg.com/mocha/-/mocha-6.2.3.tgz#e648432181d8b99393410212664450a4c1e31912"
integrity sha512-0R/3FvjIGH3eEuG17ccFPk117XL2rWxatr81a57D+r/x2uTYZRbdZ4oVidEUMh2W2TJDa7MdAb12Lm2/qrKajg==
dependencies:
ansi-colors "3.2.3"
browser-stdout "1.3.1"
debug "3.2.6"
diff "3.5.0"
escape-string-regexp "1.0.5"
find-up "3.0.0"
glob "7.1.3"
growl "1.10.5"
he "1.2.0"
js-yaml "3.13.1"
log-symbols "2.2.0"
minimatch "3.0.4"
mkdirp "0.5.4"
ms "2.1.1"
node-environment-flags "1.0.5"
object.assign "4.1.0"
strip-json-comments "2.0.1"
supports-color "6.0.0"
which "1.3.1"
wide-align "1.1.3"
yargs "13.3.2"
yargs-parser "13.1.2"
yargs-unparser "1.6.0"

mocha@^7.1.1:
version "7.1.1"
resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.1.1.tgz#89fbb30d09429845b1bb893a830bf5771049a441"
Expand Down Expand Up @@ -9595,14 +9552,6 @@ nice-try@^1.0.4:
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==

[email protected]:
version "1.0.5"
resolved "https://registry.yarnpkg.com/node-environment-flags/-/node-environment-flags-1.0.5.tgz#fa930275f5bf5dae188d6192b24b4c8bbac3d76a"
integrity sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==
dependencies:
object.getownpropertydescriptors "^2.0.3"
semver "^5.7.0"

[email protected]:
version "1.0.6"
resolved "https://registry.yarnpkg.com/node-environment-flags/-/node-environment-flags-1.0.6.tgz#a30ac13621f6f7d674260a54dede048c3982c088"
Expand Down

0 comments on commit 332ae5e

Please sign in to comment.