Skip to content

Commit

Permalink
Added maxDiffSize to Mocha configuration (#2593)
Browse files Browse the repository at this point in the history
Copying changes from https://github.com/Azure/typespec-azure/pull/3731/

Note: I added the following files as they were missing but the
corresponding `.mocharc.yaml` files already exist:

- packages/protobuf/mocha.reporter.config.json
- packages/samples/mocha.reporter.config.json
- packages/typespec-vscode/mocha.reporter.config.json
  • Loading branch information
abatishchev authored Oct 19, 2023
1 parent 77fabe1 commit 2353586
Show file tree
Hide file tree
Showing 37 changed files with 203 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/bundler",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/bundler"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/compiler",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/compiler"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/eslint-plugin",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/eslint-plugin"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/html-program-viewer",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/html-program-viewer"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/http",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/http"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/internal-build-utils",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/internal-build-utils"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/json-schema",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/json-schema"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/library-linter",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/library-linter"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/migrate",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/migrate"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/openapi",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/openapi"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/openapi3",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/openapi3"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/protobuf",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/protobuf"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/rest",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/rest"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/versioning",
"comment": "",
"type": "none"
}
],
"packageName": "@typespec/versioning"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "typespec-vscode",
"comment": "",
"type": "none"
}
],
"packageName": "typespec-vscode"
}
3 changes: 2 additions & 1 deletion packages/best-practices/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/bundler/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/compiler/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/eslint-plugin-typespec/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/html-program-viewer/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/http/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/internal-build-utils/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/json-schema/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/library-linter/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/lint/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/migrate/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/openapi/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/openapi3/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 3 additions & 0 deletions packages/protobuf/.mocharc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ timeout: 5000
require: source-map-support/register
spec: "dist/test/**/*.js"
ignore: "dist/test/manual/**/*.js"

# Config for https://www.npmjs.com/package/mocha-multi-reporters
reporterOptions: "configFile=mocha.reporter.config.json"
4 changes: 4 additions & 0 deletions packages/protobuf/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/rest/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 3 additions & 0 deletions packages/samples/.mocharc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ timeout: 5000
require: source-map-support/register
spec: "dist/test/**/*.js"
ignore: "dist/test/manual/**/*.js"

# Config for https://www.npmjs.com/package/mocha-multi-reporters
reporterOptions: "configFile=mocha.reporter.config.json"
4 changes: 4 additions & 0 deletions packages/samples/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/tspd/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 3 additions & 0 deletions packages/typespec-vscode/.mocharc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ timeout: 5000
require: source-map-support/register
spec: "dist-dev/test/**/*.test.js"
ignore: "dist-dev/test/manual/**/*.js"

# Config for https://www.npmjs.com/package/mocha-multi-reporters
reporterOptions: "configFile=mocha.reporter.config.json"
4 changes: 4 additions & 0 deletions packages/typespec-vscode/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}
3 changes: 2 additions & 1 deletion packages/versioning/mocha.reporter.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"reporterEnabled": "spec, mocha-junit-reporter"
"reporterEnabled": "spec, mocha-junit-reporter",
"maxDiffSize": 16384
}

0 comments on commit 2353586

Please sign in to comment.