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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Unit Testing JavaScript Without Node or a Browser

1 点作者 nigelgutzmann超过 8 年前
I am working on a project that contains some scripts to automate Adobe After Effects and I'd like to do some Unit Testing on those scripts. Ideally, the unit tests would be able to run in After Effects and be able to manipulate things in an After Effects project file. All of the Javascript unit testing tools I can find (mocha, jasmine, qunit, etc) seem to require node or a browser, both of which aren't applicable for my use-case. Any ideas on a framework that I could use?

1 comment

andreicon超过 8 年前
Isn&#x27;t the js vm you&#x27;re running code in kinda like a browser? Anyway, searching the web for &quot;adobe after efects javascript&quot; yielded this result: <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;after-effects" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;after-effects</a> maybe it could be of use.<p>EDIT: it seems this package acts like a connector so you could (in theory at least) npm require this package, then plug in your code, dev require a js testing framework and run some tests.