repos / starfx

supercharged async flow control library.
git clone https://github.com/neurosnap/starfx.git

starfx / test
Eric Bower · 23 Feb 24

react.test.ts

 1import { asserts, describe, it } from "../test.ts";
 2import { Provider } from "../react.ts";
 3import { createSchema, createStore, slice } from "../store/mod.ts";
 4import { React } from "../deps.ts";
 5
 6const tests = describe("react");
 7
 8// typing test
 9it(tests, () => {
10  const [schema, initialState] = createSchema({
11    cache: slice.table(),
12    loaders: slice.loaders(),
13  });
14  const store = createStore({ initialState });
15  React.createElement(
16    Provider,
17    { schema, store, children: React.createElement("div") },
18  );
19  asserts.equal(true, true);
20});