Skip to content

Commit e6d3ae7

Browse files
committed
Fix test runs
1 parent 1a896ea commit e6d3ae7

File tree

8 files changed

+102
-28
lines changed

8 files changed

+102
-28
lines changed

drizzle-typebox/package.json

+2-13
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test:types": "cd tests && tsc",
1010
"pack": "(cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz",
1111
"publish": "npm publish package.tgz",
12-
"test": "NODE_OPTIONS='--loader=tsx --no-warnings' ava"
12+
"test": "vitest run"
1313
},
1414
"exports": {
1515
".": {
@@ -35,18 +35,6 @@
3535
"type": "git",
3636
"url": "git+https://github.com/drizzle-team/drizzle-orm.git"
3737
},
38-
"ava": {
39-
"files": [
40-
"tests/**/*.test.ts",
41-
"!tests/bun/**/*"
42-
],
43-
"extensions": {
44-
"ts": "module"
45-
},
46-
"nodeArguments": [
47-
"--loader=tsx"
48-
]
49-
},
5038
"keywords": [
5139
"typebox",
5240
"validate",
@@ -79,6 +67,7 @@
7967
"drizzle-orm": "link:../drizzle-orm/dist",
8068
"rimraf": "^5.0.0",
8169
"rollup": "^3.20.7",
70+
"vite-tsconfig-paths": "^4.3.2",
8271
"vitest": "^1.6.0",
8372
"zx": "^7.2.2"
8473
}

drizzle-typebox/vitest.config.ts

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import tsconfigPaths from 'vite-tsconfig-paths';
2+
import { defineConfig } from 'vitest/config';
3+
4+
export default defineConfig({
5+
test: {
6+
include: [
7+
'tests/**/*.test.ts',
8+
],
9+
exclude: [
10+
'tests/bun/**/*',
11+
],
12+
typecheck: {
13+
tsconfig: 'tsconfig.json',
14+
},
15+
testTimeout: 100000,
16+
hookTimeout: 100000,
17+
isolate: false,
18+
poolOptions: {
19+
threads: {
20+
singleThread: true,
21+
},
22+
},
23+
},
24+
plugins: [tsconfigPaths()],
25+
});

drizzle-valibot/package.json

+2-13
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test:types": "cd tests && tsc",
1010
"pack": "(cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz",
1111
"publish": "npm publish package.tgz",
12-
"test": "NODE_OPTIONS='--loader=tsx --no-warnings' ava"
12+
"test": "vitest run"
1313
},
1414
"exports": {
1515
".": {
@@ -35,18 +35,6 @@
3535
"type": "git",
3636
"url": "git+https://github.com/drizzle-team/drizzle-orm.git"
3737
},
38-
"ava": {
39-
"files": [
40-
"tests/**/*.test.ts",
41-
"!tests/bun/**/*"
42-
],
43-
"extensions": {
44-
"ts": "module"
45-
},
46-
"nodeArguments": [
47-
"--loader=tsx"
48-
]
49-
},
5038
"keywords": [
5139
"valibot",
5240
"validate",
@@ -79,6 +67,7 @@
7967
"rimraf": "^5.0.0",
8068
"rollup": "^3.20.7",
8169
"valibot": "^0.30.0",
70+
"vite-tsconfig-paths": "^4.3.2",
8271
"vitest": "^1.6.0",
8372
"zx": "^7.2.2"
8473
}

drizzle-valibot/vitest.config.ts

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import tsconfigPaths from 'vite-tsconfig-paths';
2+
import { defineConfig } from 'vitest/config';
3+
4+
export default defineConfig({
5+
test: {
6+
include: [
7+
'tests/**/*.test.ts',
8+
],
9+
exclude: [
10+
'tests/bun/**/*',
11+
],
12+
typecheck: {
13+
tsconfig: 'tsconfig.json',
14+
},
15+
testTimeout: 100000,
16+
hookTimeout: 100000,
17+
isolate: false,
18+
poolOptions: {
19+
threads: {
20+
singleThread: true,
21+
},
22+
},
23+
},
24+
plugins: [tsconfigPaths()],
25+
});

drizzle-zod/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test:types": "cd tests && tsc",
1010
"pack": "(cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz",
1111
"publish": "npm publish package.tgz",
12-
"test": "NODE_OPTIONS=\"--loader=tsx --no-warnings\" ava"
12+
"test": "vitest run"
1313
},
1414
"exports": {
1515
".": {
@@ -75,6 +75,7 @@
7575
"drizzle-orm": "link:../drizzle-orm/dist",
7676
"rimraf": "^5.0.0",
7777
"rollup": "^3.20.7",
78+
"vite-tsconfig-paths": "^4.3.2",
7879
"vitest": "^1.6.0",
7980
"zod": "^3.20.2",
8081
"zx": "^7.2.2"

drizzle-zod/vitest.config.ts

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import tsconfigPaths from 'vite-tsconfig-paths';
2+
import { defineConfig } from 'vitest/config';
3+
4+
export default defineConfig({
5+
test: {
6+
include: [
7+
'tests/**/*.test.ts',
8+
],
9+
exclude: [
10+
'tests/bun/**/*',
11+
],
12+
typecheck: {
13+
tsconfig: 'tsconfig.json',
14+
},
15+
testTimeout: 100000,
16+
hookTimeout: 100000,
17+
isolate: false,
18+
poolOptions: {
19+
threads: {
20+
singleThread: true,
21+
},
22+
},
23+
},
24+
plugins: [tsconfigPaths()],
25+
});

integration-tests/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"test:types": "tsc",
8-
"test": "pnpm test:esm && pnpm test:vitest",
8+
"test": "pnpm test:vitest",
99
"test:vitest": "vitest run",
1010
"test:esm": "node tests/imports.test.mjs && node tests/imports.test.cjs",
1111
"test:data-api": "sst shell vitest run tests/awsdatapi.test.ts"

pnpm-lock.yaml

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)