Open
Conversation
chris-olszewski
commented
Jan 28, 2026
| "@types/istanbul-lib-coverage": "^2.0.6", | ||
| "@types/istanbul-lib-instrument": "^1.7.7", | ||
| "@types/webpack": "^5.28.5", | ||
| "typescript": "^5.6.3", |
Member
Author
There was a problem hiding this comment.
Need to specify TS version as otherwise ts-loader grabs a different TS version than the rest of the repo and the latest version has some type signatures changed resulting in failed compilation.
| noopTest, | ||
| } from '@temporalio/test-helpers'; | ||
|
|
||
| // Re-export from test-helpers |
Member
Author
There was a problem hiding this comment.
Re-exporting here just so reviewing this PR has less noise from a bunch of import changes
| import { test as anyTest, Worker, TestWorkflowEnvironment, BaseContext, helpers } from '@temporalio/test-helpers'; | ||
| import { bundlerOptions } from './helpers'; | ||
|
|
||
| // FIXME MOVE THIS SECTION SOMEWHERE IT CAN BE SHARED // |
Member
Author
There was a problem hiding this comment.
Seemed like as good a time as any to fix this
7a9f1f9 to
6c2ada0
Compare
Member
Author
|
Moving to draft until I resolve some rebase issues |
Add `"build": "tsc --build"` to packages that were missing it, enabling independent package builds with `pnpm -F <pkg> run build`. Packages updated: - @temporalio/common - @temporalio/client - @temporalio/workflow - @temporalio/activity - @temporalio/worker - @temporalio/testing - @temporalio/nexus - @temporalio/cloud - @temporalio/envconfig - @temporalio/plugin - @temporalio/interceptors-opentelemetry - @temporalio/ai-sdk - @temporalio/nyc-test-coverage - temporalio (meta) Also adds common reference to nyc-test-coverage tsconfig and updates proto build script to include TypeScript compilation. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move tests that only depend on @temporalio/common to enable independent testing of the common package. Moved tests: - test-time.ts - test-type-helpers.ts - test-enums-helpers.ts - test-retry-policy.ts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move tests that only depend on their respective packages to enable independent testing. @temporalio/common: - test-parse-uri.ts (moved from test) @temporalio/nexus: - test-nexus-link-converter.ts - test-nexus-token-helpers.ts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move the following tests from packages/test to their respective packages: - test-envconfig.ts -> packages/envconfig/src/__tests__/ - test-mockactivityenv.ts -> packages/testing/src/__tests__/ - test-flags.ts -> packages/workflow/src/__tests__/ Each package now has: - ava as a devDependency - A "test" script to run package-specific tests - AVA configuration in package.json Also updates nexus test imports and nyc-test-coverage tsconfig. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move test files to their respective packages to enable independent testing, following the self-contained test fixtures pattern. Moved to @temporalio/testing: - test-testenvironment.ts (with testenv-test-workflows.ts) Moved to @temporalio/ai-sdk: - test-ai-sdk.ts (with workflows/ai-sdk.ts, activities/ai-sdk.ts) Each package now has its own test infrastructure: - AVA configuration in package.json - Test script: pnpm -F <package> run test - Self-contained test workflows and activities Also added docs/future-plan-test-extraction.md documenting the pattern for moving additional integration tests in the future. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
6c2ada0 to
bbed7cf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was changed
Break up the
testpackage so tests for specific packages reside in the package.As part of this, we also changed how each package gets built. Previously
pnpm run buildworked as buildingtestwould end up building every package it depended upon. As we no longer expect this to always hold, we now have each package build itself.In order to keep this PR more reviewable, I avoided breaking up any test files and only moved entire files where they were applicable. There's certainly more work that can be done for breaking up
test, but this suits our most purposes for the moment.Why?
As we introduce support for OTEL v2, we will need to test both v1 and v2 of OTEL. The easiest way to achieve this is by having separate packages for each. In order to support this each package needs to own it's own tests.
Checklist
Closes N/A
How was this tested:
pnpm run testAny docs updates needed?
N/A