insta-snapshots

v2026.09.24

Review and update Oxc Insta snapshots non-interactively after expected output changes or snapshot test failures.

GitHub
安装命令
npx skhub add oxc-project/insta-snapshots
Markdown
SKILL.md

Insta snapshots

Run the affected test to generate pending snapshots. Use cargo insta pending-snapshots and read the old .snap and new .snap.new outputs to decide whether each change matches the intended behavior.

Use the CLI instead of the interactive cargo insta review UI or manually editing expected output:

cargo insta pending-snapshots
cargo insta accept --snapshot <snapshot_name>

Scope acceptance to the reviewed snapshots from this task; check cargo insta accept --help if a name or package filter is ambiguous. Avoid workspace-wide acceptance or rejection when unrelated pending snapshots exist. Fix unexpected output in the implementation before accepting it.

After accepting, inspect the snapshot diff and rerun the affected test. Finish with the intended .snap updates and no task-generated .snap.new files left pending. Updating snapshots does not itself call for a commit.

Snapshots record expected output, including successful output in some crates. Linter diagnostic snapshots are under crates/oxc_linter/src/snapshots/; other crates have their own locations. Conformance .snap.md reports use a separate update mechanism; inspect the producing test harness rather than treating them as Insta pending snapshots.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

.agents/skills/insta-snapshots

默认分支

main

最新提交

d1dbd71

Tree SHA

4e78353