rehlma / flutter-sync-existing-docsr1
Update existing documentation with behavior changes
PublicWhen behavior, API or architecture already described in docs changes, update the documentation in the same change.
tests, run by the registry2 passed · slowest 1.9 ms
✓fires1.9 ms
reminds for code in a documented package
write lib/store.dart · in fixtures/flutterfired: line 1
final value = 2;✓quiet1.6 ms
is quiet without docs or on reads
write lib/store.dart · in fixtures/inlinestayed quiet
final value = 2;read lib/store.dart · in fixtures/flutterno handler of the detector wants this event
final value = 2;detector.test.tseach detect() call runs the real detector
import { expect, test } from 'vitest';
import { detect, write, edit, read, command, output, prompt } from '@wellactually/sdk/v3/test';
const flutter = { project: 'fixtures/flutter' };
const dart = { project: 'fixtures/dart' };
test('reminds for code in a documented package', () => {
expect(detect(write('lib/store.dart', 'final value = 2;'), flutter)).toEqual([{ line: 1, depth: 'pointer' }]);
});
test('is quiet without docs or on reads', () => {
expect(detect(write('lib/store.dart', 'final value = 2;'), { project: 'fixtures/inline' })).toEqual([]);
expect(detect(read('lib/store.dart', 'final value = 2;'), flutter)).toEqual([]);
});