This repository was archived by the owner on Apr 1, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ module.exports = {
2323 "complete" : function ( data , { logger} ) {
2424 // Rename to be compatible with styleguide configuration
2525 const cmpDir = data . inPlace ?'src/Component' :path . resolve ( data . destDirName , 'src/Component' ) ;
26+ const testDir = data . inPlace ?'test' :path . resolve ( data . destDirName , 'test' ) ;
2627 fs . renameSync (
2728 path . resolve ( cmpDir , 'Component.vue' ) ,
2829 path . resolve ( cmpDir , data . name + '.vue' )
@@ -35,6 +36,10 @@ module.exports = {
3536 cmpDir ,
3637 path . resolve ( cmpDir , '../' , data . name )
3738 ) ;
39+ fs . renameSync (
40+ path . resolve ( testDir , 'specs/Component.spec.js' ) ,
41+ path . resolve ( testDir , 'specs/' + data . name + '.spec.js' )
42+ ) ;
3843
3944 logger . log ( "To get started:" ) ;
4045 if ( ! data . inPlace ) logger . log ( "cd " + data . destDirName ) ;
Original file line number Diff line number Diff line change 11import Vue from 'vue' ;
2- import Component from '@/components /{{ name }}' ;
2+ import Component from '@/src/{{ name }} /{{ name }}' ;
33
44describe ( '{{ name }}.vue' , ( ) => {
55 it ( 'should render correct contents' , ( ) => {
You can’t perform that action at this time.
0 commit comments