Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelelz committed Dec 17, 2023
1 parent 0a4e3b2 commit 6223ca0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drizzle-typebox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion drizzle-valibot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion drizzle-zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
9 changes: 8 additions & 1 deletion integration-tests/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 6223ca0

Please sign in to comment.