issues
search
open-source-labs
/
Swell
Swell: API development tool that enables developers to test endpoints served over streaming technologies including Server-Sent Events (SSE), WebSockets, HTTP2, GraphQL, gRPC, and tRPC..
http://www.getswell.io
MIT License
979
stars
141
forks
source link
Updated npm packages, Fixed mocha tests
#312
Closed
MajorLift
closed
2 years ago
MajorLift
commented
2 years ago
Hopefully eases onboarding for future iteration teams
Any suggestions are welcome (how to handle broken tests, webhook backend functionality, etc.)
Node, npm packages version update
All npm packages updated to latest major version
updated .nvmrc and package.json node version setting to lts/gallium (v16), npm version to 8.1.2
app doesn't load with node v17 on m1 mac (csp error)
node-sass also replaced with sass for compatibility
fixed all errors on electron launch and fetch requests
TODO: Set up dependabot?
Accompanying changes
webpack to v5 - adjusted config files for breaking changes
convert require() to static import where necessary
node-fetch downgraded to v2 which supports require() syntax
removed express server launch commands from build, dev, prod scripts and commented out ngrok polling code
requests unsuccessful
severely congests devtools console
Repaired Mocha Tests
Downgraded electron to v13 for compatibility with latest spectron pkg (v15).
Rewrote mixed async-sync method chaining logic throughout test suite as previous implementation was non-functional.
Restored erroneously commented-out code throughout codebase
Added test folder to .prettierignore to keep necessary string combinations from being removed
e.g. \/\/, await (await ...)
BROKEN TESTS (FIXME: temporarily commented out)
GraphQL
: introspection, compose queries from variables, subscriptions
Websockets
: ALL (serialization failure error)
gRPC
: mocha tests pass, but with element not found errors for selectors defined in GrpcObj.js
Node, npm packages version update
Accompanying changes
Repaired Mocha Tests
BROKEN TESTS (FIXME: temporarily commented out)