Skip to content

Commit

Permalink
chore: upload test coverage to coveralls (#1006)
Browse files Browse the repository at this point in the history
## What kind of change does this PR introduce?

Upload coverage report to coveralls, check
https://coveralls.io/github/supabase/auth-js for uploaded report.
  • Loading branch information
grdsdev authored Dec 18, 2024
1 parent e8cda31 commit 6ec96fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: ['18', '20']
node: ["18", "20"]

runs-on: ${{ matrix.os }}

Expand All @@ -35,3 +35,9 @@ jobs:
- name: Run tests
run: |
npm t
- name: Upload coverage results to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./test/coverage/lcov.info
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build:module": "tsc -p tsconfig.module.json",
"lint": "eslint ./src/**/* test/**/*.test.ts",
"test": "run-s test:clean test:infra test:suite test:clean",
"test:suite": "jest --runInBand",
"test:suite": "jest --runInBand --coverage",
"test:infra": "cd infra && docker compose down && docker compose pull && docker compose up -d && sleep 30",
"test:clean": "cd infra && docker compose down",
"docs": "typedoc src/index.ts --out docs/v2 --excludePrivate --excludeProtected",
Expand Down
3 changes: 1 addition & 2 deletions src/lib/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export function uuid() {
})
}

export const isBrowser = () =>
typeof window !== 'undefined' && typeof document !== 'undefined'
export const isBrowser = () => typeof window !== 'undefined' && typeof document !== 'undefined'

const localStorageWriteTests = {
tested: false,
Expand Down

0 comments on commit 6ec96fd

Please sign in to comment.