TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Simple browser based TypeScript test and code runner

1 点作者 visrut711 个月前
I wanted a simple typescript-based test and code runner in the browser itself.<p>After some research, I found out that we can run the mocha test in the browser, and there is a Monaco editor that can provide syntax highlight and auto-complete, So I decided to add in my Angular website that I am maintaining.<p>A little bit of my code is a trick to workaround for running tests, like when you run the test it will refresh, because I couldn&#x27;t able to figure out how to clear the mocha run instance error. Let me know if you know of any workaround for this, The source code is Open Source.<p>I am maintaining a list of all small open-source tools I create here: <a href="https:&#x2F;&#x2F;www.visrut.fun&#x2F;useful&#x2F;small-tools" rel="nofollow">https:&#x2F;&#x2F;www.visrut.fun&#x2F;useful&#x2F;small-tools</a><p>Let me know what you think.<p>PS: Node.JS API won&#x27;t work here because it&#x27;s only for the browser, The idea was we could write simple logic on the left side and test it on the right side. Any kind of function or algorithm you want to write to submit on any competitive programming platform or Problem-solving platform using TypeScript.

暂无评论

暂无评论