Skip to content

Commit

Permalink
chore: update coverage benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema committed Nov 21, 2023
1 parent 03dfe8e commit 4270704
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,21 @@ jobs:
- uses: actions/checkout@v2

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Linting & Formatting
run: npm run lint

- name: Tests Node
- name: Node tests
run: npm run test:node

- name: Install chromium
run: npx playwright install-deps chromium

- name: Tests Chromium
run: npm run test:unit
- name: Browser tests
run: npm run test:browser
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
"lint": "run-p lint:*",
"lint:eslint": "eslint \"**/*.js\"",
"lint:prettier": "prettier \"**/*.{js,md}\" \"package.json\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)",
"test": "npm run test:unit && npm run test:node",
"test:unit": "web-test-runner --coverage",
"test:unit:coverage": "cd coverage/lcov-report && npx http-server -o -c-1",
"test:unit:watch": "web-test-runner --watch",
"test:unit:update-snapshots": "web-test-runner --update-snapshots",
"test": "npm run test:browser && npm run test:node",
"test:browser": "web-test-runner --coverage",
"test:browser:coverage": "cd coverage/lcov-report && npx http-server -o -c-1",
"test:browser:watch": "web-test-runner --watch",
"test:browser:update-snapshots": "web-test-runner --update-snapshots",
"test:node": "mocha -r mocha-hooks.mjs './__integration__/**/*.test.js' './__tests__/**/*.test.js' './__node_tests__/**/*.test.js'",
"generate-docs": "node ./scripts/generateDocs.js",
"serve-docs": "docsify serve docs -p 3000 -P 12345",
Expand Down
9 changes: 4 additions & 5 deletions web-test-runner.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@ const filesToMirror = glob

export default {
nodeResolve: true,
browserLogs: false,
files: ['__(tests|integration)__/**/*.test.js'],
coverageConfig: {
report: true,
reportDir: 'coverage',
threshold: {
statements: 97,
branches: 99,
functions: 95,
lines: 97,
statements: 98.9,
branches: 99.89,
functions: 96.53,
lines: 98.9,
},
},
browsers: [
Expand Down

0 comments on commit 4270704

Please sign in to comment.