1import { describe, it, expect } from "vitest";
2import { getImpl, useWindowDimensionsImpl } from "../src/Yoga/React/Native/Dimensions.js";
4describe("Dimensions FFI", () => {
5 it("getImpl returns scaled size", () => {
6 const dims = getImpl("window")();
7 expect(dims).toHaveProperty("width");
8 expect(dims).toHaveProperty("height");
9 expect(dims).toHaveProperty("scale");
10 expect(dims).toHaveProperty("fontScale");
13 it("useWindowDimensionsImpl is a function", () => {
14 expect(typeof useWindowDimensionsImpl).toBe("function");
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list