-
Notifications
You must be signed in to change notification settings - Fork 284
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
chore(repo): Introduce integration test for vite with sdk-node #1921
Conversation
|
3bb7dc0
to
dba7225
Compare
dba7225
to
d5ff6c6
Compare
d5ff6c6
to
361dc31
Compare
361dc31
to
9f6e819
Compare
f96d40a
to
9f5e433
Compare
} else { | ||
// since we have moved the integrations outside the monorepo we should fallback to * in case | ||
// of empty version for non Clerk packages (eg next should install the latest version) | ||
dependencies.set(name, '*'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikosdouvlis PTAL this changes as it affect what version we expect to use in our integration tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replaced this change with the following actions:
- drop default
*
version - move the logic to link our packages to local folders in the presets to avoid polluting the
ApplicationConfig
model with Clerk-specific logic.
cc: @nikosdouvlis
9f5e433
to
2a11c7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
294d4b8
to
3232bc4
Compare
This change will help us avoid accidentally using top-level node_modules/ from the current monorepo and will allow us to run tests isolated from the monorepo related dependencies. We had to use a folder outside the monorepo for the integration tests to avoid having the npm module resolution algorithm find unrelated dependencies.
3232bc4
to
d8f6a05
Compare
Description
Add integration test to verify that
@clerk/shared
tree-shaking works in backend application that do not usereact
as dependency.We have introduced an Express + Vite template application that uses
@clerk/clerk-sdk-node
with the following endpoints/api/protected
endpoint that usesexpressRequireAuth()
from@clerk/clerk-sdk-node
to verify authentication/sign-in
renders HTML that mounts<SignIn/>
client-side component using ClerkJS/sign-up
renders HTML that mounts<SignUp/>
client-side component using ClerkJS/protected
renders HTMLSignedIn
orSignedOut
context and makes a request to the/api/protected
to fetch the response that will be appended in body and asserted via playwright.#1883
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change
Packages affected
@clerk/clerk-js
@clerk/clerk-react
@clerk/nextjs
@clerk/remix
@clerk/types
@clerk/themes
@clerk/localizations
@clerk/clerk-expo
@clerk/backend
@clerk/clerk-sdk-node
@clerk/shared
@clerk/fastify
@clerk/chrome-extension
gatsby-plugin-clerk
build/tooling/chore