Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ To enable the Chrome DevTools for the Electron renderer processes, click "Settin

> [!NOTE]
> For documentation regarding how to write plugin packages, check out the
> [hadron-app-registry](./packages/hadron-app-registry/README.md) documentation.
> [@mongodb-js/compass-app-registry](./packages/compass-app-registry/README.md) documentation.
To run npm scripts inside specific workspaces in the monorepo you can use either `lerna --scope` or `npm --workspace` command line arguments. As an example, to run all tests in one plugin that you are working on such as the `compass-aggregations` plugin, you can run `npm run test --workspace packages/compass-aggregation` or `lerna run test --scope @mongodb-js/compass-aggregations` commands

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Is there anything else you’d like to see in Compass? Let us know by submitting
### Shared Libraries and Build Tools

- [**@mongodb-js/atlas-service**](packages/atlas-service): Service to handle Atlas sign in and API requests
- [**@mongodb-js/compass-app-registry**](packages/compass-app-registry): Compass App Registry
- [**@mongodb-js/compass-components**](packages/compass-components): React Components used in Compass
- [**@mongodb-js/compass-connection-import-export**](packages/compass-connection-import-export): UI for Compass connection import/export
- [**@mongodb-js/compass-connections**](packages/compass-connections): Manage your MongoDB connections and connect in Compass
Expand Down Expand Up @@ -67,7 +68,6 @@ Is there anything else you’d like to see in Compass? Let us know by submitting
- [**bson-transpilers**](packages/bson-transpilers): Source to source compilers using ANTLR
- [**compass-e2e-tests**](packages/compass-e2e-tests): E2E test suite for Compass app that follows smoke tests / feature testing matrix
- [**compass-preferences-model**](packages/compass-preferences-model): Compass preferences model
- [**hadron-app-registry**](packages/hadron-app-registry): Hadron App Registry
- [**hadron-build**](packages/hadron-build): Tooling for Hadron apps like Compass
- [**hadron-document**](packages/hadron-document): Hadron Document
- [**hadron-ipc**](packages/hadron-ipc): Simplified IPC for electron apps.
Expand Down
2 changes: 1 addition & 1 deletion configs/testing-library-compass/.depcheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ ignores:
# dependency will introduce a circular one in our dependency tree, as it's only
# used for testing and doesn't require compilation, we're escaping the
# recursiveness issue by just not including those in the package.json
- '@mongodb-js/compass-app-registry'
- '@mongodb-js/compass-logging'
- '@mongodb-js/compass-telemetry'
- '@mongodb-js/connection-info'
- '@mongodb-js/compass-connections'
- '@mongodb-js/compass-components'
- '@mongodb-js/connection-storage'
- 'compass-preferences-model'
- 'hadron-app-registry'
- 'mongodb-data-service'
ignore-patterns:
- 'dist'
15 changes: 9 additions & 6 deletions configs/testing-library-compass/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@ import {
import CompassConnections, {
ConnectFnProvider,
} from '@mongodb-js/compass-connections/src/index';
import type { HadronPluginComponent, HadronPlugin } from 'hadron-app-registry';
import type {
CompassPluginComponent,
CompassPlugin,
} from '@mongodb-js/compass-app-registry';
import AppRegistry, {
AppRegistryProvider,
GlobalAppRegistryProvider,
} from 'hadron-app-registry';
} from '@mongodb-js/compass-app-registry';
import { expect } from 'chai';
import { Provider } from 'react-redux';
import ConnectionString from 'mongodb-connection-string-url';
Expand Down Expand Up @@ -560,9 +563,9 @@ async function renderHookWithActiveConnection<HookProps, HookResult>(
function createPluginWrapper<
Props,
ServiceLocators extends Record<string, () => unknown>,
PluginContext extends HadronPlugin
PluginContext extends CompassPlugin
>(
Plugin: HadronPluginComponent<Props, ServiceLocators, PluginContext>,
Plugin: CompassPluginComponent<Props, ServiceLocators, PluginContext>,
initialPluginProps?: Props,
ReactTestingLibraryWrapper: ComponentWithChildren = EmptyWrapper
) {
Expand All @@ -585,9 +588,9 @@ function createPluginWrapper<
function createPluginTestHelpers<
Props,
ServiceLocators extends Record<string, () => unknown>,
PluginContext extends HadronPlugin
PluginContext extends CompassPlugin
>(
Plugin: HadronPluginComponent<Props, ServiceLocators, PluginContext>,
Plugin: CompassPluginComponent<Props, ServiceLocators, PluginContext>,
defaultInitialPluginProps?: Props
) {
return {
Expand Down
Loading
Loading