We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0212df commit 72e805eCopy full SHA for 72e805e
packages/worker/src/connection.ts
@@ -222,10 +222,8 @@ export class NativeConnection implements ConnectionLike {
222
* Eagerly connect to the Temporal server and return a NativeConnection instance
223
*/
224
static async connect(options?: NativeConnectionOptions): Promise<NativeConnection> {
225
- let enableTestService = false;
226
- if ((options as InternalConnectionOptions)?.[InternalConnectionOptionsSymbol]?.supportsTestService) {
227
- enableTestService = true;
228
- }
+ const internalOptions = (options as InternalConnectionOptions)?.[InternalConnectionOptionsSymbol] ?? {};
+ const enableTestService = internalOptions.supportsTestService ?? false;
229
230
try {
231
const runtime = Runtime.instance();
0 commit comments