Skip to content

Commit

Permalink
removed logging
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded committed Nov 22, 2023
1 parent 3ef4cb1 commit 7224ae4
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 13 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/cmds/entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ const cliStart = Effect.gen(function* (_) {
case "test": {
yield* _(
testEffect(args["envName"], { testNamePattern: args["GrepTest"] }).pipe(
Effect.tap(() => Effect.sync(() => console.log("✅ All Tests Passed"))),
Effect.catchTag("TestsFailedError", (error) => {
failedTests = error.fails;
return Effect.succeed(
Expand Down
4 changes: 1 addition & 3 deletions packages/cli/src/cmds/runTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ export const testEffect = (envName: string, additionalArgs?: object) => {
Effect.sync(() => vitest!.state.getFiles().filter((file) => file.result!.state === "fail"))
);

if (failed.length === 0) {
yield* _(Effect.succeed(() => console.log("✅ All tests passed")));
} else {
if (failed.length !== 0) {
yield* _(new Err.TestsFailedError({ fails: failed.length }));
}
});
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/internal/localNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export const launchNodeEffect = (cmd: string, args: string[]) =>
}
}
}
console.log("this is runningNode.pid", runningNode.pid);
return { pid: runningNode.pid, kill: runningNode.kill } satisfies LaunchedNode;
});

Expand Down
2 changes: 0 additions & 2 deletions packages/cli/src/lib/globalContextEffect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,6 @@ export class MoonwallContext {
const promises = nodes.map(async ({ cmd, args, launch }) => {
if (launch) {
const result = await Effect.runPromise(launchNodeEffect(cmd, args));
console.log("result pushed");
console.log(result);
this.nodes.push(result);
} else {
return Promise.resolve();
Expand Down
6 changes: 0 additions & 6 deletions packages/cli/src/lib/runnerContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export function describeSuite<T extends FoundationType>({
let ctx: any;

beforeAll(async function () {
console.log("this is before runner");
const effect = Effect.gen(function* (_) {
const globalConfig = yield* _(
Effect.tryPromise({
Expand All @@ -104,12 +103,9 @@ export function describeSuite<T extends FoundationType>({
});

ctx = await Effect.runPromise(effect);
console.log("Nodes in this instance are:");
console.log(ctx.nodes);
});

afterAll(async function () {
console.log("This is after all runner");
const effect = ctx.destroyEffect().pipe(
Effect.timeoutFail({
duration: "10 seconds",
Expand All @@ -118,8 +114,6 @@ export function describeSuite<T extends FoundationType>({
);

await Effect.runPromise(effect);
console.log("Nodes leftover are:");
console.log(ctx.nodes);
ctx = null;
});

Expand Down
2 changes: 1 addition & 1 deletion test/suites/basic/test_basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describeSuite({
id: "T01",
title: "This is a bool test case",
test: function () {
expect(true).to.be.true;
expect(false).to.be.true;
},
});

Expand Down

0 comments on commit 7224ae4

Please sign in to comment.