Skip to content

Commit

Permalink
chore(deps): update dependency vitest to v1 (#201)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency vitest to v1

* chore: vitest fix + cleanup

* test: use length

* feat: codecov

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: DanCodes <dan@dancodes.online>
  • Loading branch information
renovate[bot] and dan-online committed May 7, 2024
1 parent e67af77 commit 258b421
Show file tree
Hide file tree
Showing 5 changed files with 712 additions and 484 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@ jobs:
env:
BUNNY_VIDEO_LIBRARY: ${{ secrets.BUNNY_VIDEO_LIBRARY }}
BUNNY_API_KEY: ${{ secrets.BUNNY_API_KEY }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build Code
run: yarn build
8 changes: 1 addition & 7 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
enableGlobalCache: true

nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
nodeLinker: pnpm

yarnPath: .yarn/releases/yarn-3.8.1.cjs
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@types/rimraf": "^4.0.5",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@vitest/coverage-c8": "^0.31.4",
"@vitest/coverage-v8": "^1.6.0",
"dotenv": "^16.3.1",
"eslint": "^8.42.0",
"eslint-config-prettier": "^9.0.0",
Expand All @@ -53,7 +53,7 @@
"typedoc": "^0.24.7",
"typedoc-plugin-markdown": "^3.15.3",
"typescript": "^5.1.3",
"vitest": "^0.31.4"
"vitest": "^1.6.0"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion tests/Bunny.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ describe('BunnyCdnStream', () => {
metaTags: []
});

expect(video.resolutions).toHaveLength(4);
expect(video.resolutions.length).toBeGreaterThan(0);
});

test('GIVEN library w/ encoded video THEN can upload vtt subtitles', async () => {
Expand Down
Loading

0 comments on commit 258b421

Please sign in to comment.