Skip to content

Commit b927ed8

Browse files
committed
Replace mocha.opts with .mocharc.jsonc
1 parent fd7c4c4 commit b927ed8

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

.mocharc.jsonc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ui": "tdd",
3+
"require": [
4+
"source-map-support/register",
5+
"ts-node/register"
6+
]
7+
}

mocha.opts

Lines changed: 0 additions & 3 deletions
This file was deleted.

offline.vscodeignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ node_modules
2525
gulpfile.ts
2626
!install.Lock
2727
ISSUE_TEMPLATE
28-
mocha.opts
28+
.mocharc.jsonc
2929
*.vscodeignore
3030
package-lock.json
3131
package.json

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
"compile": "tsc -p ./ && gulp tslint",
4040
"compileDev": "tsc -p ./ && gulp tslint && webpack --mode development",
4141
"watch": "tsc -watch -p ./",
42-
"tdd": "mocha --opts ./mocha.opts --watch --watch-extensions ts test/unitTests/**/*.test.ts*",
42+
"tdd": "mocha --config ./.mocharc.jsonc --watch --watch-extensions ts test/unitTests/**/*.test.ts*",
4343
"test": "gulp test",
4444
"test:unit": "gulp test:unit",
4545
"test:feature": "gulp test:feature",
4646
"test:integration": "gulp test:integration",
4747
"test:integration:singleCsproj": "gulp test:integration:singleCsproj",
4848
"test:integration:slnWithCsproj": "gulp test:integration:slnWithCsproj",
49-
"test:release": "mocha --opts ./mocha.opts test/releaseTests/**/*.test.ts",
50-
"test:artifacts": "mocha --opts ./mocha.opts test/artifactTests/**/*.test.ts",
49+
"test:release": "mocha --config ./.mocharc.jsonc test/releaseTests/**/*.test.ts",
50+
"test:artifacts": "mocha --config ./.mocharc.jsonc test/artifactTests/**/*.test.ts",
5151
"postinstall": "node ./node_modules/vscode/bin/install",
5252
"cov:instrument": "gulp cov:instrument",
5353
"cov:merge": "gulp cov:merge",

release.vscodeignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ node_modules/**
2525
gulpfile.ts
2626
install.Lock
2727
ISSUE_TEMPLATE
28-
mocha.opts
28+
.mocharc.jsonc
2929
*.vscodeignore
3030
package-lock.json
3131
package.json

0 commit comments

Comments
 (0)