Skip to content

Commit 39dad51

Browse files
committed
WIP
1 parent c40d5a2 commit 39dad51

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/test-app/scripts/fake-tests.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const env = {
99
FORCE_COLOR: "1",
1010
};
1111

12-
const metro = spawn("npx", ["react-native", "start", "--no-interactive"], {
12+
const subprocess = spawn("sleep", ["20"], {
1313
cwd,
1414
stdio: "inherit",
1515
outputPrefix: "[metro] ",
@@ -22,11 +22,12 @@ const client = new Client({
2222
tests: () => {
2323
// write your tests here or require a package that calls the mocha globals
2424
describe("my thing", () => {
25-
it("works", () => {
25+
it("works", async () => {
2626
// yay!
27+
await new Promise((resolve) => setTimeout(resolve, 1000));
2728
});
2829
});
2930
},
3031
});
3132

32-
metro.catch(console.error);
33+
subprocess.catch(console.error);

0 commit comments

Comments
 (0)