Skip to content

Commit

Permalink
chore: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theashraf committed Nov 3, 2024
1 parent bde0b64 commit 518d7d3
Show file tree
Hide file tree
Showing 66 changed files with 7,945 additions and 224 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ jobs:
run: pnpm lint

- name: 🛡️ Test
run: pnpm test
run: |
npx playwright install --with-deps
pnpm test
- name: 📏 Report bundle size
uses: andresz1/size-limit-action@v1
Expand Down
8 changes: 6 additions & 2 deletions packages/dotlottie-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
"lint": "eslint --fix .",
"stats:eslint": "cross-env TIMING=1 eslint .",
"stats:ts": "tsc -p tsconfig.build.json --extendedDiagnostics",
"test": "vitest",
"test": "pnpm run test:node && pnpm run test:browser",
"test:browser": "vitest --config=vitest.browser.config.ts",
"test:node": "vitest --config=vitest.config.ts",
"type-check": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -62,12 +64,14 @@
},
"devDependencies": {
"@types/jasmine": "4.3.5",
"@types/node": "18.0.6",
"@types/node": "22.8.7",
"@types/sharp": "0.31.1",
"@vitest/browser": "2.1.3",
"@vitest/coverage-v8": "2.1.3",
"cross-env": "7.0.3",
"js-base64": "3.7.5",
"nodemon": "2.0.20",
"playwright": "^1.48.2",
"tsup": "8.3.0",
"typescript": "4.7.4",
"vite-plugin-arraybuffer": "^0.0.8",
Expand Down
Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Loading

0 comments on commit 518d7d3

Please sign in to comment.