Skip to content

Commit fa03df8

Browse files
authored
chore(NODE-3717): test reorg - the conclusion (#3105)
1 parent dd5195a commit fa03df8

40 files changed

+276
-2077
lines changed

.mocharc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"ui": "test/tools/runner/metadata_ui.js",
1313
"recursive": true,
1414
"timeout": 60000,
15+
"failZero": true,
1516
"reporter": "test/tools/reporter/mongodb_reporter.js",
1617
"sort": true,
1718
"color": true

global.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ declare global {
5858
* - my test
5959
* - TODO(NODE-XXXX): Feature implementation impending!
6060
* ```
61+
*
62+
* You can also skip a set of tests via beforeEach:
63+
* ```
64+
* beforeEach(() => {
65+
* if ('some condition') {
66+
* this.currentTest.skipReason = 'requires <run condition> to run';
67+
* this.skip();
68+
* }
69+
* });
70+
* ```
6171
*/
6272
skipReason?: string;
6373
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
"check:eslint": "eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test",
105105
"check:tsd": "tsd --version && tsd",
106106
"check:dts": "./node_modules/typescript/bin/tsc --noEmit mongodb.d.ts && tsd",
107-
"check:test": "mocha --file test/tools/runner --recursive test/functional test/integration",
108-
"check:unit": "mocha --recursive test/unit/",
107+
"check:test": "mocha --file test/tools/runner test/integration",
108+
"check:unit": "mocha test/unit/",
109109
"check:ts": "./node_modules/typescript/bin/tsc -v && ./node_modules/typescript/bin/tsc --noEmit",
110110
"check:atlas": "mocha --config \"test/manual/mocharc.json\" test/manual/atlas_connectivity.test.js",
111111
"check:adl": "mocha --file test/tools/runner test/manual/data_lake.test.js",
@@ -116,7 +116,7 @@
116116
"check:ldap": "mocha --config \"test/manual/mocharc.json\" test/manual/ldap.test.js",
117117
"check:socks5": "mocha --config \"test/manual/mocharc.json\" test/manual/socks5.test.ts",
118118
"check:csfle": "mocha --file test/tools/runner test/integration/client-side-encryption",
119-
"check:snappy": "mocha --file test/tools/runner test/functional/unit_snappy.test.js",
119+
"check:snappy": "mocha test/unit/assorted/snappy.test.js",
120120
"prepare": "node etc/prepare.js",
121121
"release": "standard-version -i HISTORY.md",
122122
"test": "npm run check:lint && npm run test:all",

test/functional/core/error.test.js

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

test/functional/core/key/keyfile.key

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/functional/core/shared.js

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

test/functional/core/tailable_cursor.test.js

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

0 commit comments

Comments
 (0)