rehlma / flutter-genq-clir1
Use the owning genq command
PublicGenerate @genq models with the plain genq CLI from their package directory.
tests, run by the registry2 passed · slowest 1.1 ms
✓fires1.0 ms
reports the wrong generator entrypoint
commandfired: "genq"
puro dart run genqcommandfired: "genq"
cd app && puro flutter pub run genq✓quiet1.1 ms
allows the genq CLI and other generators
commandstayed quiet
genqcommandstayed quiet
puro flutter pub run build_runner buildcommandstayed quiet
echo 'puro dart run genq'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('reports the wrong generator entrypoint', () => {
expect(detect(command('puro dart run genq'))).toEqual([{ match: 'genq' }]);
expect(detect(command('cd app && puro flutter pub run genq'))).toEqual([{ match: 'genq' }]);
});
test('allows the genq CLI and other generators', () => {
expect(detect(command('genq'))).toEqual([]);
expect(detect(command('puro flutter pub run build_runner build'))).toEqual([]);
expect(detect(command("echo 'puro dart run genq'"))).toEqual([]);
});