Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ services:
start_period: 10s

mongo:
image: mongo:8
# `mongo:8` floats to the newest 8.x release, which keeps failing its healthcheck on CI.
image: mongo:8.0
restart: always
container_name: e2e-tests-nuxt-4-mongo
ports:
Expand Down
13 changes: 9 additions & 4 deletions dev-packages/e2e-tests/test-applications/nuxt-4/global-setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
export default async function globalSetup() {
// Start MySQL, MongoDB, and Redis via Docker Compose. `--wait` blocks until the
// healthchecks in docker-compose.yml pass, so the app can connect immediately.
execSync('docker compose up -d --wait', {
cwd: __dirname,
stdio: 'inherit',
});
try {
execSync('docker compose up -d --wait', {
cwd: __dirname,
stdio: 'inherit',
});
} catch (error) {
execSync('docker compose logs --tail 50', { cwd: __dirname, stdio: 'inherit' });
throw error;
Comment on lines +16 to +17

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shows why the image went down, if it does.

}
}
Loading