checkpoint: pre-split branch cleanup
This commit is contained in:
parent
4c2ae2e5b7
commit
b5db7a7753
276 changed files with 35912 additions and 60119 deletions
|
|
@ -50,7 +50,7 @@ describe('URL State Integration - bb-ui2.22', () => {
|
|||
const sp = createMockSearchParams({ view: 'graph' });
|
||||
const state = parseUrlState(sp);
|
||||
assert.strictEqual(state.view, 'graph');
|
||||
assert.strictEqual(state.graphTab, 'flow');
|
||||
assert.strictEqual(state.graphTab, 'overview');
|
||||
});
|
||||
|
||||
it('/?view=graph&task=bb-buff.1 - graph with task selected', () => {
|
||||
|
|
@ -135,7 +135,7 @@ describe('URL State Integration - bb-ui2.22', () => {
|
|||
it('/?view=graph&graphTab=invalid - invalid graphTab defaults to flow', () => {
|
||||
const sp = createMockSearchParams({ view: 'graph', graphTab: 'invalid' });
|
||||
const state = parseUrlState(sp);
|
||||
assert.strictEqual(state.graphTab, 'flow');
|
||||
assert.strictEqual(state.graphTab, 'overview');
|
||||
});
|
||||
|
||||
it('/?panel=invalid - invalid panel defaults to open', () => {
|
||||
|
|
|
|||
14
tests/hooks/use-beads-subscription-contract.test.ts
Normal file
14
tests/hooks/use-beads-subscription-contract.test.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
|
||||
test('useBeadsSubscription triggers an initial refresh on mount', async () => {
|
||||
const file = await fs.readFile(path.join(process.cwd(), 'src/hooks/use-beads-subscription.ts'), 'utf8');
|
||||
assert.ok(file.includes("void refresh({ silent: true })"), 'expected initial refresh call');
|
||||
});
|
||||
|
||||
test('app page forces dynamic rendering to avoid stale prerendered issues', async () => {
|
||||
const file = await fs.readFile(path.join(process.cwd(), 'src/app/page.tsx'), 'utf8');
|
||||
assert.ok(file.includes("export const dynamic = 'force-dynamic';"), 'expected force-dynamic export');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue