Commit graph

35 commits

Author SHA1 Message Date
Ron Buckton b747c2dd96 exclude node_modules unless explicitly included 2017-08-03 18:48:27 -07:00
Noah Chen 832c17df1c add unit tests 2016-09-26 12:25:48 -04:00
Nathan Shively-Sanders c0309fa78e Fix crash when checking module exports for export=
Also make maxNodeModuleJsDepth default to 0 so that incorrect tsconfigs
now let the compiler spend less time compiling JS that is found in
node_modules (especially since most people will already have the d.ts
and want ignore the JS anyway). jsconfig still defaults to 2.
2016-08-25 09:21:31 -07:00
Bill Ticehurst 2ab1143f1c Fixed the node tracking and a harness bug 2016-07-10 20:54:07 -07:00
Bill Ticehurst db54bda17b Updated test with relative import 2016-07-10 16:38:21 -07:00
Bill Ticehurst 5e4f13f342 Removed one error to avoid full path issues 2016-06-30 16:36:39 -07:00
Bill Ticehurst 5a45c44eb7 Dont load JavaScript if types packages are present 2016-06-29 17:04:42 -07:00
Bill Ticehurst 0174bda004 Merge branch 'master' into loadJsFromModules 2016-06-26 23:24:26 -07:00
Bill Ticehurst 885b0e902a Added project tests for node_modules JavaScript searches 2016-06-26 23:14:43 -07:00
Yui e182ecf2c9 Fix 8355: Fix emit metadata different between transpile and tsc --isolatedModule (#9232)
* Instead of returning undefined for unknownSymbol return itself

* Add Transpile unittest

* Wip - Add project tests

* Add project tests and baselines

* Update existed tests

* Add tests for emitting metadata with module targetting system
2016-06-24 17:39:49 -07:00
Andy 512c6719ae Merge pull request #8895 from Microsoft/strip_extension
Allow an import of "foo.js" to be matched by a file "foo.ts"
2016-06-09 11:38:26 -07:00
Yui 899f667544 Recognize relative path using in outDir property (#9025)
* Recognize relative path using in outDir property

* Add projects tests

* Add project .json files

* Update baselines
2016-06-08 13:20:47 -07:00
Andy Hanson fa16a99514 Allow an import of "foo.js" to be matched by a file "foo.ts" 2016-05-31 09:26:21 -07:00
Asad Saeeduddin 3879fe69bb Add sample files for testcases 2016-02-20 12:41:49 -05:00
Sheetal Nandi 382b86bd2c Test update for using allowJs instead of --jsExtensions 2015-10-28 14:03:18 -07:00
Sheetal Nandi 567d71c848 Add new test cases 2015-10-05 16:02:04 -07:00
Sheetal Nandi 938c5334eb Remove the failing testcases 2015-10-05 16:01:33 -07:00
Sheetal Nandi b3e4f8e1ca Create new tscconfig files for the failing testcases 2015-10-05 15:18:46 -07:00
Sheetal Nandi 108f8568ef Remove tsconfig files of failing testcases 2015-10-05 15:17:10 -07:00
Sheetal Nandi c30104e3b6 Add option --jsExtensions to handle extensions to treat as javascript
- Command line now takes --jsExtension multiple times or comma separated list of extensions
- tsconfig accepts array of extension strings
2015-09-21 15:39:53 -07:00
Sheetal Nandi fce9f32bd4 When tsconfig file doesnt contain file names, consume .js files of directory only if specified in the options 2015-09-16 13:57:51 -07:00
Sheetal Nandi 14b608241d Tests when the .ts and .js files are mixed in compilation with tscconfig file doesnt specifying any names 2015-09-16 12:52:33 -07:00
Sheetal Nandi dbb2772ed8 Tests when the .ts and .js files are mixed in compilation with tscconfig file specifying them 2015-09-16 12:47:45 -07:00
Sheetal Nandi 0f73c1618c When folder contains .d.ts as well as .js of same name and tsconfig doesnt contain any name 2015-09-16 12:41:44 -07:00
Sheetal Nandi 70d3de4668 When same named .d.ts and .js files are present and tscconfig contains .d.ts file 2015-09-16 12:38:11 -07:00
Sheetal Nandi 9daf635e5e Verify and fix scenario when .js and .ts files with same name are present and tsconfig doesnt specify any filenames 2015-09-16 11:50:12 -07:00
Sheetal Nandi 8aeff929a1 Add tests when same named .ts and .js file exist with tsconfig file specifying .ts file 2015-09-16 11:21:13 -07:00
Sheetal Nandi 8da3bd2ffd Project testcase to run tsconfig file 2015-09-15 15:53:44 -07:00
Mohamed Hegazy 99c0adbc2a Add rootDir tests 2015-04-14 22:19:59 -07:00
Sheetal Nandi 7d103a1a45 Remove the --noResolve check when finding the file.
--noResolve is only for ///reference and import file resolution to resolve files from disk
but the file identity is always determined before creating duplicate source file for same file paths
2014-11-20 15:43:07 -08:00
Sheetal Nandi e5b004899c Renamed the tests files to more generic names 2014-11-19 13:06:07 -08:00
Sheetal Nandi 8c2091bca5 Add tests to cover scenarios for relative path reference resolution 2014-11-11 23:06:35 -08:00
Adam Freidin 5e2316d642 added tests for <reference path="" static='' /> 2014-08-11 16:34:31 -07:00
Dan Quirk 3ad77c6ea0 Be less clever, just use \r\n for newlines by default, tests can opt into different newlines, fix one more file casing test 2014-07-23 03:27:56 -07:00
Mohamed Hegazy 214df64e28 Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00