Skip to content

Commit 6898018

Browse files
EvanBaconclaude
andcommitted
Add comprehensive Swift Package Manager tests
Add 24 tests covering: - XCLocalSwiftPackageReference: create, getDisplayName, is() - XCRemoteSwiftPackageReference: parsing, all 6 version requirement types - XCSwiftPackageProductDependency: parsing, create with local/remote refs - Round-trip serialization for all SPM types Also fix XCSwiftPackageProductDependency.getObjectProps() to properly declare `package` as a reference property, enabling automatic inflation/deflation of package references. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 05fbf7f commit 6898018

2 files changed

Lines changed: 394 additions & 1 deletion

File tree

src/api/XCSwiftPackageProductDependency.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export class XCSwiftPackageProductDependency extends AbstractObject<XCSwiftPacka
2929
}
3030

3131
protected getObjectProps() {
32-
return {};
32+
return {
33+
package: String,
34+
};
3335
}
3436

3537
getDisplayName(): string {

0 commit comments

Comments
 (0)