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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion __fixtures__/seed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Composable SQL seed layers for integration testing. Each layer builds on the pre
import { getConnections } from 'pgsql-test';
import path from 'path';

const SEED = path.resolve(__dirname, '../../../../__fixtures__/seed');
const SEED = path.resolve(__dirname, '../../../__fixtures__/seed');

const { db, teardown } = await getConnections({
seed: seed.sqlfile([
Expand All @@ -37,6 +37,16 @@ Pick only the layers you need:
- **Full stack with app data**: all four files in order
- **Custom app schema**: `services/setup.sql` + `services/test-data.sql` + your own schema/data SQL

## Consumers

These test files use the shared fixtures (no local duplicates):

| Test file | Seed files used |
|-----------|----------------|
| `graphql/server-test/__tests__/server.integration.test.ts` | `services/*` + `app-schemas/simple-pets/*` (services scenarios) |
| `graphql/server-test/__tests__/express-context.integration.test.ts` | `services/*` + `app-schemas/simple-pets/*` |
| `graphql/server-test/__tests__/upload.integration.test.ts` | `services/setup.sql` (DDL only, storage data is local) |

## Well-Known IDs

| Entity | ID | Notes |
Expand Down

This file was deleted.

Loading
Loading