* Creates a single entry point file by importing all individual spec files. * @param {string[]} files The individual spec files. * @param {Workspace} workspace The workspace. * @param {string} outputPath The path the file is written to. * @returns {Promise }
(files, workspace, outputPath)
| 852 | * @returns {Promise<string>} |
| 853 | */ |
| 854 | async function createSpecListForWorkspace(files, workspace, outputPath) { |
| 855 | let contents = ""; |
| 856 | files.forEach(function (file) { |
| 857 | contents += `import './${filePathToModuleId(file).replace( |
| 858 | `packages/${workspace}/Specs/`, |
| 859 | "", |
| 860 | )}.js';\n`; |
| 861 | }); |
| 862 | |
| 863 | await writeFile(outputPath, contents, { |
| 864 | encoding: "utf-8", |
| 865 | }); |
| 866 | |
| 867 | return contents; |
| 868 | } |
| 869 | |
| 870 | /** |
| 871 | * Bundles CSS files. |
no test coverage detected
searching dependent graphs…