Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .agents/skills/testing-fixtures/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ npm run kitchen-sink # generate transform-specific kitchen-sink tests
npm run test:ast # run AST round-trip validation
```

`make-kitchen-sink.ts` writes `__tests__/kitchen-sink/fixtures.json` (fixture file
-> statement keys, shared by every version pair) plus one test file per adjacent
version pair (`13-14.test.ts` … `17-18.test.ts`), each iterating the manifest with
`it.each`. Keep it that way: a suite per fixture file meant every fixture paid for
its own Jest module registry, `generated.json` parse, and six WASM parser inits.

## Changing a Walker

`@pgsql/transform` drives its whole pipeline (schema mapping, routing, qualify,
Expand Down
16 changes: 16 additions & 0 deletions packages/transform-ast/__tests__/kitchen-sink/13-14.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// DO NOT EDIT BY HAND — generated by scripts/make-kitchen-sink.ts
import { readFileSync } from 'fs';
import { join } from 'path';

import { FixtureTestUtils } from '../../test-utils';

const manifest: Record<string, string[]> = JSON.parse(
readFileSync(join(__dirname, 'fixtures.json'), 'utf-8')
);
const fixtures = new FixtureTestUtils(13, 14);

describe('13-14', () => {
it.each(Object.entries(manifest))('%s', async (_name, tests) => {
await fixtures.runFixtureTests(tests);
});
});

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading