Sha256: 425f811b197e73763bfeb315e924f1b1c9642b9196e6e5d541f097e1c8e42bf4

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 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'),
    '^iscroll$': resolve('../../src/vendor/iscroll'),
    '^wysihtml5': resolve('../../spec/support/wysihtmlStub'),
    '^videojs$': resolve('../../../vendor/assets/javascripts/videojs')
  },

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pageflow-15.3.0 package/config/jest/index.js