We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a0f18d commit 6a79e72Copy full SHA for 6a79e72
jest.config.js
@@ -11,7 +11,7 @@ const createJestConfig = nextJest({
11
const jestConfig = createJestConfig({
12
moduleDirectories: ['node_modules', '<rootDir>'],
13
setupFiles: ['dotenv/config'],
14
- testTimeout: 60000
+ testTimeout: 30000
15
});
16
17
module.exports = jestConfig;
tests/orchestrator.js
@@ -11,11 +11,12 @@ async function waitForAllServices() {
async function fetchStatusPage() {
const response = await fetch("http://localhost:3000/api/v1/status");
- const data = await response.json();
- if (response.status !== 200) {
+
+ if (!response.ok) {
throw new Error("Service is not ready");
}
18
- return data;
19
+ return false;
20
21
22
0 commit comments