Skip to content

Update user tests with improved lib settings #23238

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

Merged
merged 1 commit into from
Apr 6, 2018

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Apr 6, 2018

  1. Make the user tests configs use lib: ["esnext", "dom"]
  2. Update with changes from Allow both module.exports= and module.exports property assignments #23228, which allows both module.exports= and module.exports.property= in the same file.

@sandersn sandersn requested review from weswigham and mhegazy April 6, 2018 23:06
@sandersn sandersn merged commit c4788f9 into master Apr 6, 2018
@sandersn sandersn deleted the update-user-tests-04062018 branch April 6, 2018 23:16
node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(116,18): error TS2345: Argument of type 'Timer | null' is not assignable to parameter of type 'number | undefined'.
Type 'null' is not assignable to type 'number | undefined'.
node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(129,18): error TS2345: Argument of type 'Timer | null' is not assignable to parameter of type 'number | undefined'.
Type 'null' is not assignable to type 'number | undefined'.
node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(147,18): error TS2345: Argument of type 'Timer | null' is not assignable to parameter of type 'number | undefined'.
Type 'null' is not assignable to type 'number | undefined'.
node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(154,19): error TS2569: Type 'IterableIterator<any>' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add -downlevelIteration as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not target es6/esnext? There is no emit here.

node_modules/enhanced-resolve/lib/ParsePlugin.js(17,23): error TS2339: Property 'assign' does not exist on type 'ObjectConstructor'.
node_modules/enhanced-resolve/lib/Resolver.js(19,26): error TS2304: Cannot find name 'Map'.
node_modules/enhanced-resolve/lib/Resolver.js(160,29): error TS2304: Cannot find name 'Set'.
node_modules/enhanced-resolve/lib/Resolver.js(162,17): error TS2339: Property 'push' does not exist on type 'Set<any>'.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fun stuff.. used to be an array, now a set, just put a push method on it, and everybody is happy.

@@ -1,15 +1,15 @@
Exit Code: 1
Standard output:
node_modules/npm/bin/npm-cli.js(6,13): error TS2551: Property 'echo' does not exist on type '{ Echo(s: any): void; StdErr: TextStreamWriter; StdOut: TextStreamWriter; Arguments: { length: nu...'. Did you mean 'Echo'?
node_modules/npm/bin/npm-cli.js(13,13): error TS2551: Property 'quit' does not exist on type '{ Echo(s: any): void; StdErr: TextStreamWriter; StdOut: TextStreamWriter; Arguments: { length: nu...'. Did you mean 'Quit'?
node_modules/npm/bin/npm-cli.js(5,14): error TS2304: Cannot find name 'WScript'.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also add to --lib scripthost

@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants