MCPcopy Index your code
hub / github.com/callstack/linaria / waitForProcess

Function waitForProcess

packages/react/__tests__/detect-core-js.test.ts:3–13  ·  view source on GitHub ↗
(process)

Source from the content-addressed store, hash-verified

1import cp from 'child_process';
2
3const waitForProcess = async (process) => {
4 return new Promise((resolve) => {
5 let output = '';
6 process.stdout.on('data', (chunk) => {
7 output += chunk.toString();
8 });
9 process.on('close', () => {
10 resolve(output);
11 });
12 });
13};
14
15it('Ensures that package do not include core-js dependency after build', async () => {
16 // eslint-disable-next-line import/no-extraneous-dependencies

Callers 1

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected