Regenerating Goldenfiles

Regenerates DTS goldenfiles after d.ts generation logic changes. Use when dts tests fail due to expected output changes, when asked to update goldenfiles, or after modifying the d.ts generator.

golemcloud 15092ba 897 B Updated

File contents

Regenerating DTS Goldenfiles

The dts tests compare generated .d.ts output against checked-in golden files in tests/goldenfiles/.

When to Regenerate

When you modify the d.ts generation logic in crates/wasm-rquickjs/src/ and the dts tests fail because the output has intentionally changed.

Steps

# 1. Regenerate the golden files
UPDATE_GOLDENFILES=1 cargo test --test dts

# 2. Review the changes
git diff tests/goldenfiles/

# 3. Verify the changes are intentional before committing

Verification

After regenerating, run the tests normally to confirm they pass:

cargo test --test dts -- --nocapture

golemcloud/wasm-rquickjs/tree/main/.agents/skills/regenerating-goldenfiles commit 15092bab56

Frequently asked questions

npx skillmds@latest add golemcloud/regenerating-goldenfiles