File tree Expand file tree Collapse file tree 4 files changed +47
-1
lines changed Expand file tree Collapse file tree 4 files changed +47
-1
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = api => {
2
+ api . describeTask ( {
3
+ match : / v u e - c l i - s e r v i c e t e s t : u n i t / ,
4
+ description : 'jest.tasks.test.description' ,
5
+ link : 'https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-unit-jest#injected-commands' ,
6
+ prompts : [
7
+ {
8
+ name : 'watch' ,
9
+ type : 'confirm' ,
10
+ description : 'jest.tasks.test.watch'
11
+ } ,
12
+ {
13
+ name : 'notify' ,
14
+ type : 'confirm' ,
15
+ description : 'jest.tasks.test.notify' ,
16
+ when : answers => answers . watch
17
+ } ,
18
+ {
19
+ name : 'update' ,
20
+ type : 'confirm' ,
21
+ description : 'jest.tasks.test.update'
22
+ }
23
+ ] ,
24
+ onBeforeRun : ( { answers, args } ) => {
25
+ if ( answers . watch ) args . push ( '--watch' )
26
+ if ( answers . notify ) args . push ( '--notify' )
27
+ if ( answers . update ) args . push ( '--updateSnapshot' )
28
+ }
29
+ } )
30
+ }
Original file line number Diff line number Diff line change 511
511
"url" : " Run e2e tests against given url instead of auto-starting dev server"
512
512
}
513
513
}
514
+ },
515
+ "jest" : {
516
+ "tasks" : {
517
+ "test" : {
518
+ "description" : " Run unit tests with Jestks" ,
519
+ "watch" : " Watch files for changes and rerun tests related to changed files" ,
520
+ "notify" : " Display a notification after each run" ,
521
+ "update" : " Re-record every snapshot that fails during this test run"
522
+ }
523
+ }
514
524
}
515
525
}
Original file line number Diff line number Diff line change @@ -152,3 +152,9 @@ ansi-colors('white', $vue-ui-color-light)
152
152
height 1px
153
153
background rgba ($vue-ui-color-dark, .1 )
154
154
margin ($padding-item / 2 ) 0
155
+
156
+ .vue-ui-modal
157
+ & .anchor
158
+ align-items flex-start
159
+ .shell
160
+ margin-top 42px
Original file line number Diff line number Diff line change 106
106
<VueModal
107
107
v-if =" showParameters"
108
108
:title =" $t('views.project-task-details.parameters')"
109
- class =" medium"
109
+ class =" medium anchor "
110
110
@close =" showParameters = false"
111
111
>
112
112
<div class =" default-body" >
You can’t perform that action at this time.
0 commit comments