@@ -25,13 +25,11 @@ describe('utils', () => {
2525 } ) ;
2626 } ) ;
2727
28- describe ( 'uname()' , ( ) => {
29- if ( process . platform !== 'win32' ) {
30- it ( 'should return the correct arch for your system' , ( ) => {
31- const arch = process . arch === 'arm64' ? 'arm64' : 'x86_64' ;
32- expect ( uname ( ) ) . toEqual ( arch ) ;
33- } ) ;
34- }
28+ describe . skipIf ( process . platform === 'win32' ) ( 'uname()' , ( ) => {
29+ it ( 'should return the correct arch for your system' , ( ) => {
30+ const arch = process . arch === 'arm64' ? 'arm64' : 'x86_64' ;
31+ expect ( uname ( ) ) . toEqual ( arch ) ;
32+ } ) ;
3533 } ) ;
3634
3735 describe ( 'withTempDirectory()' , ( ) => {
@@ -101,19 +99,17 @@ describe('utils', () => {
10199 expect ( getHostArch ( ) ) . toEqual ( 'armv7l' ) ;
102100 } ) ;
103101
104- if ( process . platform !== 'win32' ) {
105- it ( 'should return uname on arm 6' , ( ) => {
106- vi . spyOn ( process , 'arch' , 'get' ) . mockReturnValue ( 'arm' ) ;
107- vi . spyOn ( process , 'config' , 'get' ) . mockReturnValue ( {
108- ...process . config ,
109- variables : {
110- //@ts -expect-error - `arm_version` actually exists
111- arm_version : '6' ,
112- } ,
113- } ) ;
114- expect ( getHostArch ( ) ) . toEqual ( uname ( ) ) ;
102+ it . skipIf ( process . platform === 'win32' ) ( 'should return uname on arm 6' , ( ) => {
103+ vi . spyOn ( process , 'arch' , 'get' ) . mockReturnValue ( 'arm' ) ;
104+ vi . spyOn ( process , 'config' , 'get' ) . mockReturnValue ( {
105+ ...process . config ,
106+ variables : {
107+ //@ts -expect-error - `arm_version` actually exists
108+ arm_version : '6' ,
109+ } ,
115110 } ) ;
116- }
111+ expect ( getHostArch ( ) ) . toEqual ( uname ( ) ) ;
112+ } ) ;
117113
118114 it ( 'should return armv7l on arm 7' , ( ) => {
119115 vi . spyOn ( process , 'arch' , 'get' ) . mockReturnValue ( 'arm' ) ;
0 commit comments