Sha256: b3527a8fa0ca31285871bf2e48018df0ad5c1de9a6014f6d3386764355115fc3

Contents?: true

Size: 635 Bytes

Versions: 24

Compression:

Stored size: 635 Bytes

Contents

const util = require('util');
const exec = util.promisify(require('child_process').exec);

module.exports = async () => {
  console.log('Getting asset pipeline lookup path from Rails');
  const { stdout, stderr } = await exec('bundle exec rake geoblacklight:asset_paths');
  if (stderr) {
    console.error(stderr);
  }
  const paths = stdout.trim().split('\n');
  return {
    moduleDirectories: [
      'node_modules',
      'spec/javascripts',
      ...paths,
    ],
    rootDir: './',
    setupFilesAfterEnv: [
      '<rootDir>/setupJest.js',
    ],
    testMatch: [
      '<rootDir>/spec/javascripts/**/*_spec.js',
    ],
  };
};

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
geoblacklight-4.4.2 jest.config.js
geoblacklight-4.4.1 jest.config.js
geoblacklight-3.8.1 jest.config.js
geoblacklight-4.4.0 jest.config.js
geoblacklight-4.4.0.rc1 jest.config.js
geoblacklight-4.3.0 jest.config.js
geoblacklight-4.2.0 jest.config.js
geoblacklight-4.1.1 jest.config.js
geoblacklight-4.1.0 jest.config.js
geoblacklight-3.8.0 jest.config.js
geoblacklight-4.0.0 jest.config.js
geoblacklight-4.0.0.pre.rc3 jest.config.js
geoblacklight-3.7.0 jest.config.js
geoblacklight-4.0.0.pre.rc2 jest.config.js
geoblacklight-4.0.0.pre.rc1 jest.config.js
geoblacklight-3.6.0 jest.config.js
geoblacklight-3.5.0 jest.config.js
geoblacklight-4.0.0.pre.alpha.3 jest.config.js
geoblacklight-4.0.0.pre.alpha.2 jest.config.js
geoblacklight-4.0.0.pre.alpha.1 jest.config.js