Comparing Schema Objects in with assert.deepEqual
Hey hey, How can I possibly get around this?
Is there any better way to compare two schema objects?
Is there any better way to compare two schema objects?
import * as Schema from "effect/Schema";
import * as assert from "assert";
// Ok
assert.deepStrictEqual(Schema.String.ast, Schema.String.ast);
// fails
assert.deepStrictEqual(
Schema.OptionFromNullOr(Schema.String).ast,
Schema.OptionFromNullOr(Schema.String).ast
);