Sha256: c7f983fe72bbf20316670b26584395e28eed8e584ae484b4ba126e5909d6b519

Contents?: true

Size: 787 Bytes

Versions: 4

Compression:

Stored size: 787 Bytes

Contents

const tfmConfig = require('@theforeman/test/src/pluginConfig');

// Find where foreman is located
const { foremanRelativePath, foremanLocation } = require('@theforeman/find-foreman');
const foremanReactRelative = 'webpack/assets/javascripts/react_app';
const foremanFull = foremanLocation();
const foremanReactFull = foremanRelativePath(foremanReactRelative);

// Find correct path to foremanReact so we do not have to mock it in tests
tfmConfig.moduleNameMapper['^foremanReact(.*)$'] = `${foremanReactFull}/$1`;

// Do not use default resolver
tfmConfig.resolver = null;
// Specify module dirs instead
tfmConfig.moduleDirectories = [
  `${foremanFull}/node_modules`,
  `${foremanFull}/node_modules/@theforeman/vendor-core/node_modules`,
  'node_modules',
]

module.exports = tfmConfig;

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_statistics-2.1.0 config/jest.config.js
foreman_statistics-2.0.1 config/jest.config.js
foreman_statistics-2.0.0 config/jest.config.js
foreman_statistics-1.2.0 config/jest.config.js