- 41 unit and component suites under admin/tests/{app,state,shell,list,form,relation,views,ui}
covering states and a11y roles; every src module is imported by a test
- typed fixture helper assigns each JSON fixture to its generated OpenAPI type
- fix: iconFor ignores inherited object members such as "constructor"
- fix: field controls import ./control instead of the registry (import cycle
left a renderer unregistered depending on module load order)
- fix: dropdown shows the placeholder for an unknown stored value next to an emptyOption
- fix: list announces a failed schema load even when the rows arrive after it
- tailwind no longer scans admin/tests; boardwalk/dist rebuilt
13 lines
422 B
TypeScript
13 lines
422 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { clearRecordCrumb, recordCrumb, setRecordCrumb } from '../../src/state/useBreadcrumbs'
|
|
|
|
describe('record crumb', () => {
|
|
it('publishes and clears the record title', () => {
|
|
expect(recordCrumb.value).toBe('')
|
|
setRecordCrumb('Blue widget')
|
|
expect(recordCrumb.value).toBe('Blue widget')
|
|
clearRecordCrumb()
|
|
expect(recordCrumb.value).toBe('')
|
|
})
|
|
})
|