File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed
simple-git/test/integration Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1
1
* .md
2
2
.changeset
3
+ .yarn
3
4
dist
4
5
coverage
5
6
node_modules
Original file line number Diff line number Diff line change 14
14
"build" : " lerna run build" ,
15
15
"clean" : " git clean -fxd -e .idea -e node_modules -e .yarn" ,
16
16
"clean:cache" : " git clean -fxd .yarn node_modules packages simple-git" ,
17
+ "format" : " prettier --write ." ,
17
18
"test" : " lerna run test"
18
19
},
19
20
"dependencies" : {
Original file line number Diff line number Diff line change
1
+ import { promiseError } from '@kwsites/promise-result' ;
2
+ import { newSimpleGit } from '@simple-git/test-utils' ;
3
+
4
+ describe ( 'log-numstat' , function ( ) {
5
+ it ( 'custom format and date range should not fail when also setting numstat' , async ( ) => {
6
+ const ac = new AbortController ( ) ;
7
+ const log = newSimpleGit ( __dirname , {
8
+ abort : ac . signal ,
9
+ } ) . log ( {
10
+ 'format' : {
11
+ H : '%H' ,
12
+ h : '%h' ,
13
+ P : '%P' ,
14
+ p : '%p' ,
15
+ aI : '%aI' ,
16
+ s : '%s' ,
17
+ D : '%D' ,
18
+ b : '%b' ,
19
+ an : '%an' ,
20
+ ae : '%ae' ,
21
+ } ,
22
+ '--all' : null ,
23
+ '--since' : '2024-02-04' ,
24
+ '--numstat' : null ,
25
+ } ) ;
26
+
27
+ setTimeout ( ( ) => ac . abort ( ) , 500 ) ;
28
+
29
+ expect ( await promiseError ( log ) ) . toBeUndefined ( ) ;
30
+ } ) ;
31
+ } ) ;
You can’t perform that action at this time.
0 commit comments