File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -839,3 +839,20 @@ await Promise.all([
839839 .close (),
840840]);
841841```
842+
843+ ### Updating to version 3.x
844+
845+ As of version 3, ` @types/supertest ` is an optional peer dependency, and the
846+ package exports have been tidied up. The package may no-longer work in old,
847+ unsupported versions of Node.js (prior to version 20).
848+
849+ If you are using ` supertest ` and TypeScript, you will need to explicitly
850+ install the necessary types:
851+
852+ ``` sh
853+ npm install --save-dev @types/supertest
854+ ```
855+
856+ If you are using the legacy ` require('superwstest').default ` syntax, you will
857+ need to drop the ` .default ` , or update to using the modern
858+ ` import 'superwstest' ` syntax.
Original file line number Diff line number Diff line change 11{
22 "name" : " superwstest" ,
3- "version" : " 2.1.1 " ,
3+ "version" : " 3.0.0 " ,
44 "private" : true ,
55 "description" : " supertest with added WebSocket capabilities" ,
66 "main" : " ./superwstest.cjs" ,
You can’t perform that action at this time.
0 commit comments