Sha256: 4ff039c07602d46e2182dd8c9a79e312ebc981a6968854edf0fc0a16ba564a36

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 KB

Contents

const path = require('path');

module.exports = {
  moduleNameMapper: {
    '^jquery$': resolve('../../src/vendor/jquery'),
    '^jquery-ui$': resolve('../../src/vendor/jquery-ui'),
    '^jquery.minicolors$': resolve('../../src/vendor/jquery.minicolors'),
    '^backbone.marionette$': resolve('../../src/vendor/backbone.marionette'),
    '^backbone.babysitter$': resolve('../../src/vendor/backbone.babysitter'),
    '^backbone$': resolve('../../src/vendor/backbone'),
    '^underscore$': resolve('../../src/vendor/underscore'),
    '^cocktail$': resolve('../../src/vendor/cocktail'),
    '^i18n-js$': resolve('../../src/vendor/i18n'),
    '^iscroll$': resolve('../../src/vendor/iscroll'),
    '^wysihtml5': resolve('../../spec/support/wysihtmlStub'),
  },

  transform: {
    '^.+\\.jst$': resolve('./transformers/jst'),
    '^.+\\.jsx?$': resolve('./transformers/upwardBabel'),
    '^.+\\.module.css$': resolve('./transformers/cssModules')
  }
}

function resolve(relativePath) {
  return path.resolve(__dirname, relativePath)
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pageflow-15.1.2 packages/pageflow/config/jest/index.js
pageflow-15.1.1 packages/pageflow/config/jest/index.js
pageflow-15.1.0 packages/pageflow/config/jest/index.js
pageflow-15.1.0.rc0 packages/pageflow/config/jest/index.js
pageflow-15.1.0.beta6 packages/pageflow/config/jest/index.js
pageflow-15.1.0.beta5 packages/pageflow/config/jest/index.js