MCPcopy Create free account
hub / github.com/compat-table/compat-table / testRunner

Function testRunner

hermes.js:107–125  ·  view source on GitHub ↗
(testFilename)

Source from the content-addressed store, hash-verified

105}
106
107function testRunner(testFilename) {
108 var processArgs = getArgs(testFilename);
109 if (argv.reactNativeBundler) {
110 var transpilerCommand = 'curl -s --upload-file ./' + testFilename + ' "' + argv.reactNativeBundler + '"';
111 var traspilerStdout = child_process.execSync(transpilerCommand);
112 fs.writeFileSync(testFilename, traspilerStdout.toString());
113 }
114
115 try {
116 var stdout = child_process.execFileSync(hermesCommand, processArgs, {
117 encoding: 'utf-8'
118 });
119
120 return /^\[SUCCESS\]$/m.test(stdout);
121 } catch (e) {
122 // console.log(e);
123 return false;
124 }
125}
126
127function resultsMatch(expect, actual) {
128 // Handling notes

Callers

nothing calls this directly

Calls 1

getArgsFunction · 0.85

Tested by

no test coverage detected