File tree 8 files changed +102
-28
lines changed
8 files changed +102
-28
lines changed Original file line number Diff line number Diff line change 9
9
"test:types" : " cd tests && tsc" ,
10
10
"pack" : " (cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz" ,
11
11
"publish" : " npm publish package.tgz" ,
12
- "test" : " NODE_OPTIONS='--loader=tsx --no-warnings' ava "
12
+ "test" : " vitest run "
13
13
},
14
14
"exports" : {
15
15
"." : {
35
35
"type" : " git" ,
36
36
"url" : " git+https://github.com/drizzle-team/drizzle-orm.git"
37
37
},
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
- },
50
38
"keywords" : [
51
39
" typebox" ,
52
40
" validate" ,
79
67
"drizzle-orm" : " link:../drizzle-orm/dist" ,
80
68
"rimraf" : " ^5.0.0" ,
81
69
"rollup" : " ^3.20.7" ,
70
+ "vite-tsconfig-paths" : " ^4.3.2" ,
82
71
"vitest" : " ^1.6.0" ,
83
72
"zx" : " ^7.2.2"
84
73
}
Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change 9
9
"test:types" : " cd tests && tsc" ,
10
10
"pack" : " (cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz" ,
11
11
"publish" : " npm publish package.tgz" ,
12
- "test" : " NODE_OPTIONS='--loader=tsx --no-warnings' ava "
12
+ "test" : " vitest run "
13
13
},
14
14
"exports" : {
15
15
"." : {
35
35
"type" : " git" ,
36
36
"url" : " git+https://github.com/drizzle-team/drizzle-orm.git"
37
37
},
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
- },
50
38
"keywords" : [
51
39
" valibot" ,
52
40
" validate" ,
79
67
"rimraf" : " ^5.0.0" ,
80
68
"rollup" : " ^3.20.7" ,
81
69
"valibot" : " ^0.30.0" ,
70
+ "vite-tsconfig-paths" : " ^4.3.2" ,
82
71
"vitest" : " ^1.6.0" ,
83
72
"zx" : " ^7.2.2"
84
73
}
Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change 9
9
"test:types" : " cd tests && tsc" ,
10
10
"pack" : " (cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz" ,
11
11
"publish" : " npm publish package.tgz" ,
12
- "test" : " NODE_OPTIONS= \" --loader=tsx --no-warnings \" ava "
12
+ "test" : " vitest run "
13
13
},
14
14
"exports" : {
15
15
"." : {
75
75
"drizzle-orm" : " link:../drizzle-orm/dist" ,
76
76
"rimraf" : " ^5.0.0" ,
77
77
"rollup" : " ^3.20.7" ,
78
+ "vite-tsconfig-paths" : " ^4.3.2" ,
78
79
"vitest" : " ^1.6.0" ,
79
80
"zod" : " ^3.20.2" ,
80
81
"zx" : " ^7.2.2"
Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change 5
5
"type" : " module" ,
6
6
"scripts" : {
7
7
"test:types" : " tsc" ,
8
- "test" : " pnpm test:esm && pnpm test: vitest" ,
8
+ "test" : " pnpm test:vitest" ,
9
9
"test:vitest" : " vitest run" ,
10
10
"test:esm" : " node tests/imports.test.mjs && node tests/imports.test.cjs" ,
11
11
"test:data-api" : " sst shell vitest run tests/awsdatapi.test.ts"
You can’t perform that action at this time.
0 commit comments