@terreno/ui 0.17.0 → 0.18.0

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/package.json CHANGED
@@ -136,5 +136,5 @@
136
136
  "test:coverage": "TZ=America/New_York bun run ../scripts/check-coverage.ts",
137
137
  "types": "bun typedoc"
138
138
  },
139
- "version": "0.17.0"
139
+ "version": "0.18.0"
140
140
  }
@@ -1,5 +1,5 @@
1
1
  import {describe, expect, it, mock} from "bun:test";
2
- import {act, fireEvent, waitFor} from "@testing-library/react-native";
2
+ import {act, fireEvent, render, waitFor} from "@testing-library/react-native";
3
3
 
4
4
  import {Button} from "./Button";
5
5
  import {renderWithTheme} from "./test-utils";
@@ -263,4 +263,10 @@ describe("Button", () => {
263
263
  );
264
264
  expect(toJSON()).toMatchSnapshot();
265
265
  });
266
+
267
+ it("renders without a ThemeProvider using default context theme", () => {
268
+ const {toJSON} = render(<Button onClick={() => {}} text="No theme" />);
269
+ // The ThemeContext provides a default computed theme, so the button renders
270
+ expect(toJSON()).toBeTruthy();
271
+ });
266
272
  });