Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
juchiast committed Jan 3, 2025
1 parent 9640049 commit 8d7195b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion @space-operator/client/tests/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ dotenv.loadSync({
export: true,
});

const anonKey = Deno.env.get("ANON_KEY");

if (!anonKey) throw new Error("no ANON_KEY");

const c = new client.Client({
host: "http://localhost:8080",
anonKey: Deno.env.get("ANON_KEY"),
anonKey,
});

function keypair_from_env() {
Expand Down
1 change: 1 addition & 0 deletions crates/integration-tests/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ fn run(sh: &Shell) -> anyhow::Result<()> {
sh.change_dir(&meta.workspace_root);
sh.change_dir("@space-operator/client");

println!("ANON_KEY: {:?}", std::env::var("ANON_KEY").ok());
cmd!(sh, "deno -A tests/auth.ts").run()?;

Ok(())
Expand Down

0 comments on commit 8d7195b

Please sign in to comment.