It would also be nice to have better FTS support, currently they just show as `[object Object]`.
It would also be nice to have better FTS support, currently they just show as
[object Object]./cfrole@lumenize/testingcloudflare:testjson-rpc-mixinjson-rpc-mixinjson-rpc-mixinjson-rpc-mixinrouteDORequestrouteAgentRequest{ cors: true }{ cors: true }lumenizeagentsagentsagents{ cors: false}it('shows basic 5-step test', async () => {
// 1. Create RPC testing client and Browser instance
await using client = createTestingClient<MyDOType>('MY_DO', '5-step');
const browser = new Browser();
// 2. Pre-populate storage via RPC to call asycn KV API
await client.ctx.storage.put('count', 10);
// 3. Make a fetch and RPC call to increment
const resp = await browser.fetch('https://test.com/my-do/5-step/increment');
const rpcResult = await client.increment();
// 4. Confirm that results are as expected
expect(await resp.text()).toBe('11');
expect(rpcResult).toBe(12); // Notice this is a number not a string
// 5. Verify that storage is correct via RPC
expect(await client.ctx.storage.kv.get('count')).toBe(12);
});