-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(nice-grpc-web): replace Karma+Jasmine with WDIO+Mocha for tests (…
- Loading branch information
Showing
14 changed files
with
2,164 additions
and
2,532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ coverage | |
.DS_Store | ||
|
||
grpcwebproxy | ||
browserstack-local | ||
logs | ||
*.log |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,14 +22,13 @@ | |
], | ||
"scripts": { | ||
"clean": "rimraf lib", | ||
"test": "NODE_TLS_REJECT_UNAUTHORIZED=0 ts-node ./run-specs-jasmine.ts", | ||
"test:local-browser": "karma start --single-run", | ||
"test:local-browser-headless": "karma start --single-run --headless", | ||
"test:browserstack": "npm run prepare:browserstack-local && karma start --single-run --browserstack", | ||
"test": "NODE_TLS_REJECT_UNAUTHORIZED=0 ts-node ./run-specs-mocha.ts", | ||
"test:local-browser": "wdio run ./wdio.conf.ts", | ||
"test:local-browser-headless": "USE_HEADLESS_BROWSER=true wdio run ./wdio.conf.ts", | ||
"test:browserstack": "USE_BROWSERSTACK=true wdio run ./wdio.conf.ts", | ||
"build": "tsc -P tsconfig.build.json && cpr -f '\\.(ts|tsx|snap)$' src lib", | ||
"prepublishOnly": "npm run clean && npm run build && npm test", | ||
"prepare:grpcwebproxy": "path-exists grpcwebproxy || node scripts/download-grpcwebproxy.js", | ||
"prepare:browserstack-local": "path-exists browserstack-local || node scripts/download-browserstack-local.js", | ||
"prepare:proto:grpc-web": "mkdirp ./fixtures/grpc-web && grpc_tools_node_protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --js_out=import_style=commonjs,binary:./fixtures/grpc-web --ts_out=service=grpc-web:./fixtures/grpc-web -I fixtures fixtures/*.proto", | ||
"prepare:proto:ts-proto": "mkdirp ./fixtures/ts-proto && grpc_tools_node_protoc --ts_proto_out=./fixtures/ts-proto --ts_proto_opt=outputServices=nice-grpc,outputServices=generic-definitions,outputJsonMethods=false,useExactTypes=false,esModuleInterop=true -I fixtures fixtures/*.proto", | ||
"prepare:proto": "npm run prepare:proto:grpc-web && npm run prepare:proto:ts-proto", | ||
|
@@ -38,45 +37,39 @@ | |
"author": "Daniel Lytkin <[email protected]>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@babel/core": "^7.21.0", | ||
"@babel/polyfill": "^7.12.1", | ||
"@babel/preset-env": "^7.20.2", | ||
"@improbable-eng/grpc-web": "^0.15.0", | ||
"@tsconfig/recommended": "^1.0.1", | ||
"@types/get-port": "^4.2.0", | ||
"@types/google-protobuf": "^3.15.2", | ||
"@types/jasmine": "^5.1.0", | ||
"@types/karma": "^6.3.3", | ||
"@types/tcp-port-used": "^1.0.0", | ||
"@types/tmp": "^0.2.3", | ||
"@types/ws": "^8.2.2", | ||
"@wdio/browser-runner": "^8.32.4", | ||
"@wdio/browserstack-service": "^8.33.0", | ||
"@wdio/cli": "^8.32.2", | ||
"@wdio/mocha-framework": "^8.32.4", | ||
"@wdio/spec-reporter": "^8.32.2", | ||
"assert-never": "^1.2.1", | ||
"chromedriver": "^121.0.2", | ||
"cpr": "^3.0.1", | ||
"detect-browser": "^5.3.0", | ||
"get-port": "^5.1.1", | ||
"glob": "^10.3.10", | ||
"google-protobuf": "^3.17.3", | ||
"grpc-tools": "^1.11.2", | ||
"jasmine": "^5.1.0", | ||
"jasmine-spec-reporter": "^7.0.0", | ||
"just-cartesian-product": "^4.2.0", | ||
"karma": "^6.4.1", | ||
"karma-babel-preprocessor": "^8.0.2", | ||
"karma-jasmine": "^5.1.0", | ||
"karma-spec-reporter": "^0.0.36", | ||
"karma-typescript": "^5.5.3", | ||
"karma-typescript-es6-transform": "^5.5.3", | ||
"mkdirp": "^3.0.1", | ||
"mocha": "^10.3.0", | ||
"path-exists-cli": "^2.0.0", | ||
"request": "^2.88.2", | ||
"selfsigned": "^2.1.1", | ||
"string-env-interpolation": "^1.0.1", | ||
"tcp-port-used": "^1.0.2", | ||
"testcontainers": "^10.2.1", | ||
"ts-node": "^10.9.2", | ||
"ts-proto": "^1.112.0", | ||
"ts-protoc-gen": "^0.15.0", | ||
"unzipper": "^0.10.11", | ||
"webdriverio": "^8.32.2", | ||
"ws": "^8.4.2" | ||
}, | ||
"dependencies": { | ||
|
Oops, something went wrong.