Install @playwright/test to perform test in real browser

This commit is contained in:
Faisal Salman
2023-04-08 09:26:07 +07:00
parent 625ece73e2
commit 05747dba37
7 changed files with 50 additions and 3 deletions

View File

@@ -164,12 +164,13 @@
],
"scripts": {
"build": "uglifyjs src/ua-parser.js -o dist/ua-parser.min.js --comments '/^ UA/' && uglifyjs src/ua-parser.js -o dist/ua-parser.pack.js --comments '/^ UA/' --compress --mangle && node script/build-module.js",
"test": "jshint src/ && mocha -R nyan test",
"test-ci": "jshint src/ && mocha -R spec test"
"test": "jshint src && mocha -R nyan test/mocha*js && npx playwright test",
"test-ci": "jshint src && mocha -R spec test/mocha*js && npx playwright test"
},
"devDependencies": {
"@babel/parser": "7.15.8",
"@babel/traverse": "7.15.4",
"@playwright/test": "^1.32.2",
"jshint": "~2.12.0",
"mocha": "~8.2.0",
"requirejs": "^2.3.2",