Skip to content

Commit

Permalink
chore: print
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak committed Apr 22, 2024
1 parent de13f86 commit 39bf118
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/overflowMenu/__tests__/OverflowMenuProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,24 @@ describe('HeaderButtonsProvider renders', () => {
console.log(`stdout: ${ls.stdout.toString()}`);

const cwd = process.cwd();
console.log({ cwd });
const examplePath = `${cwd}/example/`;
console.log({ cwd, examplePath });
child_process.execSync(
`cd ${examplePath} && yarn requires-ios && yarn requires-android`
);
ls = spawnSync('ls', ['-a', 'example']);

console.log(`stderr: ${ls.stderr.toString()}`);
console.log(`stdout: ${ls.stdout.toString()}`);
const more = spawnSync('less', ['example/requires-ios.txt']);
console.log(`stderr: ${more.stderr.toString()}`);
console.log(`stdout: ${more.stdout.toString()}`);
// Read the output from the file
const outputIos = fs.readFileSync(
path.join(examplePath, `requires-ios.txt`),
'utf8'
);
console.log({ outputIos });
const outputAndroid = fs.readFileSync(
path.join(examplePath, `requires-android.txt`),
'utf8'
Expand Down

0 comments on commit 39bf118

Please sign in to comment.