Skip to content

Commit caa7c16

Browse files
fix create-element-to-jsx error test for current CLI output
Accept Workflow failed / runtime javascript phrasing so CI matches codemod@latest error reporting. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3f227c8 commit caa7c16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codemods/create-element-to-jsx/scripts/error-tests.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ test("throws on unsupported props literal", () => {
4343
const result = runCodemod("var React = require('react/addons');\nReact.createElement('foo', 1);\n");
4444
const combined = `${result.stdout}\n${result.stderr}`;
4545
assert.match(combined, /Unexpected attribute of type .*Literal/);
46-
assert.match(combined, /Failed to execute codemod|InitializationFailed/);
46+
assert.match(combined, /Failed to execute codemod|InitializationFailed|Workflow failed after|codemod::runtime::javascript/);
4747
});

0 commit comments

Comments
 (0)