Skip to content

Commit 57f33da

Browse files
committed
prolonging the tests
1 parent c40d5a2 commit 57f33da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ const metro = spawn("npx", ["react-native", "start", "--no-interactive"], {
1818

1919
// Create a client, which will automatically connect to the server on the default port (8090)
2020
const client = new Client({
21+
timeout: 60000, // 60 seconds timeout for the client to connect
2122
// Called when the server asks the client to run
2223
tests: () => {
2324
// write your tests here or require a package that calls the mocha globals
2425
describe("my thing", () => {
25-
it("works", () => {
26+
it("works", async () => {
2627
// yay!
28+
await new Promise((resolve) => setTimeout(resolve, 30000));
2729
});
2830
});
2931
},

0 commit comments

Comments
 (0)