( fixturePath: string, payload: Record<string, any> )
| 256 | } |
| 257 | |
| 258 | export async function configureRegistries( |
| 259 | fixturePath: string, |
| 260 | payload: Record<string, any> |
| 261 | ) { |
| 262 | if (!fs.pathExistsSync(path.join(fixturePath, "components.json"))) { |
| 263 | await fs.writeJSON(path.join(fixturePath, "components.json"), { |
| 264 | registries: payload, |
| 265 | }) |
| 266 | } |
| 267 | |
| 268 | const componentsJson = await fs.readJSON( |
| 269 | path.join(fixturePath, "components.json") |
| 270 | ) |
| 271 | componentsJson.registries = payload |
| 272 | await fs.writeJSON(path.join(fixturePath, "components.json"), componentsJson) |
| 273 | } |
no outgoing calls
no test coverage detected