react-native-filament
Version:
A real-time physically based 3D rendering engine for React Native
23 lines (22 loc) • 721 B
JavaScript
import { testHybridObject } from './TestHybridObject';
async function wrapTest(name, func) {
console.log(`-------- BEGIN TEST: ${name}`);
try {
await func();
console.log(`-------- END TEST: ${name}`);
} catch (e) {
console.error(`-------- ERROR IN TEST ${name}:`, e);
}
}
// TODO: Write proper tests for that that actually run on a device/simulator.
// I want to make sure Hybrid Objects and Choreographers all work fine and test those in the CI.
export function runTests() {
const TEST_HYBRID_OBJECTS = true;
if (__DEV__ && TEST_HYBRID_OBJECTS) {
const run = async () => {
await wrapTest('HybridObject', testHybridObject);
};
run();
}
}
//# sourceMappingURL=RunTests.js.map