# Allow to run dynamic TypeScript and JavaScript tests \(\#31499\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6fe58a2c4ee71db16a68b3ad79824929f76a74fc)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6fe58a2c4ee71db16a68b3ad79824929f76a74fc

Requested commit: 6fe58a2c4ee71db16a68b3ad79824929f76a74fc

Commit: 6fe58a2c4ee71db16a68b3ad79824929f76a74fc

Tree: 1dbf1630914a3e6d29d0e7f331530962b083fd45

Author: Alexander

Committer: GitHub

## Message

```
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>
```

## Parents

- [79e7ccc1fe7e1cbd0cb9960e6a1a66df63158eef](https://git.cafe/gitcafe/zed/commit/79e7ccc1fe7e1cbd0cb9960e6a1a66df63158eef?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6fe58a2c4ee71db16a68b3ad79824929f76a74fc?format=markdown)
