Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Revert "💚 ⚗️ debugging for gh-actions."
Browse files Browse the repository at this point in the history
This reverts commit 3ffed17.
  • Loading branch information
nanai10a committed Aug 1, 2022
1 parent 3ffed17 commit c584699
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
14 changes: 0 additions & 14 deletions watcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,16 +285,6 @@ for (const tp of tps) {
path: Std.path.join(tmpdir, path),
}));

const _expects = tp.outputs.map(({ type, path, timing }) => ({
type,
path: Std.path.join(tmpdir, path),
timing,
}));

console.log("expects: ");
console.table(_expects);
console.log();

const context: TextContext = {
path: (path) => Std.path.join(tmpdir, path),
};
Expand All @@ -311,14 +301,10 @@ for (const tp of tps) {

w.watch();

console.log("processing tasks...");

for (const task of tp.tasks) {
await task(context);
}

console.log("...completed");

for (const i in eventPsPromises) {
const params = await timeout(eventPsPromises[i]);

Expand Down
14 changes: 0 additions & 14 deletions watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export class Watcher extends EventTarget {
let event;
while ((event = await this.maybeEmit())) {
if (event.done === true) break;
this.debug(event.value);
this.handle(event.value);
}

Expand All @@ -57,19 +56,6 @@ export class Watcher extends EventTarget {
private readonly maybeEmit = () =>
Promise.race([this.emitter.next(), this.signal]);

private readonly debug = ({ kind, paths }: Deno.FsEvent) => {
console.log("event emitted:");

console.table({
kind,
path0: paths[0],
path1: paths[1],
pathl: paths.length,
});

console.log();
};

private readonly cleanup = () => {
this.fswatcher.close();

Expand Down

0 comments on commit c584699

Please sign in to comment.