@@ -292,7 +292,7 @@ describe('FilePatch', function() {
292
292
} ) ;
293
293
294
294
describe ( 'typechange file patches' , function ( ) {
295
- it ( 'handles typechange patches for a symlink replaced with a file' , async function ( ) {
295
+ it . only ( 'handles typechange patches for a symlink replaced with a file' , async function ( ) {
296
296
const workdirPath = await cloneRepository ( 'symlinks' ) ;
297
297
const repository = await buildRepository ( workdirPath ) ;
298
298
@@ -302,6 +302,17 @@ describe('FilePatch', function() {
302
302
fs . unlinkSync ( path . join ( workdirPath , deletedSymlinkAddedFilePath ) ) ;
303
303
fs . writeFileSync ( path . join ( workdirPath , deletedSymlinkAddedFilePath ) , 'qux\nfoo\nbar\n' , 'utf8' ) ;
304
304
305
+ console . log ( workdirPath ) ;
306
+ debugger ;
307
+ // cd into folder and see what diff looks like
308
+ // if not then perhaps symlinks are not being treated correctly on windows.
309
+ // is mode changing correctly? should we manually change it?
310
+ // should we ignore test? is it even relevant?
311
+ // if it matches below there's app logic error
312
+ // file isn't being marked as deleted
313
+ // header for patch added is missing entirely
314
+ // check toString method
315
+
305
316
const patch = await repository . getFilePatchForPath ( deletedSymlinkAddedFilePath ) ;
306
317
assert . equal ( patch . toString ( ) , dedent `
307
318
diff --git a/symlink.txt b/symlink.txt
0 commit comments