Skip to content
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

make test spec array, use it to run tests #234593

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Conversation

meganrogge
Copy link
Contributor

No description provided.

@meganrogge meganrogge self-assigned this Nov 25, 2024
@meganrogge meganrogge added this to the November 2024 milestone Nov 25, 2024
@meganrogge meganrogge enabled auto-merge (squash) November 25, 2024 16:29
test(testSpec.input, () => {
const commandLine = testSpec.input.split('|')[0];
const cursorPosition = testSpec.input.indexOf('|');
const prefix = commandLine.slice(0, cursorPosition).split(' ').pop() || '';
Copy link
Member

Choose a reason for hiding this comment

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

nit: .at(-1) instead of pop()? pop says to me that it's important that the element is leaving the original array

@meganrogge meganrogge merged commit bef0623 into main Nov 25, 2024
8 checks passed
@meganrogge meganrogge deleted the merogge/test-revamp branch November 25, 2024 17:02
Rheasilvia pushed a commit to Rheasilvia/vscode that referenced this pull request Nov 26, 2024
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