File tree Expand file tree Collapse file tree 3 files changed +333
-2002
lines changed Expand file tree Collapse file tree 3 files changed +333
-2002
lines changed Original file line number Diff line number Diff line change 29
29
"docs:dev" : " vuepress dev docs" ,
30
30
"docs:build" : " vuepress build docs" ,
31
31
"lint" : " eslint --fix src" ,
32
- "test" : " vite-jest --no-cache "
32
+ "test" : " vitest run "
33
33
},
34
34
"dependencies" : {
35
35
"vue" : " ^3.2.41"
43
43
"eslint-config-prettier" : " ^8.3.0" ,
44
44
"eslint-plugin-prettier" : " ^4.0.0" ,
45
45
"eslint-plugin-vue" : " ^8.4.1" ,
46
- "jest" : " ^27.5.1" ,
47
- "jest-environment-jsdom" : " ^27.5.1" ,
46
+ "jsdom" : " ^20.0.2" ,
48
47
"postcss" : " ^8.4.18" ,
49
48
"tailwindcss" : " ^3.2.1" ,
50
49
"vite" : " ^3.2.2" ,
51
- "vite-jest " : " ^0.1.4 " ,
50
+ "vitest " : " ^0.24.5 " ,
52
51
"vuepress" : " ^2.0.0-beta.53"
53
52
}
54
53
}
Original file line number Diff line number Diff line change @@ -4,34 +4,30 @@ import vue from '@vitejs/plugin-vue';
4
4
import { fileURLToPath } from 'url' ;
5
5
6
6
// https://vitejs.dev/config/
7
- export default defineConfig ( ( { mode } ) => {
8
- if ( mode === 'app' ) {
9
- return {
10
- plugins : [ vue ( ) ] ,
11
- } ;
12
- } else {
13
- return {
14
- plugins : [ vue ( ) ] ,
15
- resolve : {
16
- alias : {
17
- '@' : fileURLToPath ( new URL ( './src' , import . meta. url ) ) ,
7
+ export default defineConfig ( {
8
+ plugins : [ vue ( ) ] ,
9
+ resolve : {
10
+ alias : {
11
+ '@' : fileURLToPath ( new URL ( './src' , import . meta. url ) ) ,
12
+ } ,
13
+ } ,
14
+ build : {
15
+ lib : {
16
+ entry : path . resolve ( __dirname , 'src/lib.js' ) ,
17
+ name : 'LaravelVuePagination' ,
18
+ fileName : ( format ) => `laravel-vue-pagination.${ format } .js` ,
19
+ } ,
20
+ rollupOptions : {
21
+ external : [ 'vue' ] ,
22
+ output : {
23
+ globals : {
24
+ vue : 'Vue' ,
18
25
} ,
19
26
} ,
20
- build : {
21
- lib : {
22
- entry : path . resolve ( __dirname , 'src/lib.js' ) ,
23
- name : 'LaravelVuePagination' ,
24
- fileName : ( format ) => `laravel-vue-pagination.${ format } .js` ,
25
- } ,
26
- rollupOptions : {
27
- external : [ 'vue' ] ,
28
- output : {
29
- globals : {
30
- vue : 'Vue' ,
31
- } ,
32
- } ,
33
- } ,
34
- } ,
35
- } ;
36
- }
27
+ } ,
28
+ } ,
29
+ test : {
30
+ globals : true ,
31
+ environment : 'jsdom' ,
32
+ } ,
37
33
} ) ;
You can’t perform that action at this time.
0 commit comments