Skip to content

chore: added .only for karma tests#5245

Closed
jhefferman-sfdc wants to merge 2 commits intomasterfrom
jhefferman/only-for-karma
Closed

chore: added .only for karma tests#5245
jhefferman-sfdc wants to merge 2 commits intomasterfrom
jhefferman/only-for-karma

Conversation

@jhefferman-sfdc
Copy link
Contributor

Details

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

@jhefferman-sfdc jhefferman-sfdc requested a review from a team as a code owner February 27, 2025 17:20
Copy link
Contributor

@wjhsf wjhsf left a comment

Choose a reason for hiding this comment

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

Can this logic be shared with the other karma .only checks?

// You can add an `.only` file alongside an `index.spec.js` file to make it `fdescribe()`
const onlyFileExists = await existsUp(suiteDir, '.only');

// check if a .only file exists
const onlyFile = globSync('**/*/.only', { cwd: BASE_DIR, absolute: true });

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.

2 participants