@@ -25,35 +25,37 @@ it('sets properties correctly on create', async () => {
25
25
expect ( repository ) . toMatchSnapshot ( ) ;
26
26
} ) ;
27
27
28
- it ( 'gets the current branch names' , async ( ) => {
29
- const repository = new Repository ( 'permafrost-dev/codeboost' , tempPath ) ;
30
- repository . path = `${ __dirname } /../..` ;
28
+ if ( typeof process . env . CI === 'undefined' ) {
29
+ it ( 'gets the current branch names' , async ( ) => {
30
+ const repository = new Repository ( 'permafrost-dev/codeboost' , tempPath ) ;
31
+ repository . path = `${ __dirname } /../..` ;
31
32
32
- const mainBranchName = 'main' ;
33
- const branch = await repository . currentBranch ( ) ;
33
+ const mainBranchName = 'main' ;
34
+ const branch = await repository . currentBranch ( ) ;
34
35
35
- expect ( branch ) . toBe ( mainBranchName ) ;
36
- } ) ;
36
+ expect ( branch ) . toBe ( mainBranchName ) ;
37
+ } ) ;
37
38
38
- it ( 'gets a list of local branches' , async ( ) => {
39
- const repository = new Repository ( 'permafrost-dev/codeboost' , tempPath ) ;
40
- repository . path = `${ __dirname } /../..` ;
39
+ it ( 'gets a list of local branches' , async ( ) => {
40
+ const repository = new Repository ( 'permafrost-dev/codeboost' , tempPath ) ;
41
+ repository . path = `${ __dirname } /../..` ;
41
42
42
- const mainBranchName = 'main' ;
43
- const branches = await repository . localBranches ( ) ;
43
+ const mainBranchName = 'main' ;
44
+ const branches = await repository . localBranches ( ) ;
44
45
45
- expect ( branches . all ) . toContain ( mainBranchName ) ;
46
- } ) ;
46
+ expect ( branches . all ) . toContain ( mainBranchName ) ;
47
+ } ) ;
47
48
48
- it ( 'checks if it is on a branch' , async ( ) => {
49
- const repository = new Repository ( 'permafrost-dev/codeboost' , tempPath ) ;
50
- repository . path = `${ __dirname } /../..` ;
49
+ it ( 'checks if it is on a branch' , async ( ) => {
50
+ const repository = new Repository ( 'permafrost-dev/codeboost' , tempPath ) ;
51
+ repository . path = `${ __dirname } /../..` ;
51
52
52
- const mainBranchName = 'main' ;
53
- const isOnBranch = await repository . onBranch ( mainBranchName ) ;
53
+ const mainBranchName = 'main' ;
54
+ const isOnBranch = await repository . onBranch ( mainBranchName ) ;
54
55
55
- expect ( isOnBranch ) . toBeTruthy ( ) ;
56
- } ) ;
56
+ expect ( isOnBranch ) . toBeTruthy ( ) ;
57
+ } ) ;
58
+ }
57
59
58
60
if ( typeof process . env . CI !== 'undefined' ) {
59
61
it ( 'checks out a new branch' , async ( ) => {
0 commit comments