Skip to content

Commit c109fab

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents 2cbd02e + dee7954 commit c109fab

File tree

121 files changed

+6565
-7990
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+6565
-7990
lines changed

.depalignrc.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@
4848
"numeral": [
4949
"^1.5.6"
5050
],
51-
"mongodb-query-util": [
52-
"^0.2.1",
53-
"^0.0.3"
54-
],
5551
"babel-loader": [
5652
"^7.1.5"
5753
],

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ Is there anything else you’d like to see in Compass? Let us know by submitting
6363
- [**bson-transpilers**](packages/bson-transpilers): Source to source compilers using ANTLR
6464
- [**compass-e2e-tests**](packages/compass-e2e-tests): E2E test suite for Compass app that follows smoke tests / feature testing matrix
6565
- [**compass-preferences-model**](packages/compass-preferences-model): Compass preferences model
66-
- [**compass-user-model**](packages/compass-user-model): MongoDB user model
6766
- [**electron-license**](packages/electron-license): Tools for electron apps to work with licenses
6867
- [**hadron-app**](packages/hadron-app): Hadron Application Singleton
6968
- [**hadron-app-registry**](packages/hadron-app-registry): Hadron App Registry

THIRD-PARTY-NOTICES.md

Lines changed: 347 additions & 951 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,12 @@
11
'use strict';
2-
const path = require('path');
3-
const specs = process.argv.slice(2).filter((arg) => !arg.startsWith('-'));
42

5-
// This can be written as `{src,test}/**/*.{spec,test}.*`, but this causes
6-
// issues for mocha on some version. It will try to parse every string in the
7-
// array by splitting on commas causing a wrong spec pattern to be applied. It
8-
// is fixed in latest, but as we are still in the process of updating
9-
// everything to the same version and working around the issue helps with
10-
// migration (this can be removed when mocha is not in depalignrc anymore)
11-
const defaultSpecs = [
12-
'src/**/*.spec.*',
13-
'src/**/*.test.*',
14-
'test/**/*.spec.*',
15-
'test/**/*.test.*',
16-
];
3+
const path = require('path');
4+
const base = require('@mongodb-js/mocha-config-devtools');
175

186
module.exports = {
19-
colors: true,
20-
timeout: 15000,
7+
...base,
218
require: [
22-
path.resolve(__dirname, 'register', 'why-node-running.js'),
9+
...base.require,
2310
path.resolve(__dirname, 'register', 'resolve-from-source-register.js'),
24-
path.resolve(__dirname, 'register', 'assets-import-register.js'),
25-
path.resolve(__dirname, 'register', 'tsnode-register.js'),
26-
path.resolve(__dirname, 'register', 'sinon-chai-register.js'),
27-
path.resolve(__dirname, 'register', 'unhandled-rejections.js'),
28-
path.resolve(__dirname, 'register', 'dns-config-register.js'),
2911
],
30-
// Allows to run tests against a particular set of specs instead of all of them
31-
spec: specs.length > 0 ? specs : defaultSpecs,
32-
extension: ['js', 'ts', 'cjs', 'mjs', 'jsx', 'tsx'],
33-
watchFiles: ['test/**/*', 'src/**/*'],
3412
};

configs/mocha-config-compass/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"access": "public"
2525
},
2626
"dependencies": {
27+
"@mongodb-js/mocha-config-devtools": "^1.0.0",
2728
"@electron/remote": "^2.0.10",
2829
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
2930
"chai": "^4.3.4",
Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
11
'use strict';
2-
const path = require('path');
3-
const base = require('.');
4-
5-
const pkgJson = require(path.join(process.cwd(), 'package.json'));
62

7-
const isEnzyme = !!pkgJson.devDependencies.enzyme;
3+
const path = require('path');
4+
const base = require('@mongodb-js/mocha-config-devtools/react');
85

96
module.exports = {
107
...base,
118
require: [
12-
// There is a bug with React tests not exiting due to how React uses
13-
// MessageChannel. The bug is fixed in [email protected], but in the meantime we
14-
// have to have this script around and it needs to be the absolute first
15-
// import
16-
// https://github.com/facebook/react/issues/20756#issuecomment-780927519
17-
require.resolve('react-16-node-hanging-test-fix'),
189
...base.require,
19-
path.resolve(__dirname, 'register', 'jsdom-global-register.js'),
20-
path.resolve(__dirname, 'register', 'chai-dom-register.js'),
21-
path.resolve(__dirname, 'register', 'css-import-register.js'),
22-
// We want to move new components/plugins to use testing-library, but for
23-
// compat reasons will register and activate enzyme with adapters if
24-
// plugin is using it
25-
isEnzyme && path.resolve(__dirname, 'register', 'enzyme-register.js'),
26-
].filter(Boolean),
10+
path.resolve(__dirname, 'register', 'resolve-from-source-register.js'),
11+
],
2712
};

configs/mocha-config-compass/register/assets-import-register.js

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

configs/mocha-config-compass/register/chai-dom-register.js

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

configs/mocha-config-compass/register/css-import-register.js

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

configs/mocha-config-compass/register/dns-config-register.js

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

0 commit comments

Comments
 (0)