Compare commits

...
Author SHA1 Message Date
Thomas Camlong b699fdcd34 fix: run CI for slash-named branches 2026-08-15 12:58:44 +02:00
Thomas Camlong ce7230e1aa fix: complete location input test options 2026-08-15 12:57:12 +02:00
2 changed files with 7 additions and 8 deletions

No files matched your search

+2 -2
View File
@@ -3,10 +3,10 @@ name: CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: ["*"]
branches: ["**"]
pull_request_target:
types: [closed]
branches: ["*"]
branches: ["**"]
push:
branches: [main, dev, beta, next, v2]
merge_group:
@@ -7,8 +7,12 @@ import type { Root } from "react-dom/client";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { WidgetLocationInput } from "./widget-location-input";
import { optionsBuilder } from "../options";
const defaultLocation = { name: "Paris", latitude: 48.8566, longitude: 2.3522 };
const locationOptions = optionsBuilder.from((factory) => ({
location: factory.location({ defaultValue: defaultLocation }),
})).location;
const mocks = vi.hoisted(() => ({
values: {} as Record<string, unknown>,
@@ -79,12 +83,7 @@ afterEach(async () => {
const renderInput = async () => {
await act(async () => {
root.render(
<WidgetLocationInput
kind="weather"
property="location"
options={{ defaultValue: defaultLocation }}
initialOptions={{}}
/>,
<WidgetLocationInput kind="weather" property="location" options={locationOptions} initialOptions={{}} />,
);
});
};