MCPcopy
hub / github.com/donmccurdy/glTF-Transform / createPlatformIO

Function createPlatformIO

packages/test-utils/src/index.ts:13–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11export const logger: Logger = new Logger(Logger.Verbosity.SILENT);
12
13export const createPlatformIO = async (): Promise<PlatformIO> => {
14 switch (environment) {
15 case Environment.WEB:
16 return new WebIO().setLogger(logger);
17 case Environment.NODE:
18 return new NodeIO().setLogger(logger);
19 }
20};
21
22export function resolve(path: string, base: string): string {
23 return new URL(path, base).pathname;

Callers 15

extension.test.tsFile · 0.90
root.test.tsFile · 0.90
animation.test.tsFile · 0.90
accessor.test.tsFile · 0.90
texture.test.tsFile · 0.90
mesh.test.tsFile · 0.90
skin.test.tsFile · 0.90
buffer.test.tsFile · 0.90
material.test.tsFile · 0.90
scene.test.tsFile · 0.90
camera.test.tsFile · 0.90
node.test.tsFile · 0.90

Calls 1

setLoggerMethod · 0.80

Tested by

no test coverage detected