File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
tests/integration/directive Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -64,20 +64,19 @@ describe('shebang', async () => {
64
64
} ) ;
65
65
} ) ;
66
66
67
- describe ( 'chmod' , async ( ) => {
68
- // Windows uses Access Control Lists (ACLs) for file permissions, which are represented differently from Linux modes.
69
- const mode = os . platform ( ) === 'win32' ? 0o100644 : 0o100755 ;
70
-
67
+ // Windows uses Access Control Lists (ACLs) for file permissions, which are represented differently from Linux modes.
68
+ // The mode in CI is not stable on Windows, it might be 100644, 100666 and others probably.
69
+ describe . runIf ( os . platform ( ) !== 'win32' ) ( 'chmod' , async ( ) => {
71
70
test ( 'shebang at the beginning' , async ( ) => {
72
71
const filePath = entryFiles . esm0 ! ;
73
72
const fileStats = fs . statSync ( filePath ) ;
74
- expect ( fileStats . mode ) . toBe ( mode ) ;
73
+ expect ( fileStats . mode ) . toBe ( 0o100755 ) ;
75
74
} ) ;
76
75
77
76
test ( 'shebang at the beginning even if minified' , async ( ) => {
78
77
const filePath = entryFiles . esm1 ! ;
79
78
const fileStats = fs . statSync ( filePath ) ;
80
- expect ( fileStats . mode ) . toBe ( mode ) ;
79
+ expect ( fileStats . mode ) . toBe ( 0o100755 ) ;
81
80
} ) ;
82
81
} ) ;
83
82
} ) ;
You can’t perform that action at this time.
0 commit comments