Commit Graph
2173 Commits
Author SHA1 Message Date
Nathan Shively-Sanders 7771d0c1fc Merge pull request #19934 from Microsoft/add-starter-kit-to-user-tests
Add starter kit to user tests
2017-11-13 08:54:52 -08:00
Nathan Shively-Sanders 4d01390845 Improve assert message 2017-11-10 15:55:29 -08:00
Ryan Cavanaugh de7fbc041a Merge pull request #19542 from RyanCavanaugh/fix19533
Exclude legacy safelist files in external projects
2017-11-10 15:28:35 -08:00
Nathan Shively-Sanders 0d63589fb2 Fix quote lint 2017-11-10 14:21:53 -08:00
Sheetal Nandi c82c6f21cb Ensure that enum member value is computed before using it
Fixes #19898
2017-11-10 14:05:16 -08:00
Nathan Shively-Sanders d66e94d09e ExternalCompileRunner works with submodules
If there is a test.json in the directory, it expects to find a
submodule in the directory. The submodule should have the same name as
the directory itself. test.json contains a list of global types that
need to be available, or the empty list if none.
2017-11-10 13:50:18 -08:00
Nathan Shively-Sanders 9d56f7b7c1 Merge pull request #19887 from Microsoft/dt-runner-excludes-ExpectError
DefinitelyTypedRunner skips ExpectErrors
2017-11-10 10:31:19 -08:00
Nathan Shively-Sanders 5fff71742b Use ts.stringContains instead of String.indexOf 2017-11-10 10:11:44 -08:00
Nathan Shively-Sanders 0d5800a17b Address PR comments 2017-11-10 09:37:06 -08:00
Nathan Shively-Sanders a5fa75a0cd DefinitelyTypedRunner skips ExpectErrors
If all errors were ExpectErrors, then it does not fail.
2017-11-09 14:21:08 -08:00
Ryan Cavanaugh 0d5dec9a98 Remove commented tests 2017-11-09 13:55:20 -08:00
Andy 65a191fa2b For import completion of default import, convert module name to identifier (#19875)
* For import completion of default import, convert module name to identifier

* Suggestions from code review
2017-11-09 13:13:23 -08:00
Ryan Cavanaugh b043edd61c Merge 2017-11-09 12:42:37 -08:00
Ryan Cavanaugh 0e105ad8de Log more usefully when this test fails 2017-11-09 12:30:44 -08:00
Ryan Cavanaugh ddd8c95c63 Remove testcases we don't like 2017-11-09 12:30:29 -08:00
Wesley Wigham 235356e6ff Handle synthetic nodes correctly as namespace identifiers in system transform (#19623)
* Handle synthetic nodes correctly as namespace identifiers in system transform

* Add ref to issue in comment

* Lock newline for ci
2017-11-08 18:15:23 -08:00
Nathan Shively-Sanders 594ac0163c Merge pull request #19815 from Microsoft/add-definitely-typed-runner
Add DefinitelyTyped runner
2017-11-08 15:45:25 -08:00
Nathan Shively-Sanders bb79308a24 Use CRLF and emit test output for stdout/stderr
I've got git problems and I'm not even on Windows!
2017-11-08 15:26:05 -08:00
Andy 5ad7e9516b Remove unnecessary wrapper classes in ts.formatting.Rule (#19744)
* Remove unnecessary wrapper classes in ts.formatting.Rule

* RulesProvider -> immutable FormatContext

* Remove Rules class, just use a list of rules

* Remove Shared namespace, replace Shared.TokenRange with TokenRange

* Simplify TokenRange

* Separate Rule and RuleSpec

* Move FormattingRequestKind to formattingContext.ts

* Simplify references

* Fix lint

* Revert removal of trailing newlines
2017-11-08 13:39:03 -08:00
Nathan Shively-Sanders d64a8f62f2 Refactor user+dt runners into externalCompilerRunner 2017-11-08 13:28:35 -08:00
Andy 20e36dba53 Remove trailing whitespace from unit tests (#19836) 2017-11-08 13:18:23 -08:00
Nathan Shively-Sanders 4e4f7507d0 Fix getDefaultLibraryFile + turn off lib
1. getDefaultLibraryFile should use ts to normalise the file and find
the filename.
2. lib should be turned off at the same time that noLib is turned on to
avoid a pointless error.
2017-11-07 16:08:57 -08:00
Nathan Shively-Sanders ad18bde92b RWC:Handle lib entries in tsconfig 2017-11-07 15:43:55 -08:00
Sheetal Nandi fe40873664 Merge pull request #19786 from Microsoft/directoryRename
Handle the watch when folders are added/removed/renamed in wild card folder
2017-11-07 11:13:47 -08:00
Nathan Shively-Sanders 5e5b5652ed Remove package-lock.json before npm install 2017-11-07 11:10:24 -08:00
Nathan Shively-Sanders 88a31d6096 Change runner name from 'definitely' to 'dt' 2017-11-07 10:57:54 -08:00
Nathan Shively-Sanders 2378ff32b1 Fix lint and allow null keyword 2017-11-07 10:45:42 -08:00
Nathan Shively-Sanders 9a415a2b23 DefinitelyRunner cleanup and speedup
1. Only `npm install` packages with a package.json
2. Add `workingDirectory` to runnerBase to differentiate input directory
from output directory (which should be different for definitelyRunner).
3. Don't output anything on success.
2017-11-07 09:50:17 -08:00
Andy bd2e97597d Enable 'no-empty' tslint rule (#19769)
* Enable 'no-empty' tslint rule

* Fix bug
2017-11-07 09:22:28 -08:00
Andy 9c8129eeac Enable 'no-invalid-template-strings' lint rule (#19790) 2017-11-07 06:51:35 -08:00
Ron Buckton 3f248ecfe1 Merge pull request #19452 from Microsoft/compareStrings
Clean up outdated string comparison logic
2017-11-06 18:48:15 -08:00
Andy 77b24aec83 Apply 'unified-signatures' tslint rule (#19738)
* Apply 'unified-signatures' tslint rule

* Fix new failure
2017-11-06 18:38:03 -08:00
Andy 40efd1b3bd Apply 'object-literal-key-quotes' tslint rule (#19737)
* Apply 'object-literal-key-quotes' tslint rule

* Convert to "consistent-as-needed"
2017-11-06 18:13:20 -08:00
Sheetal Nandi 3f34525c81 Handle the folder create/delete in the configured project 2017-11-06 15:22:48 -08:00
Nathan Shively-Sanders e6c38bf67b Add DefinitelyTyped test runner
Assumes that ../DefinitelyTyped holds the DefinitelyTyped repo.
2017-11-06 15:16:33 -08:00
Sheetal Nandi 57be7ff3f6 Add test case when inside wild card watched directory folder is renamed 2017-11-06 14:38:33 -08:00
Andy ed38889ca6 Enable 'no-unused-expression' tslint rule (#19734) 2017-11-06 13:01:07 -08:00
Eugene Timokhov 5b9905d5a4 Added empty constructors to TypedArrays from es2017 (#19680) 2017-11-06 13:00:05 -08:00
Sheetal Nandi ddbd654ecd Merge pull request #19730 from Microsoft/fileNotOnDisk
Handles script infos that dont exist on the disk and are opened with non-rooted disk path
2017-11-06 12:21:32 -08:00
Wesley Wigham c016f5b9b0 Split runner selection from test selection (#19729)
* Split runner selection from test selection

* Continue to support old behavior
2017-11-06 11:24:17 -08:00
Sheetal Nandi 163e40cde6 Add testcase for non existent file without absolute path when opened with/without projectRoot 2017-11-06 10:56:52 -08:00
Benjamin Lichtman 4977bf4328 Merge pull request #19544 from uniqueiniquity/interfaceJsDoc
Insert JsDoc comment templates for additional nodes
2017-11-06 09:49:59 -08:00
Andy 0a7b7e07ee Apply 'variable-name' tslint rule (#19743) 2017-11-06 09:23:47 -08:00
Ron Buckton 31c3d444f1 Merge branch 'master' into compareStrings 2017-11-03 23:01:51 -07:00
Andy bb7fb7dda9 For getCompletionsAtPosition, require a flag to provide completions with code actions (#19687)
* For getCompletionsAtPosition, require a flag to provide completions with code actions

* Change name

* Increase API version

* Update API baselines

* Add comment

* Update API baseline
2017-11-03 15:55:31 -07:00
Sheetal Nandi 373510c4d9 Handle the script infos that are opened with non rooted disk path
Fixes #19588
2017-11-03 15:38:58 -07:00
Andy d998e97d8c Apply 'prefer-for-of' tslint rule (#19721) 2017-11-03 15:20:35 -07:00
Andy cd9dbe694f Enable 'only-arrow-functions' lint rule (#19717) 2017-11-03 15:08:50 -07:00
Sheetal Nandi 668ac10890 Test where script info path and program path differ because of current directory 2017-11-03 11:51:16 -07:00
Andy d54ad4b01a Add refactoring to use default import (#19659)
* Add refactoring to use default import

* Add localizable description
2017-11-03 08:31:13 -07:00