Skip to content

Commit

Permalink
test: setup test framework
Browse files Browse the repository at this point in the history
It took me lots of time...
But it works!!!
  • Loading branch information
lingbopro committed Jan 19, 2025
1 parent 92a82d1 commit af03369
Show file tree
Hide file tree
Showing 4 changed files with 3,125 additions and 115 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules/
dist/
.__compile_cache__/
coverage/
package-lock.json
yarn.lock
!pnpm-lock.yaml
Expand Down
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
"prepare": "husky",
"script": "node dev/scripts/script.mjs",
"serve": "node dev/scripts/script.mjs server",
"test": "web-test-runner",
"test:coverage": "web-test-runner --coverage",
"test:manual": "web-test-runner --manual",
"test:watch": "web-test-runner --watch",
"test:setup": "playwright install",
"watch": "node dev/scripts/script.mjs watch",
"watch:dev": "node dev/scripts/script.mjs watch --no-min-bundle"
},
Expand All @@ -38,11 +43,31 @@
"@babel/preset-env": "^7.26.0",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@esm-bundle/chai": "4.3.4-fix.0",
"@lit/reactive-element": "^2.0.4",
"@open-wc/semantic-dom-diff": "^0.20.1",
"@open-wc/testing": "^4.0.0",
"@open-wc/testing-helpers": "^3.0.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@types/chai-dom": "^1.11.3",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.7",
"@types/sinon-chai": "^4.0.0",
"@web/dev-server": "^0.4.6",
"@web/dev-server-esbuild": "^1.0.3",
"@web/test-runner": "^0.19.0",
"@web/test-runner-commands": "^0.9.0",
"@web/test-runner-playwright": "^0.11.0",
"axe-core": "^4.10.2",
"chai-a11y-axe": "^1.5.0",
"husky": "^9.1.7",
"lit": "^3.2.1",
"lit-element": "^4.1.1",
"lit-html": "^3.2.1",
"prettier": "^3.4.2",
"rollup": "^4.27.4",
"tslib": "^2.8.1",
"typescript": "^5.7.2"
}
}
Loading

0 comments on commit af03369

Please sign in to comment.