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

Improve JavaScript runnable detection followup #21363

Conversation

RemcoSmitsDev
Copy link
Contributor

Followup: #21246

Before
Screenshot 2024-11-30 at 13 27 15
After
Screenshot 2024-11-30 at 13 27 36

We did not need to add the * as it was already matching one of them, we actually need at least one of them, so making it optional was a mistake.

Don't think we need to add release notes, as the change is only on main the branch now.

Release Notes:

  • N/A

…irst arg as string

```js
test("normal test", () => {
	expect(true).toBe(true);
});

test.skip("skip test", () => {
	expect(true).toBe(true);
});

test.only.failing("only failing test", () => {
	expect(true).toBe(true);
});

// it was matching this as runnable, which is not correct
this.b("should not be a runnable", () => {
    expect(true).toBe(true);
});
```
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 30, 2024
@RemcoSmitsDev RemcoSmitsDev changed the title Improve JavaScript runnables followup Improve JavaScript runnable detection followup Nov 30, 2024
@osiewicz osiewicz merged commit fd71801 into zed-industries:main Nov 30, 2024
13 checks passed
@osiewicz
Copy link
Contributor

Thanks!

@RemcoSmitsDev RemcoSmitsDev deleted the improve-js-runnable-detection-followup branch November 30, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants