()
| 83 | } |
| 84 | |
| 85 | export async function createTestProject(): Promise<string> { |
| 86 | const tmpdir = await fs.promises.mkdtemp(`${os.tmpdir()}${path.sep}`); |
| 87 | const projectDir = path.join(tmpdir, projectSpecV1_0_0.name); |
| 88 | |
| 89 | const exampleProject = await getExampleProject('polkadot', 'polkadot'); |
| 90 | |
| 91 | const projectPath = await cloneProjectTemplate(tmpdir, projectSpecV1_0_0.name, exampleProject); |
| 92 | await prepare(projectPath, projectSpecV1_0_0); |
| 93 | |
| 94 | await installAndBuild(projectDir); |
| 95 | |
| 96 | return projectDir; |
| 97 | } |
| 98 | |
| 99 | export async function createMultiChainTestProject(): Promise<{multichainManifestPath: string; fullPaths: string[]}> { |
| 100 | const tmpdir = await fs.promises.mkdtemp(`${os.tmpdir()}${path.sep}`); |
no test coverage detected