Skip to content

Commit 6c37ee5

Browse files
committed
Enhance testing setup in package.json by adding new test commands for visual regression and coverage, and introduce a new web-test-runner configuration file to support advanced testing features. This improves the testing workflow and integrates visual regression capabilities.
1 parent 131b2ab commit 6c37ee5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@
6565
"lint:types": "tsc",
6666
"lint": "npm run lint:eslint",
6767
"format": "npm run format:eslint",
68-
"test": "web-test-runner --config web-test-runner.config.cjs",
69-
"test:watch": "web-test-runner --config web-test-runner.config.cjs --watch",
68+
"test": "web-test-runner test/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit && npm run test:visual",
69+
"test:visual": "web-test-runner test/visual/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit",
70+
"test:watch": "web-test-runner test/*.test.js --node-resolve --watch --playwright --browsers chromium",
71+
"test:visual:update": "web-test-runner test/**/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit --update-visual-baseline\n",
7072
"gen:wc": "wca analyze \"*.js\" --outFile custom-elements.json",
7173
"prepare": "node demo/model.js"
7274
},
File renamed without changes.

0 commit comments

Comments
 (0)