Skip to content

Commit

Permalink
text(e2e): more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Apr 7, 2024
1 parent 206d51d commit cc851bd
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,18 @@ Cypress.Commands.add("seed", (dirname) => {
compose: [`--project-directory ${dirname}`].join(" "),
up: ["--detach", "--build"].join(" "),
};
cy.exec(`docker compose ${args.compose} up ${args.up}`, {
env,
}).then((result) => cy.task("log", result.stdout));
cy.exec(`docker compose ${args.compose} wait migrated-db`, {
env,
});
{
const command = `docker compose ${args.compose} up ${args.up}`;
cy.task("log", `$ ${command}`);
cy.exec(command, {
env,
}).then((result) => cy.task("log", result.stdout));
}
{
const command = `docker compose ${args.compose} wait migrated-db`;
cy.task("log", `$ ${command}`);
cy.exec(command, {
env,
}).then((result) => cy.task("log", result.stdout));
}
});

0 comments on commit cc851bd

Please sign in to comment.