Commit graph

34 commits

Author SHA1 Message Date
Wesley Wigham
66d6e5e6e0
Remove leveldown, stip absolute paths from test mk 2, accept reordered and new user baselines (#24227) 2018-05-17 15:32:10 -07:00
Wesley Wigham
5756ae1fd8
External runner fixes (#24115)
* Add missing @types/node dep to so many projects, rename parent node_modules dirs so they dont participate in tests, sort errors

* Accept new baselines

* Satisfy linter
2018-05-15 11:15:08 -07:00
Nathan Shively-Sanders
1595f7fe83
Add prettier user test and fix associated crash (#23715)
* Add prettier and fix crash bug

Name resolution would crash when resolving a type name inside a
typedef's property tag.

* Update tsconfig and thefore prettier baseline
2018-04-26 14:03:18 -07:00
Nathan Shively-Sanders
e26745f129
Add axios' source to user tests (#23490)
* Add axios' source to user tests

We already have the npm-installed version in order to test their d.ts so
that we don't break their users.

* Just compile lib, plus fix some config lint
2018-04-17 15:20:48 -07:00
Wesley Wigham
c645f1753f
Update configurePrerelease to not utilize ts internals (#23476)
* update configure nightly to not utilize ts internals

* Nightly -> Prerelease

* Remove alias
2018-04-17 15:42:31 -04:00
Nathan Shively-Sanders
db68075b67
Add create-react-app and puppeteer user tests (#23471)
* Add create-react-app

* Add puppeteer

Everything is broken now. I am going back to master to see if that fixes
things.

* Add puppeteer baseline

* Add chalk override (gitignore was ignoring it)
2018-04-17 11:21:11 -07:00
Nathan Shively-Sanders
941777848f
Switch webpack to submodule (#23372)
* Prepare for adding webpack submodule

* Actually switch webpack to submodule

I'm sure this will work with no problems!

* Add ignore=all to webpack gitmodule entry

The other submodules do this, although I'm not sure why.

* Add newline at end of .gitmodules
2018-04-12 14:09:07 -07:00
Nathan Shively-Sanders
5d23cb49d0
Exclude generated files from user tests (#23371)
* Exclude generated files from user tests

The top 3 offenders, at least: bcryptjs, bluebird and lodash.

* Clean url-search-params too

Only need to build the commonjs original, not the browserified ones.
2018-04-12 10:25:53 -07:00
Nathan Shively-Sanders
79ad7df7e1
Improve user test tsconfig (#23325)
* Improve user test tsconfigs

Also incorporate updates from the packages themselves (they fixed
some of the bugs the compiler noticed).

* Fix enhanced-resolve module resolution

* Update baselines after merge w/master
2018-04-11 15:59:19 -07:00
Wesley Wigham
1243d1a9ba
handle any'd method signature types (ie, from special property declarations) (#23316) 2018-04-10 18:17:57 -07:00
Nathan Shively-Sanders
c4788f9198
Update user tests with improved lib settings (#23238) 2018-04-06 16:16:34 -07:00
Nathan Shively-Sanders
154ac342cb
Allow extending any, with noImplicitAny errors (#23153)
Allow extending any, without noImplicitAny errors
2018-04-05 08:52:56 -07:00
Mohamed Hegazy
708caf9a72 Do not use unguarded process in tsc.ts 2018-03-13 11:03:12 -07:00
Nathan Shively-Sanders
be1c11581e
Add js user tests (#22449)
* Add some new user tests to test salsa

* Use current latest, not "latest"

* Add other js user tests

* Add new baselines

* Fix new user tests' typeroot. Move github to octokit/rest
2018-03-09 15:59:46 -08:00
Wesley Wigham
0dc5f18bdb
Remove excess comment ranges from initialized and property parameter emit (#22152) 2018-02-26 12:43:31 -08:00
Nathan Shively-Sanders
37f15ccb41
Print deferred mapped symbols 1 level deep (#21311)
* Print deferred mapped symbols 1 level deep

Previously, deferred mapped symbols would not print their type at all;
it would always print as `any`. This differed from the older behaviour
that printed it forever if necessary. As a compromise, we now print
deferred mapped symbosl 1 level deep before giving up and printing
`any`. This should cover the most common uses of mapped types.

* Use context flags instead of a global
2018-02-08 13:35:00 -08:00
Wesley Wigham
c33a14d66d
We fixed formik :D (#21660) 2018-02-05 17:17:37 -08:00
Wesley Wigham
421c927150
Add formik to the user suite (#21381)
* Add formik to user suite

* Accept current log
2018-02-01 12:52:51 -08:00
Wesley Wigham
5fcde240e3
External test runner updates (#21276)
* Increase user test timeout to 10m because npm can be slow, remove parse5 because they added their own types, accept updated error msg for rxjs, acccept current chrome baseline and pin chrmoe version

* Suppress lint
2018-01-18 13:48:23 -08:00
Wesley Wigham
639b2781d7
Accept corrected baseline (#21201) 2018-01-16 11:13:53 -08:00
Nathan Shively-Sanders
c0dd832e46 Test:incorrect mapped type doesn't infinitely recur 2018-01-10 15:40:37 -08:00
Wesley Wigham
81fbe12c54
User runner submodule improvements (#20868)
* Add a reset and clean stage to submodule user tests, improve logging when errors occur

* Also force remove node_modules, update baselines
2017-12-22 11:41:48 -08:00
Wesley Wigham
eba15b5990
Preserve literal types in contextual unions (#19966)
* Cherrypick non-comparability related changes from prolific literals PR

* Renames and other style changes

* Accept changes to new tests

* Exclude the domain root from contextual typing literals except for type variables

* Readd simple preservation fix

* Add huge map test

* Revert changes to widening on destructuring initalizers

* Use tristate for subtype-reduction type

* Rename type and argument

* Move longer-running test to user suite
2017-12-11 18:03:38 -05:00
Nathan Shively-Sanders
33f3e491c3 Update chrome dev tools definitions
This removes tons of errors.
2017-11-27 16:07:33 -08:00
Nathan Shively-Sanders
3a74147153 Add empty 'module' declarations for chrome-devtools
Like: `var SDK = {}`.

These are normally generated by the Chrome dev tools build; adding them
gets rid of more than 10,000 errors
2017-11-27 15:21:38 -08:00
Nathan Shively-Sanders
d338ecd6d0 Tests:more JS static property assignments
export default fails right now; I haven't got it to work and it's not in
dev tools, so I don't know if it's worth the effort.
2017-11-27 15:20:06 -08:00
Wesley Wigham
2c8e49f32e
Exclude global types from devtools user test (#20172) 2017-11-20 15:17:53 -08:00
Wesley Wigham
98112d4964
Add very error-ful test for chrome devtools js (#19992) 2017-11-16 11:02:00 -08:00
Nathan Shively-Sanders
09d0a671ee
Merge pull request #19993 from weswigham/mark-submodules-dirty
Mark submodule changes as ignored
2017-11-15 10:47:09 -08:00
Wesley Wigham
9be4d601b2
react starter needs node ref, accept fixed leveldown (#19994) 2017-11-13 16:44:09 -08:00
Wesley Wigham
c8b77ae83a
mark all submodule changes as ignored 2017-11-13 15:02:28 -08:00
Nathan Shively-Sanders
d4c001d47c Add test w/submodules for our starter kits 2017-11-10 14:20:55 -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
Wesley Wigham
ba98cbbf92
User code runner draft (#19539)
* Realworld runner draft

* Baseline tsc output instead of just checking exit code

* use latest instead of major minor pin

* Add 7 more test cases + update gitignore

* Update baselines for realworld/user tests

* Rename to user

* Do not commit lockfiles

* Add code to run user tests on CRON

* Add rest of most-dependend packages to user tests

Turns out levelup doesn't have types! So I removed that one.
2017-11-01 16:22:37 -07:00