Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dionjwa committed Oct 27, 2024
1 parent 8a28544 commit df4a16d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions app/worker/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ clean:
rm -rf src/_fresh

test: _build_local_module
deno run --unstable-sloppy-imports -A --unstable --unsafely-ignore-certificate-errors test/src/run-tests-in-astral.ts
rm -rf .certs
deno run -A --unstable --unsafely-ignore-certificate-errors test/src/run-tests-in-astral.ts

build: _build_local_module
deno task build

check:
@deno check --unstable-sloppy-imports src/main.ts
@check:
deno check src/main.ts
echo "✅ worker typescript compilation"

@_build_local_module:
Expand Down
4 changes: 2 additions & 2 deletions app/worker/test/src/run-tests-in-astral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const headless = !flags["disable-headless"];

const timePerTest = 10000;
const serverPort = Deno.env.get("APP_PORT") ? parseInt(Deno.env.get("APP_PORT")!) : 4430;
const serverFqdn = Deno.env.get("APP_FQDN") ? Deno.env.get("APP_FQDN")! : "server1.localhost";
const serverOrigin = `https://${serverFqdn}:${serverPort}`;
const serverFqdn = "localhost";//Deno.env.get("APP_FQDN") ? Deno.env.get("APP_FQDN")! : "server1.localhost";
const serverOrigin = `http://${serverFqdn}:${serverPort}`;

// Function to start the Deno Fresh server
async function startDenoFreshServer() {
Expand Down

0 comments on commit df4a16d

Please sign in to comment.