(allowSymlink, ...parts)
| 1836 | |
| 1837 | // Copy the existing build and isopacks to speed up the initial start |
| 1838 | function copyDirIntoTestRunnerApp(allowSymlink, ...parts) { |
| 1839 | // Depending on whether the user has run `meteor run` or other commands, they |
| 1840 | // may or may not exist yet |
| 1841 | const appDirPath = files.pathJoin(options.appDir, ...parts); |
| 1842 | const testDirPath = files.pathJoin(testRunnerAppDir, ...parts); |
| 1843 | |
| 1844 | files.mkdir_p(appDirPath); |
| 1845 | files.mkdir_p(files.pathDirname(testDirPath)); |
| 1846 | |
| 1847 | if (allowSymlink) { |
| 1848 | // Windows can create junction links without administrator |
| 1849 | // privileges since both paths refer to directories. |
| 1850 | files.symlink(appDirPath, testDirPath, "junction"); |
| 1851 | } else { |
| 1852 | files.cp_r(appDirPath, testDirPath, { |
| 1853 | preserveSymlinks: true |
| 1854 | }); |
| 1855 | } |
| 1856 | } |
| 1857 | |
| 1858 | copyDirIntoTestRunnerApp(false, '.meteor', 'local', 'build'); |
| 1859 | copyDirIntoTestRunnerApp(true, '.meteor', 'local', 'bundler-cache'); |
no outgoing calls
no test coverage detected
searching dependent graphs…