-
-
Notifications
You must be signed in to change notification settings - Fork 197
The test init command to add a sample test in TypeScript for TypeScript/Angular projects #1798
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
Comments
This came up as a limitation while writing a guide on unit testing today, so I’ll toss in my vote for this feature. |
+1 |
2 similar comments
+1 |
+1 |
+1 |
+1 |
3 similar comments
+1 |
+1 |
+1 |
+1 |
8 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
@vchimev or @tjvantoll, can we get an update on this issue? Will this be worked on any time soon? Thanks! |
+1 |
For now, here's an template/example of a
|
+2 :) |
In a project of entirely typescript files, it seems backwards to write JavaScript tests. Adding karma-typescript to the |
+2 |
Currently you should be able to achieve this using the following steps:
We're working on improving our unit testing story and planned this issue for one of our next releases. |
This worked, but the |
* release: cut the 0.21.0 release * fix: add support for ts files on test command when `--bundle` is provided (#848) Rel to: NativeScript/nativescript-cli#4477 NativeScript/nativescript-cli#1798
* release: cut the 0.21.0 release * fix: add support for ts files on test command when `--bundle` is provided (#848) Rel to: NativeScript/nativescript-cli#4477 NativeScript/nativescript-cli#1798 * fix: use correct slashes on windows (#851)
* release: cut the 0.21.0 release * fix: add support for ts files on test command when `--bundle` is provided (#848) Rel to: NativeScript/nativescript-cli#4477 NativeScript/nativescript-cli#1798 * fix: use correct slashes on windows (#851) * fix: fix "ERROR in Must have a source file to refactor." error from ngCompilerPlugin on `test` command (#859)
The
tns test init
command configures a project for unit testing, creates a tests folder in the app directory and adds an example.js file in it with a sample test.It would be great the sample test to be in TypeScript (example.ts) for TypeScript/Angular projects.
The text was updated successfully, but these errors were encountered: