You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This tests passes in isolation but fails when run with the rest of the repo:
I've noticed that foo: "Function" incorrectly gets pruned to foo: "object" in this case but can't figure out where.
it("multiple switch",()=>{consttypes=scope({a: {foo: "string"},b: {foo: "number"},c: {foo: "Function"},d: "a|b|c",}).export();// attest(types.d({}).toString()).snap(// "foo must be a number, an object or a string (was undefined)"// )// this could be improved, currently a bit counterintuitive because of// the inconsistency between `domainOf` and typeofattest(types.d({foo: null}).toString()).snap("foo must be a function (was null)");});
The text was updated successfully, but these errors were encountered:
ssalbdivad
changed the title
Fix discriminant caching issue. This tests passes in isolation but fails when run with the rest of the repo:
Fix discriminant caching issue
May 31, 2024
This tests passes in isolation but fails when run with the rest of the repo:
I've noticed that
foo: "Function"
incorrectly gets pruned tofoo: "object"
in this case but can't figure out where.The text was updated successfully, but these errors were encountered: