mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
test: Run playwright-test for browser testing.
This commit is contained in:
parent
b447ae0ec1
commit
01187a31f8
2
.github/workflows/run-test.yml
vendored
2
.github/workflows/run-test.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
||||
run: npm ci
|
||||
- name: Run linter
|
||||
run: npm run lint
|
||||
- name: Run webrtc-star-signalling-server in the background
|
||||
- name: Run a webrtc relay in the background
|
||||
run: npm run webrtc:background
|
||||
- name: Run browser tests
|
||||
run: npm run test:browser
|
||||
|
769
package-lock.json
generated
769
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -38,10 +38,9 @@
|
||||
"it-all": "^3.0.3",
|
||||
"jsdoc": "^4.0.2",
|
||||
"mocha": "^10.2.0",
|
||||
"mocha-headless-chrome": "^4.0.0",
|
||||
"open-cli": "^7.2.0",
|
||||
"path-browserify": "^1.0.1",
|
||||
"playwright-test": "^12.3.4",
|
||||
"playwright-test": "^12.3.5",
|
||||
"rimraf": "^5.0.1",
|
||||
"standard": "^17.1.0",
|
||||
"webpack": "^5.88.2",
|
||||
@ -52,7 +51,7 @@
|
||||
"test:all": "npm run test:browser-multiple-tabs && npm run test",
|
||||
"test": "cross-env mocha --config test/.mocharc.json",
|
||||
"test:ci": "cross-env c8 mocha --config test/.mocharc.json",
|
||||
"test:browser": "npm run build:tests && mocha-headless-chrome -t 360000 -f ./test/browser/index.html -a no-sandbox",
|
||||
"test:browser": "npm run build:tests && ./node_modules/.bin/playwright-test test/browser/bundle.js --runner mocha",
|
||||
"build": "npm run build:dist && npm run build:debug",
|
||||
"build:dist": "webpack --config conf/webpack.config.js",
|
||||
"build:debug": "webpack --config conf/webpack.debug.config.js",
|
||||
@ -61,8 +60,8 @@
|
||||
"prepublishOnly": "npm run build",
|
||||
"lint": "standard --env=mocha",
|
||||
"lint:fix": "standard --fix",
|
||||
"webrtc": "webrtc-star --port=12345",
|
||||
"webrtc:background": "webrtc-star --port=12345 &"
|
||||
"webrtc": "node ./test/utils/relay.js",
|
||||
"webrtc:background": "node ./test/utils/relay.js &"
|
||||
},
|
||||
"standard": {
|
||||
"env": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user