message: now it works too. maybe
diff: @@ -19,29 +19,36 @@ function createIntegrationMock() {
  const testCaseFolders = getDirectories(testsRoot).filter(function(testDir) {
  return !(testDir.startsWith('__') && testDir.endsWith('__'));
  });
  - for (let i = 0; i < testCaseFolders.length; i++) {
  - const testCaseNodeModules = path.join(
  - testsRoot,
  - testCaseFolders[i],
  - 'node_modules'
  - );
  - fsx.ensureDirSync(testCaseNodeModules);
  + testCaseFolders.forEach(directory => {
  + const testCaseNodeModules = path.join(testsRoot, directory, 'node_modules');
  + const rootDir = path.resolve('.');
  const testCaseModuleFolder = path.join(testCaseNodeModules, 'ts-jest');
  - fsx.copySync(path.resolve('.'), testCaseModuleFolder, {
  - overwrite: true,
  - filter: function(src) {
  - const shouldCopy =
  - src === '.' ||
  - src.startsWith('dist') ||
  - src === 'package.json' ||
  - src.endsWith('.js');
  - return shouldCopy;
  - },
  +
  + // Copy javascript files
  + fsx.copySync(
  + path.resolve(rootDir, 'index.js'),
  + path.resolve(testCaseModuleFolder, 'index.js')
  + );
  + fsx.copySync(
  + path.resolve(rootDir, 'preprocessor.js'),
  + path.resolve(testCaseModuleFolder, 'preprocessor.js')
  + );
  +
  + // Copy package.json
  + fsx.copySync(
  + path.resolve(rootDir, 'package.json'),
  + path.resolve(testCaseModuleFolder, 'package.json')
  + );
  +
  + // Copy dist folder
  + fsx.copySync(
  + path.resolve(rootDir, 'dist'),
  + path.resolve(testCaseModuleFolder, 'dist')
  + );
  });
  }
  -}
  createIntegrationMock();
  