Skip to content

fix(repo): Always load local clerk-js when running integration tests #2025

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

Merged
merged 4 commits into from
Nov 3, 2023

Conversation

nikosdouvlis
Copy link
Member

@nikosdouvlis nikosdouvlis commented Nov 3, 2023

Description

  • Add http-server as a dep
  • Promisify treekill to correctly await it
  • Serve locally-built clerk-js files using http-server
  • Install and serve clerk-js from verdaccio on CICD

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/backend
  • @clerk/chrome-extension
  • @clerk/clerk-js
  • @clerk/clerk-expo
  • @clerk/fastify
  • gatsby-plugin-clerk
  • @clerk/localizations
  • @clerk/nextjs
  • @clerk/clerk-react
  • @clerk/remix
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/themes
  • @clerk/types
  • build/tooling/chore

@nikosdouvlis nikosdouvlis requested a review from a team as a code owner November 3, 2023 07:41
Copy link

changeset-bot bot commented Nov 3, 2023

⚠️ No Changeset found

Latest commit: 8ccef7e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@nikosdouvlis nikosdouvlis merged commit 5eb3241 into main Nov 3, 2023
@nikosdouvlis nikosdouvlis deleted the nikos/e2e-load-clerkjs-from-local branch November 3, 2023 07:47
- name: Run Integration Tests
run: npm run test:integration:${{ matrix.test-name }}
run: E2E_APP_CLERK_JS_DIR=$RUNNER_TEMP npm run test:integration:${{ matrix.test-name }}
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Define the env var in the env section below that script

Copy link
Member Author

Choose a reason for hiding this comment

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

Opening a second PR, thanks @LekoArts that's cleaner

@@ -63,9 +61,10 @@ export const application = (config: ApplicationConfig, appDirPath: string, appDi
stderr: opts.detached ? fs.openSync(stderrFilePath, 'a') : undefined,
log: opts.detached ? undefined : log,
});
// const shouldRetry = () => proc.exitCode !== 0 && proc.exitCode !== null;
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Dead comment

Copy link
Member Author

Choose a reason for hiding this comment

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

This should've been a todo - changing it in the new PR

@dimkl dimkl changed the title Always load local clerk-js when running integration tests fix(repo): Always load local clerk-js when running integration tests Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants