@gtkx/cli 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/create.js CHANGED
@@ -107,6 +107,7 @@ import { strict as assert } from "node:assert";`;
107
107
  const afterEachFn = testing === "node" ? "after" : "afterEach";
108
108
  const assertion = testing === "node" ? `assert.ok(button, "Button should be rendered");` : `expect(button).toBeDefined();`;
109
109
  return `${imports}
110
+ import { AccessibleRole } from "@gtkx/ffi/gtk";
110
111
  import { cleanup, render, screen } from "@gtkx/testing";
111
112
  import App from "../src/app.js";
112
113
 
@@ -117,7 +118,7 @@ ${afterEachFn}(async () => {
117
118
  describe("App", () => {
118
119
  it("renders the increment button", async () => {
119
120
  await render(<App />, { wrapper: false });
120
- const button = await screen.findByRole("button", { name: "Increment" });
121
+ const button = await screen.findByRole(AccessibleRole.BUTTON, { name: "Increment" });
121
122
  ${assertion}
122
123
  });
123
124
  });
@@ -20,6 +20,7 @@ export const createDevServer = async (options) => {
20
20
  ...viteConfig?.optimizeDeps,
21
21
  noDiscovery: true,
22
22
  include: [],
23
+ exclude: ["react-dom"],
23
24
  },
24
25
  ssr: {
25
26
  ...viteConfig?.ssr,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtkx/cli",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "CLI for GTKX - create and develop GTK4 React applications",
5
5
  "license": "MPL-2.0",
6
6
  "author": "Eugenio Depalo <eugeniodepalo@gmail.com>",
@@ -47,8 +47,8 @@
47
47
  "@vitejs/plugin-react": "5.1.2",
48
48
  "citty": "0.1.6",
49
49
  "vite": "7.2.7",
50
- "@gtkx/ffi": "0.2.3",
51
- "@gtkx/react": "0.2.3"
50
+ "@gtkx/ffi": "0.2.5",
51
+ "@gtkx/react": "0.2.5"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "^19"