Skip to content

Commit

Permalink
chore(aliasing): tests import aliasing (#977)
Browse files Browse the repository at this point in the history
* chore(aliasing): tests import aliasing

Signed-off-by: sanketshevkar <[email protected]>

* fix(aliasing): add new tests

Signed-off-by: sanketshevkar <[email protected]>

* fix(aliasing): add new tests

Signed-off-by: sanketshevkar <[email protected]>

* fix(aliasing): add new tests

Signed-off-by: sanketshevkar <[email protected]>

* fix(aliasing): upgrade glob to v11 to fix rimraf issue in concerto-types

Signed-off-by: sanketshevkar <[email protected]>

* fix(aliasing): update coverage scollection script for globe upgarde

Signed-off-by: sanketshevkar <[email protected]>

* fix(aliasing): update coverage scollection script for globe upgarde

Signed-off-by: sanketshevkar <[email protected]>

* fix(aliasing): update coverage scollection script for globe upgarde

Signed-off-by: sanketshevkar <[email protected]>

* fix(aliasing): update coverage scollection script for globe upgarde

Signed-off-by: sanketshevkar <[email protected]>

* fix(aliasing): concerto-metamodel bump

Signed-off-by: sanketshevkar <[email protected]>

* fix(aliasing): new test

Signed-off-by: sanketshevkar <[email protected]>

* fix(aliasing): fix test data

Signed-off-by: sanketshevkar <[email protected]>

---------

Signed-off-by: sanketshevkar <[email protected]>
  • Loading branch information
sanketshevkar authored Jan 17, 2025
1 parent 85366be commit 41d1ab0
Show file tree
Hide file tree
Showing 20 changed files with 1,699 additions and 466 deletions.
1,129 changes: 670 additions & 459 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"devDependencies": {
"@types/jest": "^29.5.14",
"dayjs": "1.11.13",
"glob": "^7.2.0",
"glob": "^11.0.1",
"license-check-and-add": "4.0.5",
"nyc": "17.1.0",
"semver": "7.6.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/concerto-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
},
"dependencies": {
"@accordproject/concerto-cto": "3.20.1",
"@accordproject/concerto-metamodel": "3.10.4",
"@accordproject/concerto-metamodel": "3.11.0",
"@accordproject/concerto-util": "3.20.1",
"dayjs": "1.11.13",
"debug": "4.3.7",
Expand Down
7 changes: 7 additions & 0 deletions packages/concerto-core/test/data/aliasing/child.cto
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace [email protected]

concept Child {
o Integer age
}

scalar FullName extends String
23 changes: 23 additions & 0 deletions packages/concerto-core/test/data/aliasing/parent.cto
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@test(Kid)
namespace [email protected]

import [email protected].{FullName as KidFullName,Child as Kid}

@test(Kid)
concept Child extends Kid {
@test(Kid)
o Kid kid
o KidFullName name
}

concept Student extends Child {
o String schoolName
o Child myChild
}

@test(Kid)
map KidIndex {
o KidFullName
@test(Kid)
o Kid
}
Loading

0 comments on commit 41d1ab0

Please sign in to comment.