Skip to content

🤖 User test baselines have changed for projectRefDeclarationEmit #124

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

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
74 changes: 50 additions & 24 deletions tests/baselines/reference/docker/azure-sdk.log

Large diffs are not rendered by default.

1,015 changes: 785 additions & 230 deletions tests/baselines/reference/docker/office-ui-fabric.log

Large diffs are not rendered by default.

10 changes: 1 addition & 9 deletions tests/baselines/reference/docker/pyright.log
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
Exit Code: 2
Exit Code: 0
Standard output:
pyright-internal: src/tests/harness/utils.ts(328,12): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead?



Standard error:
lerna notice cli vX.X.X
lerna info Executing command in 3 packages: "tsc --noEmit"
lerna ERR! Received non-zero exit code 2 during execution
lerna success exec Executed command in 3 packages: "tsc --noEmit"
npm ERR! code 2
npm ERR! path /pyright
npm ERR! command failed
npm ERR! command sh -c lerna exec --stream --concurrency 1 --no-bail -- tsc --noEmit
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/XXXX-XX-XXXXXXXXX-debug.log
254 changes: 84 additions & 170 deletions tests/baselines/reference/docker/vue-next.log

Large diffs are not rendered by default.

51 changes: 43 additions & 8 deletions tests/baselines/reference/user/TypeScript-Node-Starter.log
Original file line number Diff line number Diff line change
@@ -1,16 +1,51 @@
Exit Code: 2
Standard output:
../../../../../built/local/lib.dom.d.ts(618,5): error TS2687: All declarations of 'url' must have identical modifiers.
node_modules/@types/node/globals.d.ts(163,5): error TS2687: All declarations of 'url' must have identical modifiers.
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(31,10): error TS2540: Cannot assign to 'Promise' because it is a read-only property.
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(14,5): error TS2349: This expression is not callable.
Type 'User' has no call signatures.
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
9 changes: 3 additions & 6 deletions tests/baselines/reference/user/acorn.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Exit Code: 2
Standard output:
../../../../built/local/lib.dom.d.ts(618,5): error TS2687: All declarations of 'url' must have identical modifiers.
node_modules/@types/node/globals.d.ts(30,5): error TS2687: All declarations of 'url' must have identical modifiers.
node_modules/@types/node/globals.d.ts(30,5): error TS2717: Subsequent property declarations must have the same type. Property 'url' must be of type 'string | undefined', but here has type 'string'.
node_modules/acorn/acorn-loose/dist/acorn-loose.js(3,10): error TS2304: Cannot find name 'define'.
node_modules/acorn/acorn-loose/dist/acorn-loose.js(3,35): error TS2304: Cannot find name 'define'.
node_modules/acorn/acorn-loose/dist/acorn-loose.js(3,48): error TS2304: Cannot find name 'define'.
Expand Down Expand Up @@ -484,27 +487,21 @@ node_modules/acorn/acorn/dist/bin.js(58,23): error TS2769: No overload matches t
Type 'undefined' is not assignable to type 'string | number | Buffer | URL'.
Overload 2 of 3, '(path: string | number | Buffer | URL, options: { encoding: BufferEncoding; flag?: string | undefined; } | "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | ... 4 more ... | "hex"): string', gave the following error.
Argument of type 'string | undefined' is not assignable to parameter of type 'string | number | Buffer | URL'.
Type 'undefined' is not assignable to type 'string | number | Buffer | URL'.
Overload 3 of 3, '(path: string | number | Buffer | URL, options?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | (BaseEncodingOptions & { ...; }) | null | undefined): string | Buffer', gave the following error.
Argument of type 'string | undefined' is not assignable to parameter of type 'string | number | Buffer | URL'.
Type 'undefined' is not assignable to type 'string | number | Buffer | URL'.
node_modules/acorn/bin/_acorn.js(51,30): error TS2339: Property 'getToken' does not exist on type 'Parser'.
node_modules/acorn/bin/_acorn.js(59,30): error TS2769: No overload matches this call.
Overload 1 of 2, '(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string', gave the following error.
Argument of type 'null' is not assignable to parameter of type '((this: any, key: string, value: any) => any) | undefined'.
Overload 2 of 2, '(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string', gave the following error.
Argument of type '2 | null' is not assignable to parameter of type 'string | number | undefined'.
Type 'null' is not assignable to type 'string | number | undefined'.
node_modules/acorn/bin/_acorn.js(63,23): error TS2769: No overload matches this call.
Overload 1 of 3, '(path: string | number | Buffer | URL, options?: { encoding?: null | undefined; flag?: string | undefined; } | null | undefined): Buffer', gave the following error.
Argument of type 'string | undefined' is not assignable to parameter of type 'string | number | Buffer | URL'.
Type 'undefined' is not assignable to type 'string | number | Buffer | URL'.
Overload 2 of 3, '(path: string | number | Buffer | URL, options: { encoding: BufferEncoding; flag?: string | undefined; } | "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | ... 4 more ... | "hex"): string', gave the following error.
Argument of type 'string | undefined' is not assignable to parameter of type 'string | number | Buffer | URL'.
Type 'undefined' is not assignable to type 'string | number | Buffer | URL'.
Overload 3 of 3, '(path: string | number | Buffer | URL, options?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | (BaseEncodingOptions & { ...; }) | null | undefined): string | Buffer', gave the following error.
Argument of type 'string | undefined' is not assignable to parameter of type 'string | number | Buffer | URL'.
Type 'undefined' is not assignable to type 'string | number | Buffer | URL'.
node_modules/acorn/bin/run_test262.js(3,21): error TS2307: Cannot find module 'test262-parser-runner' or its corresponding type declarations.
node_modules/acorn/dist/acorn.es.js(36,1): error TS2322: Type 'null' is not assignable to type 'string'.
node_modules/acorn/dist/acorn.es.js(36,32): error TS2322: Type 'null' is not assignable to type 'string'.
Expand Down
21 changes: 12 additions & 9 deletions tests/baselines/reference/user/adonis-framework.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Exit Code: 2
Standard output:
../../../../built/local/lib.dom.d.ts(618,5): error TS2687: All declarations of 'url' must have identical modifiers.
node_modules/@types/node/globals.d.ts(30,5): error TS2687: All declarations of 'url' must have identical modifiers.
node_modules/@types/node/globals.d.ts(30,5): error TS2717: Subsequent property declarations must have the same type. Property 'url' must be of type 'string | undefined', but here has type 'string'.
node_modules/adonis-framework/lib/util.js(24,13): error TS2304: Cannot find name 'Mixed'.
node_modules/adonis-framework/providers/ConfigProvider.js(9,33): error TS2307: Cannot find module 'adonis-fold' or its corresponding type declarations.
node_modules/adonis-framework/providers/ConfigProvider.js(14,10): error TS2339: Property 'app' does not exist on type 'ConfigProvider'.
Expand Down Expand Up @@ -35,19 +38,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 +128,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
3 changes: 3 additions & 0 deletions tests/baselines/reference/user/assert.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Exit Code: 2
Standard output:
../../../../built/local/lib.dom.d.ts(618,5): error TS2687: All declarations of 'url' must have identical modifiers.
node_modules/@types/node/globals.d.ts(30,5): error TS2687: All declarations of 'url' must have identical modifiers.
node_modules/@types/node/globals.d.ts(30,5): error TS2717: Subsequent property declarations must have the same type. Property 'url' must be of type 'string | undefined', but here has type 'string'.
node_modules/assert/test.js(25,5): error TS2367: This condition will always return 'false' since the types 'string | undefined' and 'boolean' have no overlap.
node_modules/assert/test.js(39,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig.
node_modules/assert/test.js(55,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig.
Expand Down
3 changes: 3 additions & 0 deletions tests/baselines/reference/user/async.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Exit Code: 2
Standard output:
../../../../built/local/lib.dom.d.ts(618,5): error TS2687: All declarations of 'url' must have identical modifiers.
node_modules/@types/node/globals.d.ts(30,5): error TS2687: All declarations of 'url' must have identical modifiers.
node_modules/@types/node/globals.d.ts(30,5): error TS2717: Subsequent property declarations must have the same type. Property 'url' must be of type 'string | undefined', but here has type 'string'.
node_modules/async/all.js(32,12): error TS2304: Cannot find name 'AsyncFunction'.
node_modules/async/all.js(49,20): error TS2695: Left side of comma operator is unused and has no side effects.
node_modules/async/all.js(49,46): error TS2695: Left side of comma operator is unused and has no side effects.
Expand Down
Loading