Skip to content

Commit

Permalink
chore: removes unnecessary notes
Browse files Browse the repository at this point in the history
  • Loading branch information
huafu committed Jul 23, 2018
1 parent af5c97d commit 3e0b7da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
12 changes: 1 addition & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
import getCacheKey from './utils/get-cache-key';
import preprocess from './preprocess';

//FIXME: options is always empty
const createTransformer = (options?: any): jest.Transformer => {
// const cache = Object.create(null);
// options = Object.assign({}, options, {
// compact: false,
// plugins: (options && options.plugins) || [],
// presets: ((options && options.presets) || []).concat([jestPreset]),
// sourceMaps: 'both',
// });
// delete options.cacheDirectory;
// delete options.filename;

// options are always empty, must be the older jest API giving options here
return {
canInstrument: true,
getCacheKey,
Expand Down
1 change: 0 additions & 1 deletion src/utils/get-cache-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { MY_PACKAGE_CONTENT } from './constants';
import getBabelRC from './get-babel-rc';
import getTSConfig from './get-ts-config';

// FIXME: remove dependency on config, it's empty
export default function getCacheKey(
fileData: string,
filePath: string,
Expand Down

0 comments on commit 3e0b7da

Please sign in to comment.