File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import getCacheKey from './utils/get-cache-key' ;
22import preprocess from './preprocess' ;
33
4- //FIXME: options is always empty
54const createTransformer = ( options ?: any ) : jest . Transformer => {
6- // const cache = Object.create(null);
7- // options = Object.assign({}, options, {
8- // compact: false,
9- // plugins: (options && options.plugins) || [],
10- // presets: ((options && options.presets) || []).concat([jestPreset]),
11- // sourceMaps: 'both',
12- // });
13- // delete options.cacheDirectory;
14- // delete options.filename;
15-
5+ // options are always empty, must be the older jest API giving options here
166 return {
177 canInstrument : true ,
188 getCacheKey,
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { MY_PACKAGE_CONTENT } from './constants';
55import getBabelRC from './get-babel-rc' ;
66import getTSConfig from './get-ts-config' ;
77
8- // FIXME: remove dependency on config, it's empty
98export default function getCacheKey (
109 fileData : string ,
1110 filePath : string ,
You can’t perform that action at this time.
0 commit comments