Skip to content

Commit

Permalink
fix(access-api): ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Aug 19, 2022
1 parent ae70810 commit 314cf63
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .env.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file is used as-is to run tests

# Worker secrets
PRIVATE_KEY=MgCaVbo9CIphj0oV3INFKfxPRkzxDYCBh4uy5ca4jH5EsHO0B537/FZybYPc57qGV3MglRFGQKQgwLC2T1anpDNW0Ylg=KeXR1pQU36k1yoIBqTsmT+D8=
POSTMARK_TOKEN=secret
SENTRY_DSN=https://000000@0000000.ingest.sentry.io/00000

# CI secrets
SENTRY_TOKEN=secret
SENTRY_UPLOAD=false
2 changes: 1 addition & 1 deletion packages/access-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"deploy": "wrangler publish",
"dev": "miniflare --watch --debug --env ../../.env",
"build": "scripts/cli.js build",
"test": "tsc && ava"
"test": "tsc --build && ava"
},
"author": "Hugo Dias <hugomrdias@gmail.com> (hugodias.me)",
"license": "(Apache-2.0 OR MIT)",
Expand Down
2 changes: 1 addition & 1 deletion packages/access-api/test/helpers/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { fileURLToPath } from 'url'
const __dirname = path.dirname(fileURLToPath(import.meta.url))

dotenv.config({
path: path.join(__dirname, '..', '..', '..', '..', '.env'),
path: path.join(__dirname, '..', '..', '..', '..', '.env.tpl'),
})
/**
* @typedef {import("ava").TestFn<{mf: mf}>} TestFn
Expand Down

0 comments on commit 314cf63

Please sign in to comment.