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

@soundweave/test-kit

v1.1.0

Published

Fixtures and test utilities for SoundWeave packages

Readme

@soundweave/test-kit

Soundweave 软件包的测试用例、示例包和测试工具。

包含内容

  • 用于测试的 JSON 格式测试用例文件(包含最简示例包、完整性测试示例包和无效示例包)
  • 测试用例加载工具
  • 测试用例路径解析

主要导出内容

import { FIXTURES, loadFixture, fixturePath } from "@soundweave/test-kit";

const pack = loadFixture(FIXTURES.MINIMAL_PACK);

测试用例

| 常量 | 测试用例文件 | 用途 | |----------|-------------|---------| | MINIMAL_PACK | minimal-pack.json | 最简单的有效示例包 | | STARTER_PACK | starter-pack.json | 更丰富的入门示例包 | | INVALID_MISSING_META | invalid-pack-missing-meta.json | 模式验证:缺少元数据 | | INVALID_BAD_TRANSITION | invalid-pack-bad-transition.json | 模式验证:无效的转换 | | INVALID_EMPTY_SCENE_LAYERS | invalid-pack-empty-scene-layers.json | 模式验证:层为空 | | INVALID_BAD_ASSET_DURATION | invalid-pack-bad-asset-duration.json | 模式验证:持续时间无效 | | INTEGRITY_VALID | integrity-valid-pack.json | 完整性:完整示例包 | | INTEGRITY_MISSING_ASSET_REF | integrity-missing-asset-ref.json | 完整性:资源引用损坏 | | INTEGRITY_MISSING_STEM_REF | integrity-missing-stem-ref.json | 完整性:主音引用损坏 | | INTEGRITY_MISSING_SCENE_REF | integrity-missing-scene-ref.json | 完整性:场景引用损坏 | | INTEGRITY_DUPLICATE_IDS | integrity-duplicate-ids.json | 完整性:ID 重复 | | INTEGRITY_SELF_REFERENCE | integrity-self-reference-pack.json | 完整性:实体自引用 | | INTEGRITY_UNUSED_ENTITIES | integrity-unused-entities.json | 完整性:未使用的实体 |

不包含的内容

  • 应用程序级别的测试(这些测试位于每个软件包的 test/ 目录中)
  • 测试运行器配置(每个软件包都有自己的 vitest.config.ts 文件)