react-native-filament
Version:
A real-time physically based 3D rendering engine for React Native
29 lines (27 loc) • 841 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.runTests = runTests;
var _TestHybridObject = require("./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.
function runTests() {
const TEST_HYBRID_OBJECTS = true;
if (__DEV__ && TEST_HYBRID_OBJECTS) {
const run = async () => {
await wrapTest('HybridObject', _TestHybridObject.testHybridObject);
};
run();
}
}
//# sourceMappingURL=RunTests.js.map