fix(core): Allow $evaluateExpression to resolve in task runners (#14641)

This commit is contained in:
Iván Ovejero
2025-04-15 20:27:26 +02:00
committed by GitHub
parent 57444d3a16
commit 7c1be05845
3 changed files with 11 additions and 31 deletions

View File

@@ -1504,4 +1504,15 @@ describe('JsTaskRunner', () => {
});
});
});
describe('expressions', () => {
it('should evaluate expressions with $evaluateExpression', async () => {
const outcome = await executeForAllItems({
code: "return { val: $evaluateExpression('{{ 1 + 1 }}') }",
inputItems: [],
});
expect(outcome.result).toEqual([wrapIntoJson({ val: 2 })]);
});
});
});