chore(pusher-web): initial implementation#2224
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
AI Code Review
What was reviewed
Skipped (out of scope): CI checks could not be retrieved (command requires approval in this environment). Findings🔶 Medium — No unit testsFile: import { render } from "@testing-library/react";
import { actionValue, obj } from "@mendix/widget-plugin-test-utils";
import Pusher from "../Pusher";
const defaultProps = {
name: "pusher1",
class: "",
objectSource: /* ListValueBuilder or DynamicValue mock */ undefined as any,
notifyActionName: "change",
notifyEventAction: actionValue()
};
describe("Pusher", () => {
it("renders without crashing when objectSource is unavailable", () => {
const { container } = render(<Pusher {...defaultProps} />);
expect(container.firstChild).toBeInTheDocument();
});
// test that notifyEventAction.execute() is called when onEvent fires
});Also cover 🔶 Medium — Stale
|
AI Code Review
What was reviewed
Skipped (out of scope): CI checks could not be retrieved (permissions); manual verification recommended. Findings🔶 Medium — Empty test file with only TODO commentsFile: import { render } from "@testing-library/react";
import { actionValue } from "@mendix/widget-plugin-test-utils";
import Pusher from "../Pusher";
const defaultProps = {
name: "pusher1",
class: "",
objectSource: /* ListValueBuilder */ ...,
notifyActionName: "change",
notifyEventAction: actionValue()
};
describe("Pusher", () => {
it("renders without crashing", () => {
const { container } = render(<Pusher {...defaultProps} />);
expect(container.querySelector(".widget-pusher")).toBeTruthy();
});
// Test action execution, loading state, null objectSource, etc.
});🔶 Medium —
|
Pull request type
Description