binbin
binbin
SSolidJS
Created by binbin on 1/29/2024 in #support
Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted...
We are facing this rather flakey error when upgrading to the new Solid Start Beta 0.4. Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. There had been so many package upgraded that I don't know for sure what is the culprit. Please note, this is flakey. It works half the time when we refresh. It's not consistent. "node": ">=20.5" "solid": "^1.8.11", "vite": "^4.4.9", "@solidjs/meta": "^0.29.2", "@solidjs/router": "^0.10.10", "@solidjs/start": "^0.4.10",
1 replies
SSolidJS
Created by binbin on 7/24/2023 in #support
testing createRouteAction$ using vitest
Hi all! How do I go about testing createServerAction$ in vitest? I'm basically writing
export function SomeComponent(props) {
const [action, { Form }] = createServerAction$(async (formData: FormData) => {
console.log('validationStuff');
return true;
});

return (
<Form>...</Form>
);
}
export function SomeComponent(props) {
const [action, { Form }] = createServerAction$(async (formData: FormData) => {
console.log('validationStuff');
return true;
});

return (
<Form>...</Form>
);
}
but when writing a simple vitest(by calling a "fireEvent.click(formButton);", the console.log is not hit at all. Are there fetch events to resolve? Or am I confusing both a frontend/backend test at the same? Thanks!
1 replies