Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Unit Tests"
name: "CI"

on:
push:
Expand All @@ -9,17 +9,9 @@ on:
branches:
- "*"

jobs:
build:
name: "Unit Tests on Ubuntu"
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
- run: npm ci
- run: npx eslint . --ext .js,.ts
- run: npm test
jobs:
ci:
uses: braintree/web-sdk-github-actions/.github/workflows/ci.yml@3d3621c5bb46edf879370cec4e63a34d345db4cf
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,14 @@ module.exports = {
preset: "ts-jest",
testEnvironment: "node",
testPathIgnorePatterns: ["__tests__/helpers.ts"],
collectCoverage: true,
collectCoverageFrom: ["src/**/*.ts"],
coverageThreshold: {
global: {
lines: 80,
statements: 80,
branches: 80,
functions: 80,
},
},
};
22 changes: 3 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading