File tree 6 files changed +6
-4
lines changed
6 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
| Statements | Branches | Functions | Lines |
9
9
| --------------------------- | ----------------------- | ------------------------- | ----------------- |
10
- | ![ Statements] ( https://img.shields.io/badge/Coverage-Unknown %25-brightgreen .svg ) | ![ Branches] ( https://img.shields.io/badge/Coverage-Unknown %25-brightgreen .svg ) | ![ Functions] ( https://img.shields.io/badge/Coverage-Unknown %25-brightgreen .svg ) | ![ Lines] ( https://img.shields.io/badge/Coverage-Unknown %25-brightgreen .svg ) |
10
+ | ![ Statements] ( https://img.shields.io/badge/Coverage-0 %25-red .svg ) | ![ Branches] ( https://img.shields.io/badge/Coverage-0 %25-red .svg ) | ![ Functions] ( https://img.shields.io/badge/Coverage-0 %25-red .svg ) | ![ Lines] ( https://img.shields.io/badge/Coverage-0 %25-red .svg ) |
11
11
12
12
Looking for the old CLI extension? [ nuxt-laravel] ( https://github.com/m2sd/nuxt-laravel/tree/legacy ) .
13
13
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ module.exports = {
100
100
// rootDir: null,
101
101
102
102
// A list of paths to directories that Jest should use to search for files in
103
- roots : [ '<rootDir>/tests/unit' , '<rootDir>/tests/integration '] ,
103
+ roots : [ '<rootDir>' ] ,
104
104
105
105
// Allows you to use a custom runner instead of Jest's default test runner
106
106
// runner: "jest-runner",
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ const laravelModule = function (_moduleOptions) {
181
181
logger . info ( 'Generating SPA for laravel...' ) ;
182
182
// ensure the destination folder exists and overwrite it with the contents from the generation folder
183
183
fs_extra_1 . default . ensureDirSync ( destDir ) ;
184
- fs_extra_1 . default . moveSync ( generateDir , destDir , { overwrite : true } ) ;
184
+ fs_extra_1 . default . moveSync ( generateDir , destDir , { overwrite : destDir !== publicDir } ) ;
185
185
logger . success ( `SPA created in: ${ destDir } ` ) ;
186
186
if ( moduleOptions . dotEnvExport &&
187
187
fs_extra_1 . default . existsSync ( path_1 . default . join ( laravelRoot , '.env' ) ) ) {
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ const laravelModule: Module<Options> = function(_moduleOptions) {
279
279
280
280
// ensure the destination folder exists and overwrite it with the contents from the generation folder
281
281
fs . ensureDirSync ( destDir )
282
- fs . moveSync ( generateDir , destDir , { overwrite : true } )
282
+ fs . moveSync ( generateDir , destDir , { overwrite : destDir !== publicDir } )
283
283
284
284
logger . success ( `SPA created in: ${ destDir } ` )
285
285
Original file line number Diff line number Diff line change 6
6
"types" : []
7
7
},
8
8
"exclude" : [
9
+ " jest.config.js" ,
9
10
" tests/**/*"
10
11
]
11
12
}
Original file line number Diff line number Diff line change 14
14
"esModuleInterop" : true
15
15
},
16
16
"include" : [
17
+ " jest.config.js" ,
17
18
" src/**/*.ts" ,
18
19
" tests/**/*.ts" ,
19
20
" types/**/*.d.ts"
You can’t perform that action at this time.
0 commit comments