npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

roblox-ts-jest-companion-cli

v0.1.1

Published

致谢:

Readme

jest-lua Companion CLI

致谢:

功能

  • 通过命令行运行, 命令Roblox Studio运行测试
  • 在命令行打印测试结果
  • 将测试结果中的堆栈信息, 转化为本地路径

配置

在项目根目录下创建 jest-lua-companion.config.json 文件:

{
  "roots": ["ServerScriptService/TS/Runtime"],
  "runCLI-options": {
    "ci": true,
    "clearMocks": true,
    "testNamePattern": "test.*",
    "testMatch": ["**/*.spec.lua"],
    "verbose": true
  },
  "rojoSourceMapCommand": "rojo sourcemap"
}
  • roots: 待测试的 DataModel 路径,以 / 分割. 必填
  • runCLI-options: 默认为空
    • 文档, 数组以 | 分割
    • 特例,SetupFiles: 在littensy例子中, 将 SetupFiles 对象也放到了 runCLI-options 中, 而在官方文档中, 没有获得明确信息.
    • 此处我选择为例子中的SetupFile提供默认支持,硬编码到了插件内.
    • 如果你配置更多的SetupFiles, 请在runCLI-options中配置以 |分割的DataModel路径, 同 roots 配置方式.
  • rojoSourceMapCommand: 用于获取 rojo sourcemap 的 stdout 的指令. 默认为空.

安装

注意: 仅支持windows

安装包

npm install jest-lua-companion-cli

安装插件

复制 Plugin/jest-roblox-companion-plugin.server.luaroblox 插件目录.

用法

查看帮助

npx jest-lua-companion-cli -h

运行测试

npx jest-lua-companion-cli

cli选项

支持所有 jest-lua 的 CLI 选项, 比如:

npx jest-lua-companion-cli -t "testName"

只需在终端运行 jest-lua-companion-cli。如果有多个 Place 打开,会提示你选择一个。随后会输出测试结果!

你也可以将其加入 pre-commit 钩子,在提交前确保测试通过(当然,需要你的 Place 已在 Studio 中打开)。

其他

  • 本地服务和roblox插件指向: http://127.0.0.1:28860