Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Natoandro committed Jul 3, 2024
1 parent 4827c6b commit 7406464
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion typegate/tests/e2e/cli/dev_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,18 +254,28 @@ Meta.test(
const examplesDir = $.path(workspaceDir).join("examples");

Meta.test("meta dev with typegate", async (t) => {
await $`bash build.sh`.cwd(examplesDir.join("typegraphs/metagen/rs"));

const metadev = new Deno.Command("meta-full", {
cwd: examplesDir.toString(),
args: ["dev"],
stdout: "piped",
stderr: "piped",
}).spawn();
const stderr = new Lines(metadev.stderr);
const stdout = new Lines(metadev.stdout);

const deployed: [string, string][] = [];

console.log(new Date());
stdout.readWhile((line) => {
console.log("meta-full dev>", line);
return true;
}, null);

await stderr.readWhile((rawLine) => {
const line = $.stripAnsi(rawLine);
// console.log("meta-full dev>", line);
console.log("meta-full dev[E]>", line);
const match = line.match(
/successfully deployed typegraph ([\w_-]+) from (.+)$/,
);
Expand Down

0 comments on commit 7406464

Please sign in to comment.