Sha256: 566086f7b2b5ac65a7f4062d9a4199bed78a1b636b826add8a425b6406d84293

Contents?: true

Size: 1 KB

Versions: 4

Compression:

Stored size: 1 KB

Contents

const path = require('path');

module.exports = {
  globals: {
    pageflow: {
      config: {}
    }
  },

  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')
  },

  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

4 entries across 4 versions & 1 rubygems

Version Path
pageflow-15.6.1 package/config/jest/index.js
pageflow-15.6.0 package/config/jest/index.js
pageflow-15.5.0 package/config/jest/index.js
pageflow-15.4.0 package/config/jest/index.js