How to use the babel-jest.getCacheKey function in babel-jest

To help you get started, we’ve selected a few babel-jest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vuejs / vue-jest / lib / index.js View on Github external
getCacheKey: function getCacheKey(
    fileData,
    filename,
    configString,
    { config, instrument, rootDir }
  ) {
    return crypto
      .createHash('md5')
      .update(
        babelJest.getCacheKey(fileData, filename, configString, {
          config,
          instrument,
          rootDir
        }),
        'hex'
      )
      .digest('hex')
  }
}
github newsuk / times-components / packages / jest-configurator / src / source-loader.js View on Github external
const getCacheKey = (src, filename, config, cacheOptions) =>
  isPackageFile(filename)
    ? getPackageCacheKey(filename)
    : babelJest.getCacheKey(src, filename, config, cacheOptions);

babel-jest

Jest plugin to use babel for transformation.

MIT
Latest version published 1 year ago

Package Health Score

82 / 100
Full package analysis