-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Plugable evaluators #13
Conversation
f5ec130
to
c0b9d7b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
test/utils.ts
Outdated
test(t.expression, () => { | ||
for (const test of t.tests.filter( | ||
(test_) => test_.type === 'evaluation', | ||
) as ExpressionTestEvaluation[]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also use a predicate here instead of asserting.
(e) => { | ||
console.error(e); | ||
}, | ||
undefined, | ||
Evaluator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing to address now but maybe the args would be nicer as an object in future.
No description provided.