feat: add ability to push components with just the minimal data without the function json #626
Annotations
4 errors and 1 warning
|
build
Process completed with exit code 1.
|
|
error: expect(received).toEqual(expected):
__tests__/functions/functionDefinition.test.ts#L109
Expected: "import { default as jsonToXml_1_0 } from './functions/jsonToXML/1.0';\nimport { default as sayHello_1_0 } from './functions/say-hello/1.0';\n\nconst fn = {\n \"jsonToXml 1.0\": jsonToXml_1_0,\n \"sayHello 1.0\": sayHello_1_0,\n};\n\nexport default fn;\n"
Received: "import { default as sayHello_1_0 } from './functions/say-hello/1.0';\nimport { default as jsonToXml_1_0 } from './functions/jsonToXML/1.0';\n\nconst fn = {\n \"sayHello 1.0\": sayHello_1_0,\n \"jsonToXml 1.0\": jsonToXml_1_0,\n};\n\nexport default fn;\n"
at <anonymous> (/home/runner/work/cli/cli/__tests__/functions/functionDefinition.test.ts:109:46)
|
|
error: expect(received).toEqual(expected):
__tests__/functions/functionDefinition.test.ts#L94
Expected: "[{\"name\":\"jsonToXml\",\"version\":\"1.0\",\"description\":\"Convert JSON to XML\",\"label\":\"json to xml\",\"category\":\"Misc\",\"icon\":{\"name\":\"ChatIcon\",\"color\":\"Teal\"},\"options\":\"[{\\\"meta\\\":{\\\"type\\\":\\\"Text\\\"},\\\"name\\\":\\\"name\\\",\\\"label\\\":\\\"Name\\\",\\\"info\\\":\\\"The name of the XML root element.\\\",\\\"advanced\\\":false,\\\"configuration\\\":{\\\"placeholder\\\":\\\"Betty Blocks\\\"}}]\",\"yields\":\"NONE\",\"paths\":\"{}\"},{\"name\":\"sayHello\",\"version\":\"1.0\",\"description\":\"Say Hello to the world\",\"label\":\"Say Hello\",\"category\":\"Misc\",\"icon\":{\"name\":\"ChatIcon\",\"color\":\"Teal\"},\"options\":\"[{\\\"meta\\\":{\\\"type\\\":\\\"Text\\\"},\\\"name\\\":\\\"name\\\",\\\"label\\\":\\\"Name\\\",\\\"info\\\":\\\"The name that's going to be used to say hello to the world!\\\",\\\"advanced\\\":false,\\\"configuration\\\":{\\\"placeholder\\\":\\\"Betty Blocks\\\"}}]\",\"yields\":\"NONE\",\"paths\":\"{}\"}]"
Received: "[{\"name\":\"sayHello\",\"version\":\"1.0\",\"description\":\"Say Hello to the world\",\"label\":\"Say Hello\",\"category\":\"Misc\",\"icon\":{\"name\":\"ChatIcon\",\"color\":\"Teal\"},\"options\":\"[{\\\"meta\\\":{\\\"type\\\":\\\"Text\\\"},\\\"name\\\":\\\"name\\\",\\\"label\\\":\\\"Name\\\",\\\"info\\\":\\\"The name that's going to be used to say hello to the world!\\\",\\\"advanced\\\":false,\\\"configuration\\\":{\\\"placeholder\\\":\\\"Betty Blocks\\\"}}]\",\"yields\":\"NONE\",\"paths\":\"{}\"},{\"name\":\"jsonToXml\",\"version\":\"1.0\",\"description\":\"Convert JSON to XML\",\"label\":\"json to xml\",\"category\":\"Misc\",\"icon\":{\"name\":\"ChatIcon\",\"color\":\"Teal\"},\"options\":\"[{\\\"meta\\\":{\\\"type\\\":\\\"Text\\\"},\\\"name\\\":\\\"name\\\",\\\"label\\\":\\\"Name\\\",\\\"info\\\":\\\"The name of the XML root element.\\\",\\\"advanced\\\":false,\\\"configuration\\\":{\\\"placeholder\\\":\\\"Betty Blocks\\\"}}]\",\"yields\":\"NONE\",\"paths\":\"{}\"}]"
at <anonymous> (/home/runner/work/cli/cli/__tests__/functions/functionDefinition.test.ts:94:45)
|
|
error: expect(received).toMatchObject(expected):
__tests__/functions/functionDefinition.test.ts#L81
{
+ category: "Misc",
+ description: "Convert JSON to XML",
+ icon: {
+ color: "Teal",
+ name: "ChatIcon",
+ },
+ label: "json to xml",
+ options: [
+ {
+ advanced: false,
+ configuration: {
+ placeholder: "Betty Blocks",
+ },
+ info: "The name of the XML root element.",
+ label: "Name",
+ meta: {
+ type: "Text",
+ },
+ name: "name",
+ }
+ ],
+ yields: "NONE",
- label: "Say Hello",
}
- Expected - 1
+ Received + 22
at <anonymous> (/home/runner/work/cli/cli/__tests__/functions/functionDefinition.test.ts:81:18)
|
|
build
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|