Skip to content

test: update test implementation to work well with typescript 6#1436

Open
joker23 wants to merge 1 commit into
mainfrom
skz/sdk-2193/typescript-6-esModuleInterop-changes
Open

test: update test implementation to work well with typescript 6#1436
joker23 wants to merge 1 commit into
mainfrom
skz/sdk-2193/typescript-6-esModuleInterop-changes

Conversation

@joker23

@joker23 joker23 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This PR will update the way that tests import modules. This is to make the syntax of this module compatible with typescript 6.

Specifically the issue that the current syntax runs into is detailed in https://devblogs.microsoft.com/typescript/announcing-typescript-6-0/#deprecated:---esmoduleinterop-false-and---allowsyntheticdefaultimports-false


Note

Low Risk
Changes are limited to TypeScript compiler options and test/fixture import style; no production SDK runtime logic is modified.

Overview
Prepares the monorepo for TypeScript 6 by turning on esModuleInterop: true in tsconfig.json for edge SDK packages (akamai-*, cloudflare, fastly, shopify-oxygen, vercel) and shared libs (sdk-client, akamai-edgeworker-sdk, sdk-server-edge).

Test and setup code now default-imports JSON fixtures (e.g. import testData from './testData.json') instead of namespace imports (import * as testData), matching the interop model TS 6 expects when the old esModuleInterop: false style is deprecated.

packages/sdk/fastly/jest.config.json is reformatted only; behavior is unchanged.

Reviewed by Cursor Bugbot for commit d2160b2. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 26365 bytes
Compressed size limit: 29000
Uncompressed size: 129044 bytes

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 31978 bytes
Compressed size limit: 34000
Uncompressed size: 114243 bytes

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179579 bytes
Compressed size limit: 200000
Uncompressed size: 831422 bytes

@joker23 joker23 force-pushed the skz/sdk-2193/typescript-6-esModuleInterop-changes branch from 0f187c2 to 73ce3d2 Compare June 9, 2026 16:05
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 38739 bytes
Compressed size limit: 39000
Uncompressed size: 212244 bytes

@joker23

joker23 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 73ce3d2. Configure here.

@joker23 joker23 marked this pull request as ready for review June 9, 2026 16:18
@joker23 joker23 requested a review from a team as a code owner June 9, 2026 16:18

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@joker23 joker23 force-pushed the skz/sdk-2193/typescript-6-esModuleInterop-changes branch from 73ce3d2 to d2160b2 Compare June 16, 2026 19:21
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.

1 participant