Skip to content

Conversation

@gagik
Copy link
Contributor

@gagik gagik commented Nov 13, 2025

This will cleanup our hacky imports and be another step towards having each package explicitly defining its dependencies.

'certificates',
filename
);
return path.join(__dirname, '..', '..', 'testing', 'certificates', filename);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make @mongosh/testing export the path to the certificates directory?

@gagik gagik force-pushed the gagik/testing-package branch from fe9ac94 to 9b59aaa Compare November 18, 2025 09:43
@gagik gagik marked this pull request as ready for review November 18, 2025 15:56
@gagik gagik requested a review from a team as a code owner November 18, 2025 15:56
Copilot AI review requested due to automatic review settings November 18, 2025 15:56
@gagik gagik changed the title chore: turn the testing folder into a package chore(testing): turn the testing folder into a package Nov 18, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR converts the testing directory into a proper package (@mongosh/testing) within the monorepo. This enables explicit dependency management and cleaner imports across packages instead of using relative path-based imports.

Key changes include:

  • Moving testing utilities from testing/ to packages/testing/src/
  • Creating proper package configuration with TypeScript compilation to lib/
  • Updating all imports across packages from relative paths (../../../testing/...) to the new package name (@mongosh/testing)

Reviewed Changes

Copilot reviewed 54 out of 88 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
testing/tsconfig.json Removed old TypeScript config from root testing directory
testing/package.json Removed old package.json from root testing directory
packages/testing/tsconfig.json Added new TypeScript config with compilation to lib/ directory
packages/testing/package.json Created proper package with dependencies and build scripts
packages/testing/src/index.ts Added package entry point exporting utilities and certificate path helper
packages/testing/src/integration-testing-hooks.ts Updated tmpdir path resolution for new location
packages/shell-api/src/*.spec.ts Updated imports to use @mongosh/testing package
packages/e2e-tests/test/*.spec.ts Updated imports to use @mongosh/testing package
.evergreen/setup-env.sh Updated config file path reference
.nycrc Updated coverage exclusion path

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gagik gagik added the no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) label Nov 18, 2025
@gagik gagik force-pushed the gagik/testing-package branch from b39d4ee to 07b1745 Compare November 19, 2025 13:17
@gagik gagik force-pushed the gagik/testing-package branch from 07b1745 to a57a1fc Compare November 19, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants