Skip to content

Commit c84c876

Browse files
engalarclaude
authored andcommitted
fix: run mx update-widgets before mx check in integration tests
Widget templates embedded in mxcli may have fewer properties than the mpk version bundled with mxbuild. Running update-widgets before check ensures the widget definitions are synchronized, preventing CE0463. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 414ddbb commit c84c876

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

mdl/executor/roundtrip_mxcheck_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ func runMxCheck(t *testing.T, projectPath string) (string, error) {
3131
return "", fmt.Errorf("mx binary not found")
3232
}
3333

34+
// Update widgets before checking — ensures widget definitions match templates.
35+
// Without this, programmatically created widgets may trigger CE0463 if the
36+
// embedded template has fewer/more properties than the mpk version expects.
37+
updateCmd := exec.Command(mxPath, "update-widgets", projectPath)
38+
updateCmd.CombinedOutput() // best-effort, ignore errors
39+
3440
cmd := exec.Command(mxPath, "check", projectPath)
3541
output, err := cmd.CombinedOutput()
3642
return string(output), err

0 commit comments

Comments
 (0)