Skip to content

Commit

Permalink
Update all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiSherman committed Jul 6, 2024
1 parent 5933e0d commit 1a896ea
Show file tree
Hide file tree
Showing 47 changed files with 57 additions and 44,500 deletions.
4 changes: 2 additions & 2 deletions drizzle-orm/src/relations.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type AnyTable, getTableUniqueName, type InferModelFromColumns, isTable, Table } from '~/table.ts';
import { type AnyTable, getTableUniqueName, type InferModelFromColumns, Table } from '~/table.ts';
import { type AnyColumn, Column } from './column.ts';
import { entityKind, is } from './entity.ts';
import { PrimaryKeyBuilder } from './pg-core/primary-keys.ts';
Expand Down Expand Up @@ -429,7 +429,7 @@ export function extractTablesRelationalConfig<
> = {};
const tablesConfig: TablesRelationalConfig = {};
for (const [key, value] of Object.entries(schema)) {
if (isTable(value)) {
if (is(value, Table)) {
const dbName = getTableUniqueName(value);
const bufferedRelations = relationsBuffer[dbName];
tableNamesMap[dbName] = key;
Expand Down
32 changes: 2 additions & 30 deletions integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,11 @@
"type": "module",
"scripts": {
"test:types": "tsc",
"test": "pnpm test:ava && pnpm test:esm && pnpm test:rqb",
"test:ava": "cross-env NODE_OPTIONS='--loader=ts-node/esm --no-warnings' ava tests --timeout=60s --serial",
"test:rqb": "vitest run",
"test": "pnpm test:esm && pnpm test:vitest",
"test:vitest": "vitest run",
"test:esm": "node tests/imports.test.mjs && node tests/imports.test.cjs",
"test:data-api": "sst shell vitest run tests/awsdatapi.test.ts"
},
"ava": {
"files": [
"tests/**/*.test.{ts,cts,mts,js,cjs,mjs}",
"!tests/imports.test.mjs",
"!tests/imports.test.cjs",
"!tests/awsdatapi.alltypes.test.ts",
"!tests/awsdatapi.test.ts",
"!tests/planetscale-serverless/**/*.ts",
"!tests/bun/**/*",
"!tests/vercel-pg.test.ts",
"!tests/relational/**/*",
"!tests/libsql-batch.test.ts",
"!tests/xata-http.test.ts",
"!tests/d1-batch.test.ts",
"!tests/sqlite-proxy-batch.test.ts",
"!tests/neon-http-batch.test.ts",
"!tests/neon-http.test.ts",
"!tests/tidb-serverless.test.ts",
"!tests/replicas/**/*",
"!tests/imports/**/*",
"!tests/extensions/**/*",
"!tests/prisma/**/*"
],
"extensions": {
"ts": "module"
}
},
"keywords": [],
"author": "Drizzle Team",
"license": "Apache-2.0",
Expand Down
Loading

0 comments on commit 1a896ea

Please sign in to comment.