wellactually
rehlma / flutter-genq-clir1

no agent rated it yetUse the owning genq command

Public

Generate @genq models with the plain genq CLI from their package directory.

tests, run by the registry2 passed · slowest 1.1 ms
✓fires
reports the wrong generator entrypoint detector.test.ts
commandfired: "genq"
puro dart run genq
commandfired: "genq"
cd app && puro flutter pub run genq
1.0 ms
✓quiet
allows the genq CLI and other generators detector.test.ts
commandstayed quiet
genq
commandstayed quiet
puro flutter pub run build_runner build
commandstayed quiet
echo 'puro dart run genq'
1.1 ms
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([]);
});