Skip to content

Commit

Permalink
Fix test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiSherman committed Jul 6, 2024
1 parent 1a896ea commit e6d3ae7
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 28 deletions.
15 changes: 2 additions & 13 deletions 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": "NODE_OPTIONS='--loader=tsx --no-warnings' ava"
"test": "vitest run"
},
"exports": {
".": {
Expand All @@ -35,18 +35,6 @@
"type": "git",
"url": "git+https://github.com/drizzle-team/drizzle-orm.git"
},
"ava": {
"files": [
"tests/**/*.test.ts",
"!tests/bun/**/*"
],
"extensions": {
"ts": "module"
},
"nodeArguments": [
"--loader=tsx"
]
},
"keywords": [
"typebox",
"validate",
Expand Down Expand Up @@ -79,6 +67,7 @@
"drizzle-orm": "link:../drizzle-orm/dist",
"rimraf": "^5.0.0",
"rollup": "^3.20.7",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0",
"zx": "^7.2.2"
}
Expand Down
25 changes: 25 additions & 0 deletions drizzle-typebox/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
include: [
'tests/**/*.test.ts',
],
exclude: [
'tests/bun/**/*',
],
typecheck: {
tsconfig: 'tsconfig.json',
},
testTimeout: 100000,
hookTimeout: 100000,
isolate: false,
poolOptions: {
threads: {
singleThread: true,
},
},
},
plugins: [tsconfigPaths()],
});
15 changes: 2 additions & 13 deletions 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": "NODE_OPTIONS='--loader=tsx --no-warnings' ava"
"test": "vitest run"
},
"exports": {
".": {
Expand All @@ -35,18 +35,6 @@
"type": "git",
"url": "git+https://github.com/drizzle-team/drizzle-orm.git"
},
"ava": {
"files": [
"tests/**/*.test.ts",
"!tests/bun/**/*"
],
"extensions": {
"ts": "module"
},
"nodeArguments": [
"--loader=tsx"
]
},
"keywords": [
"valibot",
"validate",
Expand Down Expand Up @@ -79,6 +67,7 @@
"rimraf": "^5.0.0",
"rollup": "^3.20.7",
"valibot": "^0.30.0",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0",
"zx": "^7.2.2"
}
Expand Down
25 changes: 25 additions & 0 deletions drizzle-valibot/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
include: [
'tests/**/*.test.ts',
],
exclude: [
'tests/bun/**/*',
],
typecheck: {
tsconfig: 'tsconfig.json',
},
testTimeout: 100000,
hookTimeout: 100000,
isolate: false,
poolOptions: {
threads: {
singleThread: true,
},
},
},
plugins: [tsconfigPaths()],
});
3 changes: 2 additions & 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": "NODE_OPTIONS=\"--loader=tsx --no-warnings\" ava"
"test": "vitest run"
},
"exports": {
".": {
Expand Down Expand Up @@ -75,6 +75,7 @@
"drizzle-orm": "link:../drizzle-orm/dist",
"rimraf": "^5.0.0",
"rollup": "^3.20.7",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0",
"zod": "^3.20.2",
"zx": "^7.2.2"
Expand Down
25 changes: 25 additions & 0 deletions drizzle-zod/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
include: [
'tests/**/*.test.ts',
],
exclude: [
'tests/bun/**/*',
],
typecheck: {
tsconfig: 'tsconfig.json',
},
testTimeout: 100000,
hookTimeout: 100000,
isolate: false,
poolOptions: {
threads: {
singleThread: true,
},
},
},
plugins: [tsconfigPaths()],
});
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": "pnpm test:esm && pnpm test:vitest",
"test": "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"
Expand Down
20 changes: 20 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e6d3ae7

Please sign in to comment.