Alexander
9334e152b4
Allow identifiers in TypeScript/JavaScript test names ( #32467 )
...
Current behavior (not detected as runnable):
<img width="1105" alt="image"
src="https://github.com/user-attachments/assets/7d3b7936-43d8-4645-bbbb-e81ed5f9b35a "
/>
New behavior:
https://github.com/user-attachments/assets/524e2a56-cb30-4dc0-98ec-b34b510015e0
Release Notes:
- Improved detection of runnable TypeScript/JavaScript test cases when
they contain identifier
2025-06-10 18:00:42 +02:00
Alexander and Piotr Osiewicz
6fe58a2c4e
Allow to run dynamic TypeScript and JavaScript tests ( #31499 )
...
First of all thank you for such a fast editor!
I realized that the existing support for detecting runnable test cases
for typescript/javascript is not full. Meanwhile I can run most of test
by pressing "run button":
<img width="713" alt="image"
src="https://github.com/user-attachments/assets/e8bb1cb1-f0a5-4eb1-b9a6-7188a9fa47ae "
/>
I can't run dynamic tests:
<img width="703" alt="image"
src="https://github.com/user-attachments/assets/d7eef1bc-e99a-4f05-9d62-ec49b8194959 "
/>
I was curious whether I can improve it on my own and created this pr. I
edited schemas and added minor changes in `TaskTemplate` to allow to
replace '%s' with regexp pattern, so it can match test cases:
<img width="772" alt="image"
src="https://github.com/user-attachments/assets/db3a6fe0-ad90-4853-8e98-4215e41dfe88 "
/>
Release Notes:
- Allow to run dynamic TypeScript/JavaScript tests
---------
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com >
2025-06-09 12:13:25 +02:00
Remco Smits
e58cdca044
Added JavaScript runnable detection for context and suite methods ( #21719 )
...
Fixes
https://github.com/zed-industries/zed/pull/21246#issuecomment-2525578141
<img width="545" alt="Screenshot 2024-12-08 at 22 58 33"
src="https://github.com/user-attachments/assets/2f303bfe-9718-4aa9-910e-613feca15ea8 ">
<img width="409" alt="Screenshot 2024-12-08 at 22 58 44"
src="https://github.com/user-attachments/assets/c4576cf7-fd71-44d2-911e-3ed944c9b794 ">
Release Notes:
- Added JavaScript runnable detection for `context` and `suite` methods
for mochajs framework
2024-12-09 13:17:51 +02:00
Remco Smits
fd71801346
Improve JavaScript runnable detection followup ( #21363 )
...
Followup: https://github.com/zed-industries/zed/pull/21246
**Before**
<img width="545" alt="Screenshot 2024-11-30 at 13 27 15"
src="https://github.com/user-attachments/assets/3346e485-96c8-482d-b5fd-85b86f37d662 ">
**After**
<img width="537" alt="Screenshot 2024-11-30 at 13 27 36"
src="https://github.com/user-attachments/assets/3cedcaa5-e285-47fb-909d-16d37d9844ca ">
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
2024-11-30 13:55:14 +01:00
Remco Smits
04ff9f060c
Improve runnable detection for JavaScript files ( #21246 )
...
Closes #21242


Release Notes:
- Improved runnable detection for JavaScript/Typescript files.
2024-11-28 00:54:01 +01:00
Piotr Osiewicz
9dfe4a30bb
languages: Do not expose unnecessary captures from tasks ( #19625 )
...
This tackles an issue with us exposing unnecessary env variables in
environment which are not actually needed for tasks themselves (and may
have little utility), yet come into the way of ssh remoting.
/cc @ConradIrwin
Release Notes:
- N/A
2024-10-23 18:54:08 +02:00
Remco Smits
29b5253a1d
JavaScript: Add runnable tests ( #12118 )
...
https://github.com/zed-industries/zed/assets/62463826/2912c940-bd00-483d-9ce7-df1a2539560a
Release Notes:
- Added runnable tests for JavaScript & Typescript files.
- Added task to run selected javascript code.
2024-06-01 14:28:53 +02:00