@@ -22,6 +22,7 @@ const {preTest} = require('./pre-test');
2222const {
2323 readFixture,
2424 writeFixture,
25+ writeFixFixture,
2526 rmFixture,
2627} = require ( './fixture' ) ;
2728
@@ -320,7 +321,7 @@ const transform = currify((dir, linterOptions, options, t, name, transformed = n
320321 return fail ( t , `'input' === 'output', use 'noTransform()'` ) ;
321322
322323 if ( isUpdate ( ) && ! isStr ) {
323- writeFixture ( {
324+ writeFixFixture ( {
324325 full,
325326 code,
326327 extension : currentExtension ,
@@ -352,7 +353,7 @@ const transformWithOptions = currify((dir, linterOptions, options, t, name, plug
352353 } ) ;
353354
354355 if ( isUpdate ( ) ) {
355- writeFixture ( {
356+ writeFixFixture ( {
356357 full,
357358 code,
358359 extension : currentExtension ,
@@ -410,7 +411,7 @@ const noTransform = currify((dir, linterOptions, options, t, name, addons = {})
410411 rmFixture ( `${ full } -fix` ) ;
411412
412413 const { plugins} = options ;
413- const [ input , isTS ] = readFixture ( full , extension ) ;
414+ const [ input , isTS , currentExtension ] = readFixture ( full , extension ) ;
414415
415416 const { code} = lint ( input , {
416417 isTS,
@@ -425,7 +426,7 @@ const noTransform = currify((dir, linterOptions, options, t, name, addons = {})
425426 writeFixture ( {
426427 full,
427428 code,
428- extension,
429+ extension : currentExtension ,
429430 } ) ;
430431
431432 return t . pass ( 'source fixture updated' ) ;
0 commit comments