diff --git a/drizzle-typebox/package.json b/drizzle-typebox/package.json index cdeee64f9..a0fc7e28d 100644 --- a/drizzle-typebox/package.json +++ b/drizzle-typebox/package.json @@ -9,7 +9,7 @@ "test:types": "cd tests && tsc", "pack": "(cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz", "publish": "npm publish package.tgz", - "test": "ava tests" + "test": "NODE_OPTIONS='--loader=tsx --no-warnings' ava" }, "exports": { ".": { diff --git a/drizzle-valibot/package.json b/drizzle-valibot/package.json index 278e95a11..86d074934 100644 --- a/drizzle-valibot/package.json +++ b/drizzle-valibot/package.json @@ -9,7 +9,7 @@ "test:types": "cd tests && tsc", "pack": "(cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz", "publish": "npm publish package.tgz", - "test": "ava tests" + "test": "NODE_OPTIONS='--loader=tsx --no-warnings' ava" }, "exports": { ".": { diff --git a/drizzle-zod/package.json b/drizzle-zod/package.json index df6e47325..b5d21582f 100644 --- a/drizzle-zod/package.json +++ b/drizzle-zod/package.json @@ -9,7 +9,7 @@ "test:types": "cd tests && tsc", "pack": "(cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz", "publish": "npm publish package.tgz", - "test": "ava tests" + "test": "NODE_OPTIONS='--loader=tsx --no-warnings' ava" }, "exports": { ".": { diff --git a/integration-tests/package.json b/integration-tests/package.json index 745d1cbe0..ab3ffde7a 100644 --- a/integration-tests/package.json +++ b/integration-tests/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "test:types": "tsc", - "test": "ava tests --timeout=60s --serial && pnpm test:esm && pnpm test:rqb", + "test": "NODE_OPTIONS='--loader=tsx --no-warnings' ava --timeout=60s --serial && pnpm test:esm && pnpm test:rqb", "test:rqb": "vitest run --no-threads", "test:esm": "node tests/imports.test.mjs && node tests/imports.test.cjs" }, diff --git a/integration-tests/vitest.config.ts b/integration-tests/vitest.config.ts index 261754895..12b7a1eb3 100644 --- a/integration-tests/vitest.config.ts +++ b/integration-tests/vitest.config.ts @@ -1,10 +1,17 @@ +import 'dotenv/config'; import { viteCommonjs } from '@originjs/vite-plugin-commonjs'; import tsconfigPaths from 'vite-tsconfig-paths'; import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { - include: ['tests/relational/**/*.test.ts', 'tests/libsql-batch.test.ts', 'tests/d1-batch.test.ts', 'tests/replicas/**/*', 'tests/imports/**/*'], + include: [ + 'tests/relational/**/*.test.ts', + 'tests/libsql-batch.test.ts', + 'tests/d1-batch.test.ts', + 'tests/replicas/**/*', + 'tests/imports/**/*', + ], exclude: [ ...(process.env.SKIP_PLANETSCALE_TESTS ? ['tests/relational/mysql.planetscale.test.ts'] : []), 'tests/relational/vercel.test.ts',