Skip to content
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

chore: Restructure packages #61

Merged
merged 24 commits into from
Aug 13, 2024
Merged

chore: Restructure packages #61

merged 24 commits into from
Aug 13, 2024

Conversation

deekshas8
Copy link
Contributor

@deekshas8 deekshas8 commented Aug 8, 2024

  • Create a core package (name can be discussed)
  • Update import statements
  • Create a common test-util, at the same level as packages. Right now, in ai-sdk I get the error: 'rootDir' is expected to contain all source files. This is fixed using the tsconfig.test.json setting.

Update
We decided to not use the jest.unstable_mockModule for mocking the getAiCoreDestination function due to multiple issues. We will use the jest globalSetup and teardown to mock an env variable for unit testing.

marikaner
marikaner previously approved these changes Aug 13, 2024
Copy link
Contributor

@marikaner marikaner left a comment

Choose a reason for hiding this comment

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

LGTM, I mostly left pp comments except the empty readme, that I think should contain at least some basic info.

package.json Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

[req] There should be at least something in this file... This will be the front page on npm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added basic info for now.

packages/core/src/context.test.ts Show resolved Hide resolved
packages/gen-ai-hub/jest.config.mjs Outdated Show resolved Hide resolved
test-util/mock-http.ts Outdated Show resolved Hide resolved
tomfrenken
tomfrenken previously approved these changes Aug 13, 2024
Copy link
Member

@tomfrenken tomfrenken left a comment

Choose a reason for hiding this comment

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

LGTM

@deekshas8 deekshas8 enabled auto-merge (squash) August 13, 2024 12:43
@deekshas8 deekshas8 merged commit 8bde567 into main Aug 13, 2024
10 checks passed
@deekshas8 deekshas8 deleted the jest-monorepo branch August 13, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants