Skip to content

Conversation

@Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Aug 22, 2025

WHAT

  • We need a way to test the deployed packages using the existing e2e tests. At the moment, the e2e tests are only testing against the local monorepo. In this way, we can verify if the published packages actually work as expected.
  • This script allows us to run e2e tests against specific published package versions from npm, ensuring our releases work correctly in real-world scenarios.

HOW IT WORKS

  1. It first finds all "*" peer dependencies in ./e2e/package.json and replaces them with the specified version (e.g., 8.0.0-prealpha-886.4)
  2. Runs bun install in the e2e directory to download the published packages from npm
  3. Verifies that the correct package versions are installed by checking each package's package.json in node_modules
  4. Executes the e2e tests with NETWORK=naga-local environment, showing real-time output
  5. Always performs cleanup regardless of test outcome or interruption:
    • Removes ./e2e/node_modules directory
    • Removes ./e2e/bun.lock file
    • Reverts all peer dependencies back to "*"

USAGE

bun run test:e2e:published <version_number>

Example:

bun run test:e2e:published 8.0.0-prealpha-886.4
image

version that doesn't work

image

@Ansonhkg Ansonhkg requested a review from GTC6244 August 22, 2025 23:59
@Ansonhkg Ansonhkg self-assigned this Aug 22, 2025
Copy link
Contributor

@GTC6244 GTC6244 left a comment

Choose a reason for hiding this comment

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

lgtm!

@Ansonhkg Ansonhkg merged commit b68cd43 into naga_add_hardcoded_keysets Aug 23, 2025
2 of 3 checks passed
@Ansonhkg Ansonhkg deleted the feature/jss-43-a-script-to-test-published-sdk branch August 23, 2025 12:01
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