-
Notifications
You must be signed in to change notification settings - Fork 85
chore(testing): turn the testing folder into a package #2576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| 'certificates', | ||
| filename | ||
| ); | ||
| return path.join(__dirname, '..', '..', 'testing', 'certificates', filename); |
There was a problem hiding this comment.
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?
fe9ac94 to
9b59aaa
Compare
There was a problem hiding this 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/topackages/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.
b39d4ee to
07b1745
Compare
Co-authored-by: Copilot <[email protected]>
07b1745 to
a57a1fc
Compare
This will cleanup our hacky imports and be another step towards having each package explicitly defining its dependencies.