1import { describe, it, expect } from "vitest";
2import { os, version, isTV, selectImpl } from "../src/Yoga/React/Native/Platform.js";
4describe("Platform FFI", () => {
5 it("os is a string", () => {
6 expect(typeof os).toBe("string");
9 it("version is defined", () => {
10 expect(version).toBeDefined();
13 it("isTV is a boolean", () => {
14 expect(typeof isTV).toBe("boolean");
17 it("selectImpl picks a platform value", () => {
18 const result = selectImpl({ macos: "mac", default: "other" });
19 expect(result).toBe("mac");
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