Open
Conversation
gemanor
reviewed
Jun 8, 2025
Collaborator
gemanor
left a comment
There was a problem hiding this comment.
Looks good. Please attach a loom/screencast of the feature with some edge cases
| const name = 'test-tenant-' + randomName('', ''); | ||
| refTenantId.current = name; | ||
| if (dryRun) { | ||
| // eslint-disable-next-line sonarjs/no-duplicate-string |
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.
Pull Request
Description
Use any combination from the given comand:
npx tsx ./source/cli.tsx test generate e2e --models=ABAC --models=RBAC --path=zz.json --dry-run --snippet=jest --snippet-path=a.test.jsCombinations used in demo
CLI Command Combinations for Test Generation
1. Original command - Generate E2E tests for both ABAC and RBAC models with Jest snippets (dry run)
npx tsx ./source/cli.tsx test generate e2e --models=ABAC --models=RBAC --path=zz.json --dry-run --snippet=jest --snippet-path=a.test.js2. ABAC model only - Generate E2E tests for ABAC model with Jest snippets (dry run)
npx tsx ./source/cli.tsx test generate e2e --models=ABAC --path=abac-tests.json --dry-run --snippet=jest --snippet-path=abac.test.js3. RBAC model only - Generate E2E tests for RBAC model with Jest snippets (dry run)
npx tsx ./source/cli.tsx test generate e2e --models=RBAC --path=rbac-tests.json --dry-run --snippet=jest --snippet-path=rbac.test.js4. No snippets - Generate only the test configuration without code snippets
npx tsx ./source/cli.tsx test generate e2e --models=ABAC --models=RBAC --path=config-only.json --dry-run5. Minimal command - Basic test generation without optional parameters
npx tsx ./source/cli.tsx test generate e2e --models=RBAC --models=ABACDemo was done on this configuration

https://www.loom.com/share/af278739f61f47aba2e66ecd95180359
Type of Change
Checklist
mainwith an appropriate name (e.g.,fix/issue-123,feature/new-command)New Command Details (if applicable)
src/commandsdirectoryAuthProvidercomponentapiKeyargumentAdditional Notes
Screenshots/Recordings