Repository navigation
ci: run shared tests standalone - #76
Merged
Merged
Conversation
Add package.json (private nra-client-shared, inline Jest/Babel config), yarn.lock and a GitHub Actions workflow so the shared tests run without a consumer host. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YcJKachbaAqM1u1cHJDwMf
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YcJKachbaAqM1u1cHJDwMf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
package.json(private,nra-client-shared) withyarn test=jest; Jest and Babel config is inline (jsdom,@shared/*mapped to repo root, babel-jest with env/react/typescript presets, jest-dom and whatwg-fetch setup).yarn.lock(seeded from react-admin-nestjsclient/yarn.lock, pruned),.gitignore, and.github/workflows/test.yml(PR + push to main, Node 20,yarn install --frozen-lockfile,yarn test).AGENTS.md.No component code or exports changed.
Why
Tests only ran from a consumer's
client/sharedwith the consumer's Jest/Babel config. They now run in this repo's own CI with no consumer host.Result
Local: 38 suites passed, 1 skipped (
utils/testing/entities.test.js, adescribe.skippre-existing helper); 221 tests passed, 1 skipped.Consumer safety
Config lives in
package.jsononly: nobabel.config.js,.babelrcorjest.config.js. Consumer Jest reads only its own root config, and the package name is unique, so no haste collision. Nonode_modulesexist in the submodule checkout.Drift risk
Dependency versions are duplicated from the consumers'
client/package.json. Keep them in sync when consumers bump react-admin, React, Jest or testing-library.Tracking
No ops issue: buzz-code/ops was inaccessible from this session.
Generated by Claude Code