This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //parent.js | |
| const { spawn } = require("child_process"); | |
| console.log("Parent process started."); | |
| // 1. Spawn the child process. | |
| // We use 'node' to execute the 'child.js' script. | |
| const childApp = spawn("node", ["child.js"], { | |
| stdio: "inherit", // Share the parent's console to see logs from the child. | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import path from 'path'; | |
| import fs from 'fs'; | |
| import { certificatesFromSerialPath } from '../../../constants'; | |
| import { hexToAscii } from '../../../utility'; | |
| import { checkComPort, exportSerialport, exportStore } from '../../../serialInterface'; | |
| import { log } from '../../../logger'; | |
| import tags from '../../../../terminalTags'; | |
| import { | |
| autoTestsActions, |