Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤖 User test baselines have changed for master #114

Open
wants to merge 2 commits into
base: user-baseline-updates
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 38 additions & 8 deletions tests/baselines/reference/user/TypeScript-Node-Starter.log
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,44 @@ Standard output:
node_modules/connect-mongo/src/types.d.ts(113,66): error TS2694: Namespace 'Express' has no exported member 'SessionData'.
node_modules/connect-mongo/src/types.d.ts(114,45): error TS2694: Namespace 'Express' has no exported member 'SessionData'.
node_modules/connect-mongo/src/types.d.ts(118,47): error TS2694: Namespace 'Express' has no exported member 'SessionData'.
src/app.ts(72,21): error TS2339: Property 'returnTo' does not exist on type 'Session | InitializedSession'.
Property 'returnTo' does not exist on type 'Session'.
src/app.ts(75,21): error TS2339: Property 'returnTo' does not exist on type 'Session | InitializedSession'.
Property 'returnTo' does not exist on type 'Session'.
src/app.ts(116,30): error TS2339: Property 'returnTo' does not exist on type 'Session | InitializedSession'.
Property 'returnTo' does not exist on type 'Session'.
src/controllers/user.ts(51,38): error TS2339: Property 'returnTo' does not exist on type 'Session | InitializedSession'.
Property 'returnTo' does not exist on type 'Session'.
src/app.ts(72,21): error TS2339: Property 'returnTo' does not exist on type 'Session & Partial<SessionData>'.
src/app.ts(75,21): error TS2339: Property 'returnTo' does not exist on type 'Session & Partial<SessionData>'.
src/app.ts(116,30): error TS2339: Property 'returnTo' does not exist on type 'Session & Partial<SessionData>'.
src/config/passport.ts(18,24): error TS7006: Parameter 'err' implicitly has an 'any' type.
src/config/passport.ts(18,29): error TS7006: Parameter 'user' implicitly has an 'any' type.
src/config/passport.ts(28,51): error TS7006: Parameter 'err' implicitly has an 'any' type.
src/config/passport.ts(71,49): error TS7006: Parameter 'err' implicitly has an 'any' type.
src/config/passport.ts(71,54): error TS7006: Parameter 'existingUser' implicitly has an 'any' type.
src/config/passport.ts(77,45): error TS7006: Parameter 'err' implicitly has an 'any' type.
src/config/passport.ts(92,49): error TS7006: Parameter 'err' implicitly has an 'any' type.
src/config/passport.ts(92,54): error TS7006: Parameter 'existingUser' implicitly has an 'any' type.
src/config/passport.ts(97,59): error TS7006: Parameter 'err' implicitly has an 'any' type.
src/config/passport.ts(97,64): error TS7006: Parameter 'existingEmailUser' implicitly has an 'any' type.
src/controllers/user.ts(51,38): error TS2339: Property 'returnTo' does not exist on type 'Session & Partial<SessionData>'.
src/controllers/user.ts(101,46): error TS7006: Parameter 'err' implicitly has an 'any' type.
src/controllers/user.ts(101,51): error TS7006: Parameter 'existingUser' implicitly has an 'any' type.
src/controllers/user.ts(146,29): error TS7006: Parameter 'err' implicitly has an 'any' type.
src/controllers/user.ts(153,19): error TS2769: No overload matches this call.
Overload 1 of 3, '(options?: SaveOptions): Promise<UserDocument>', gave the following error.
Type '(err: WriteError) => void' has no properties in common with type 'SaveOptions'.
Overload 2 of 3, '(options?: SaveOptions, fn?: (err: NativeError, doc: UserDocument) => void): void', gave the following error.
Type '(err: WriteError) => void' has no properties in common with type 'SaveOptions'.
Overload 3 of 3, '(fn?: (err: NativeError, doc: UserDocument) => void): void', gave the following error.
Argument of type '(err: WriteError) => void' is not assignable to parameter of type '(err: NativeError, doc: UserDocument) => void'.
Types of parameters 'err' and 'err' are incompatible.
Type 'NativeError' is missing the following properties from type 'WriteError': code, index, errmsg
src/controllers/user.ts(183,29): error TS7006: Parameter 'err' implicitly has an 'any' type.
src/controllers/user.ts(186,19): error TS2769: No overload matches this call.
Overload 1 of 3, '(options?: SaveOptions): Promise<UserDocument>', gave the following error.
Type '(err: WriteError) => void' has no properties in common with type 'SaveOptions'.
Overload 2 of 3, '(options?: SaveOptions, fn?: (err: NativeError, doc: UserDocument) => void): void', gave the following error.
Type '(err: WriteError) => void' has no properties in common with type 'SaveOptions'.
Overload 3 of 3, '(fn?: (err: NativeError, doc: UserDocument) => void): void', gave the following error.
Argument of type '(err: WriteError) => void' is not assignable to parameter of type '(err: NativeError, doc: UserDocument) => void'.
Types of parameters 'err' and 'err' are incompatible.
Type 'NativeError' is not assignable to type 'WriteError'.
src/controllers/user.ts(215,29): error TS7006: Parameter 'err' implicitly has an 'any' type.
src/controllers/user.ts(349,54): error TS7006: Parameter 'err' implicitly has an 'any' type.



Expand Down
7 changes: 1 addition & 6 deletions tests/baselines/reference/user/TypeScript-WeChat-Starter.log
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
Exit Code: 2
Standard output:
node_modules/@types/connect/index.d.ts(21,42): error TS2689: Cannot extend an interface 'http.IncomingMessage'. Did you mean 'implements'?
node_modules/@types/serve-static/index.d.ts(18,45): error TS2694: Namespace '"http"' has no exported member 'OutgoingMessage'.
node_modules/@types/serve-static/index.d.ts(25,49): error TS2694: Namespace '"http"' has no exported member 'OutgoingMessage'.
node_modules/@types/serve-static/index.d.ts(25,72): error TS2694: Namespace '"http"' has no exported member 'OutgoingMessage'.
node_modules/@types/serve-static/index.d.ts(98,45): error TS2694: Namespace '"http"' has no exported member 'OutgoingMessage'.
node_modules/@types/serve-static/index.d.ts(102,56): error TS2694: Namespace '"http"' has no exported member 'OutgoingMessage'.
node_modules/@types/connect/index.d.ts(20,42): error TS2689: Cannot extend an interface 'http.IncomingMessage'. Did you mean 'implements'?



Expand Down
18 changes: 9 additions & 9 deletions tests/baselines/reference/user/adonis-framework.log
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ node_modules/adonis-framework/src/Config/index.js(39,15): error TS2304: Cannot f
node_modules/adonis-framework/src/Config/index.js(58,15): error TS2304: Cannot find name 'Mixed'.
node_modules/adonis-framework/src/Encryption/index.js(53,15): error TS2304: Cannot find name 'Mixed'.
node_modules/adonis-framework/src/Encryption/index.js(71,34): error TS2769: No overload matches this call.
Overload 1 of 4, '(data: ArrayBufferView, input_encoding: undefined, output_encoding: HexBase64BinaryEncoding): string', gave the following error.
Overload 1 of 4, '(data: ArrayBufferView, input_encoding: undefined, output_encoding: BinaryToTextEncoding): string', gave the following error.
Argument of type 'string' is not assignable to parameter of type 'undefined'.
Overload 2 of 4, '(data: string, input_encoding: "utf8" | "ascii" | "binary" | undefined, output_encoding: HexBase64BinaryEncoding): string', gave the following error.
Argument of type 'string' is not assignable to parameter of type '"utf8" | "ascii" | "binary" | undefined'.
Overload 2 of 4, '(data: string, input_encoding: "utf8" | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined, output_encoding: BinaryToTextEncoding): string', gave the following error.
Argument of type 'string' is not assignable to parameter of type '"utf8" | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined'.
node_modules/adonis-framework/src/Encryption/index.js(77,27): error TS2322: Type 'string' is not assignable to type 'Buffer'.
node_modules/adonis-framework/src/Encryption/index.js(77,50): error TS2345: Argument of type 'Buffer' is not assignable to parameter of type 'string'.
node_modules/adonis-framework/src/Encryption/index.js(85,23): error TS8024: JSDoc '@param' tag has name 'value', but there is no parameter with that name.
node_modules/adonis-framework/src/Encryption/index.js(87,15): error TS2304: Cannot find name 'Mixed'.
node_modules/adonis-framework/src/Encryption/index.js(101,62): error TS2769: No overload matches this call.
Overload 1 of 4, '(data: ArrayBufferView, input_encoding: "base64" | "binary" | "hex" | undefined, output_encoding: Utf8AsciiBinaryEncoding): string', gave the following error.
Argument of type 'string' is not assignable to parameter of type 'Utf8AsciiBinaryEncoding'.
Overload 2 of 4, '(data: string, input_encoding: "base64" | "binary" | "hex" | undefined, output_encoding: Utf8AsciiBinaryEncoding): string', gave the following error.
Argument of type 'string' is not assignable to parameter of type 'Utf8AsciiBinaryEncoding'.
node_modules/adonis-framework/src/Encryption/index.js(101,21): error TS2769: No overload matches this call.
Overload 1 of 4, '(data: ArrayBufferView, input_encoding: undefined, output_encoding: BufferEncoding): string', gave the following error.
Argument of type '"base64"' is not assignable to parameter of type 'undefined'.
Overload 2 of 4, '(data: string, input_encoding: "base64" | "hex" | undefined, output_encoding: BufferEncoding): string', gave the following error.
Argument of type 'string' is not assignable to parameter of type 'BufferEncoding'.
node_modules/adonis-framework/src/Encryption/index.js(102,5): error TS2322: Type 'string' is not assignable to type 'Buffer & string'.
Type 'string' is not assignable to type 'Buffer'.
node_modules/adonis-framework/src/Encryption/index.js(102,33): error TS2345: Argument of type 'string' is not assignable to parameter of type 'BufferEncoding'.
Expand Down Expand Up @@ -125,7 +125,7 @@ node_modules/adonis-framework/src/Request/index.js(466,15): error TS2304: Cannot
node_modules/adonis-framework/src/Request/index.js(468,15): error TS2304: Cannot find name 'Mixed'.
node_modules/adonis-framework/src/Request/index.js(480,14): error TS2304: Cannot find name 'Mixed'.
node_modules/adonis-framework/src/Request/index.js(482,15): error TS2304: Cannot find name 'Mixed'.
node_modules/adonis-framework/src/Request/index.js(499,17): error TS2551: Property '_params' does not exist on type 'Request'. Did you mean 'param'?
node_modules/adonis-framework/src/Request/index.js(499,17): error TS2551: Property '_params' does not exist on type 'Request'. Did you mean 'params'?
node_modules/adonis-framework/src/Request/index.js(523,15): error TS2304: Cannot find name 'Objecr'.
node_modules/adonis-framework/src/Request/index.js(572,23): error TS8029: JSDoc '@param' tag has name 'pattern', but there is no parameter with that name. It would match 'arguments' if it had an array type.
node_modules/adonis-framework/src/Request/index.js(600,17): error TS2554: Expected 2 arguments, but got 1.
Expand Down
1 change: 1 addition & 0 deletions tests/baselines/reference/user/async.log
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ node_modules/async/dist/async.js(3640,30): error TS1003: Identifier expected.
node_modules/async/dist/async.js(3664,9): error TS1003: Identifier expected.
node_modules/async/dist/async.js(3688,9): error TS2722: Cannot invoke an object which is possibly 'undefined'.
node_modules/async/dist/async.js(3746,9): error TS1003: Identifier expected.
node_modules/async/dist/async.js(3761,19): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter.
node_modules/async/dist/async.js(3827,14): error TS2339: Property 'memo' does not exist on type '(...args: any[]) => void'.
node_modules/async/dist/async.js(3828,14): error TS2339: Property 'unmemoized' does not exist on type '(...args: any[]) => void'.
node_modules/async/dist/async.js(3844,9): error TS1003: Identifier expected.
Expand Down
25 changes: 14 additions & 11 deletions tests/baselines/reference/user/axios-src.log
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
Exit Code: 2
Standard output:
lib/adapters/http.js(13,19): error TS2732: Cannot find module './../../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
lib/adapters/http.js(84,22): error TS2345: Argument of type 'string | null' is not assignable to parameter of type 'string'.
lib/adapters/http.js(22,12): error TS2304: Cannot find name 'AxiosProxyConfig'.
lib/adapters/http.js(34,5): error TS2532: Object is possibly 'undefined'.
lib/adapters/http.js(38,11): error TS2339: Property 'beforeRedirect' does not exist on type 'ClientRequestArgs'.
lib/adapters/http.js(109,22): error TS2345: Argument of type 'string | null' is not assignable to parameter of type 'string'.
Type 'null' is not assignable to type 'string'.
lib/adapters/http.js(121,17): error TS2531: Object is possibly 'null'.
lib/adapters/http.js(121,40): error TS2531: Object is possibly 'null'.
lib/adapters/http.js(225,23): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
lib/adapters/http.js(231,44): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
lib/adapters/http.js(237,13): error TS2322: Type 'string' is not assignable to type 'Buffer'.
lib/adapters/http.js(239,15): error TS2322: Type 'string' is not assignable to type 'Buffer'.
lib/adapters/http.js(239,45): error TS2345: Argument of type 'Buffer' is not assignable to parameter of type 'string'.
lib/adapters/http.js(252,40): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
lib/adapters/http.js(281,42): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
lib/adapters/http.js(146,17): error TS2531: Object is possibly 'null'.
lib/adapters/http.js(146,40): error TS2531: Object is possibly 'null'.
lib/adapters/http.js(241,23): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
lib/adapters/http.js(247,44): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
lib/adapters/http.js(253,13): error TS2322: Type 'string' is not assignable to type 'Buffer'.
lib/adapters/http.js(255,15): error TS2322: Type 'string' is not assignable to type 'Buffer'.
lib/adapters/http.js(255,45): error TS2345: Argument of type 'Buffer' is not assignable to parameter of type 'string'.
lib/adapters/http.js(268,40): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
lib/adapters/http.js(297,42): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
lib/adapters/xhr.js(65,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'.
lib/adapters/xhr.js(77,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'.
lib/adapters/xhr.js(84,51): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
Expand Down Expand Up @@ -49,7 +52,7 @@ lib/core/enhanceError.js(38,18): error TS2339: Property 'code' does not exist on
lib/core/settle.js(20,7): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
lib/helpers/buildURL.js(22,49): error TS1016: A required parameter cannot follow an optional parameter.
lib/helpers/cookies.js(16,56): error TS2551: Property 'toGMTString' does not exist on type 'Date'. Did you mean 'toUTCString'?
lib/utils.js(273,20): error TS8029: JSDoc '@param' tag has name 'obj1', but there is no parameter with that name. It would match 'arguments' if it had an array type.
lib/utils.js(271,20): error TS8029: JSDoc '@param' tag has name 'obj1', but there is no parameter with that name. It would match 'arguments' if it had an array type.



Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/user/bcryptjs.log
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ node_modules/bcryptjs/src/bcrypt/util.js(20,5): error TS2304: Cannot find name '
node_modules/bcryptjs/src/wrap.js(37,26): error TS2304: Cannot find name 'define'.
node_modules/bcryptjs/src/wrap.js(37,51): error TS2304: Cannot find name 'define'.
node_modules/bcryptjs/src/wrap.js(38,9): error TS2304: Cannot find name 'define'.
node_modules/bcryptjs/src/wrap.js(49,12): error TS2552: Cannot find name 'bcrypt'. Did you mean 'Crypto'?
node_modules/bcryptjs/src/wrap.js(49,12): error TS2552: Cannot find name 'bcrypt'. Did you mean 'crypto'?
node_modules/bcryptjs/tests/suite.js(3,23): error TS2307: Cannot find module 'bcrypt' or its corresponding type declarations.


Expand Down
8 changes: 8 additions & 0 deletions tests/baselines/reference/user/bluebird.log
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ node_modules/bluebird/js/release/debuggability.js(301,9): error TS2322: Type 'Pr
node_modules/bluebird/js/release/debuggability.js(301,28): error TS2684: The 'this' context of type '((...args: any[]) => Process) | ((name: any, ...args: any[]) => boolean)' is not assignable to method's 'this' of type '(this: null, args_0?: any, ...args_1: any[]) => Process'.
Type '(name: any, ...args: any[]) => boolean' is not assignable to type '(this: null, args_0?: any, ...args_1: any[]) => Process'.
Type 'boolean' is not assignable to type 'Process'.
node_modules/bluebird/js/release/debuggability.js(321,30): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter.
node_modules/bluebird/js/release/debuggability.js(328,23): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter.
node_modules/bluebird/js/release/debuggability.js(334,39): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter.
node_modules/bluebird/js/release/debuggability.js(339,27): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter.
node_modules/bluebird/js/release/debuggability.js(355,25): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter.
node_modules/bluebird/js/release/debuggability.js(364,25): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter.
node_modules/bluebird/js/release/debuggability.js(456,14): error TS2339: Property '_setBoundTo' does not exist on type 'cancellationPropagateFrom'.
node_modules/bluebird/js/release/debuggability.js(482,42): error TS2339: Property '_peekContext' does not exist on type 'longStackTracesCaptureStackTrace'.
node_modules/bluebird/js/release/debuggability.js(562,19): error TS2350: Only a void function can be called with the 'new' keyword.
Expand All @@ -18,6 +24,7 @@ node_modules/bluebird/js/release/debuggability.js(807,5): error TS2721: Cannot i
node_modules/bluebird/js/release/debuggability.js(825,30): error TS2339: Property 'stack' does not exist on type 'CapturedTrace'.
node_modules/bluebird/js/release/debuggability.js(831,37): error TS2339: Property 'stack' does not exist on type 'CapturedTrace'.
node_modules/bluebird/js/release/debuggability.js(870,38): error TS2339: Property 'stack' does not exist on type 'CapturedTrace'.
node_modules/bluebird/js/release/debuggability.js(922,42): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter.
node_modules/bluebird/js/release/debuggability.js(950,4): error TS2554: Expected 0 arguments, but got 1.
node_modules/bluebird/js/release/errors.js(10,49): error TS2350: Only a void function can be called with the 'new' keyword.
node_modules/bluebird/js/release/finally.js(50,24): error TS2339: Property 'promise' does not exist on type 'finallyHandler'.
Expand Down Expand Up @@ -119,6 +126,7 @@ node_modules/bluebird/js/release/props.js(75,26): error TS2339: Property '_value
node_modules/bluebird/js/release/props.js(75,57): error TS2339: Property '_values' does not exist on type 'PropertiesPromiseArray'.
node_modules/bluebird/js/release/props.js(78,14): error TS2339: Property '_resolve' does not exist on type 'PropertiesPromiseArray'.
node_modules/bluebird/js/release/props.js(102,53): error TS2339: Property 'promise' does not exist on type 'PropertiesPromiseArray'.
node_modules/bluebird/js/release/race.js(32,41): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter.
node_modules/bluebird/js/release/reduce.js(12,10): error TS2339: Property 'constructor$' does not exist on type 'ReductionPromiseArray'.
node_modules/bluebird/js/release/reduce.js(22,39): error TS2339: Property '_length' does not exist on type 'ReductionPromiseArray'.
node_modules/bluebird/js/release/reduce.js(28,10): error TS2339: Property '_promise' does not exist on type 'ReductionPromiseArray'.
Expand Down
Loading