Skip to content

Commit 3f1af06

Browse files
authored
chore: reorg test schemas (#116)
1 parent 36e1b77 commit 3f1af06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+588
-59
lines changed

packages/runtime/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "ZenStack Runtime",
55
"type": "module",
66
"scripts": {
7-
"build": "tsup-node",
7+
"build": "tsup-node && pnpm test:generate",
88
"watch": "tsup-node --watch",
99
"lint": "eslint src --ext ts",
10-
"test": "vitest run && pnpm test:generate && pnpm test:typecheck",
10+
"test": "vitest run && pnpm test:typecheck",
1111
"test:generate": "tsx test/scripts/generate.ts",
1212
"test:typecheck": "tsc --project tsconfig.test.json",
1313
"pack": "pnpm pack"

packages/runtime/test/client-api/aggregate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
22
import type { ClientContract } from '../../src/client';
3-
import { schema } from '../test-schema';
3+
import { schema } from '../schemas/basic';
44
import { createClientSpecs } from './client-specs';
55
import { createUser } from './utils';
66

packages/runtime/test/client-api/client-specs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { LogEvent } from 'kysely';
2-
import { getSchema, schema } from '../test-schema';
2+
import { getSchema, schema } from '../schemas/basic';
33
import { makePostgresClient, makeSqliteClient } from '../utils';
44
import type { ClientContract } from '../../src';
55

packages/runtime/test/client-api/count.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
22
import type { ClientContract } from '../../src/client';
3-
import { schema } from '../test-schema';
3+
import { schema } from '../schemas/basic';
44
import { createClientSpecs } from './client-specs';
55

66
const PG_DB_NAME = 'client-api-count-tests';

packages/runtime/test/client-api/create-many-and-return.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
22
import type { ClientContract } from '../../src/client';
3-
import { schema } from '../test-schema';
3+
import { schema } from '../schemas/basic';
44
import { createClientSpecs } from './client-specs';
55

66
const PG_DB_NAME = 'client-api-create-many-and-return-tests';

packages/runtime/test/client-api/create-many.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
22
import type { ClientContract } from '../../src/client';
3-
import { schema } from '../test-schema';
3+
import { schema } from '../schemas/basic';
44
import { createClientSpecs } from './client-specs';
55

66
const PG_DB_NAME = 'client-api-create-many-tests';

packages/runtime/test/client-api/create.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
22
import type { ClientContract } from '../../src/client';
3-
import { schema } from '../test-schema';
3+
import { schema } from '../schemas/basic';
44
import { createClientSpecs } from './client-specs';
55

66
const PG_DB_NAME = 'client-api-create-tests';

packages/runtime/test/client-api/delete-many.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
22
import type { ClientContract } from '../../src/client';
3-
import { schema } from '../test-schema';
3+
import { schema } from '../schemas/basic';
44
import { createClientSpecs } from './client-specs';
55

66
const PG_DB_NAME = 'client-api-delete-many-tests';

packages/runtime/test/client-api/delete.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
22
import type { ClientContract } from '../../src/client';
3-
import { schema } from '../test-schema';
3+
import { schema } from '../schemas/basic';
44
import { createClientSpecs } from './client-specs';
55

66
const PG_DB_NAME = 'client-api-delete-tests';

packages/runtime/test/client-api/filter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
22
import type { ClientContract } from '../../src/client';
3-
import { schema } from '../test-schema';
3+
import { schema } from '../schemas/basic';
44
import { createClientSpecs } from './client-specs';
55

66
const PG_DB_NAME = 'client-api-filter-tests';

0 commit comments

Comments
 (0)