Skip to content

Commit

Permalink
try @actions/core for ci debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerbarker committed Jan 4, 2025
1 parent 16ed742 commit cf3481f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"packages/*"
],
"devDependencies": {
"@actions/core": "^1.11.1",
"@microsoft/api-extractor": "^7.43.2",
"bun-types": "^1.1.38"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { beforeEach, describe, expect, test } from "bun:test";
import * as core from '@actions/core';
import { Socket } from "phoenix_ts";
import LiveSocket from "../../src/live_socket";

Expand Down Expand Up @@ -57,10 +58,10 @@ describe("metadata", () => {
const btn = view.el.querySelector("button");
let meta = {};
stubViewPushEvent(view, (type, el, target, phxEvent, metadata, _opts) => {
console.log("OUTER META", meta);
console.log("INNER META", metadata);
core.debug(`OUTER META: ${JSON.stringify(meta)}`);
core.debug(`INNER META: ${JSON.stringify(metadata)}`);
meta = metadata;
console.log("OUTER META POST ASSIGN", meta);
core.debug(`OUTER META ASSIGN ${JSON.stringify(meta)}`);
});
btn.dispatchEvent(new Event("click", { bubbles: true }));

Expand Down

0 comments on commit cf3481f

Please sign in to comment.