File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const checkIfFileShouldBeIgnored = (fullPath) => {
1616const walk = ( rootDir , allFiles = [ ] ) => {
1717 const files = fs . readdirSync ( rootDir ) ;
1818 files . forEach ( ( file ) => {
19- const fullPath = path . join ( rootDir , file ) ;
19+ const fullPath = path . join ( rootDir , file ) . split ( path . sep ) . join ( '/' ) ;
2020 if ( fs . statSync ( fullPath ) . isDirectory ( ) ) {
2121 if ( ! checkIfDirectoryShouldBeIgnored ( fullPath ) ) {
2222 walk ( fullPath , allFiles ) ;
Original file line number Diff line number Diff line change 22
33exports [` walker walk should return list of all files in directory 1` ] = `
44[
5- "test\\ walking_test\\ a.js",
6- "test\\ walking_test\\ directory\\ b.jsx",
7- "test\\ walking_test\\ directory\\ e.tsx",
8- "test\\ walking_test\\ f.ts",
5+ "test/ walking_test/ a.js",
6+ "test/ walking_test/ directory/ b.jsx",
7+ "test/ walking_test/ directory/ e.tsx",
8+ "test/ walking_test/ f.ts",
99]
1010` ;
You can’t perform that action at this time.
0 commit comments