Typescript starter fails test
See original GitHub issueHey!
Starting a new project with TypeScript has some issues.
-
The initial tests don’t pass. This is due to some inconsistencies with the initial generate command. It’s looking for a
model.js.ejs
template, but the actual template ismodel.ts.ejs
. -
When you build the project, the
model.ts.ejs
file doesnt get compiled to a js file.
How can we fix this for the JS build, as we have to reference a template file for the generate command. How do we handle the TS to JS change
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
npm run test Error #137 - microsoft/TypeScript-React-Starter
Failed at the my-app@0.1.0 test script 'react-scripts-ts test --env=jsdom'. npm ERR! Make sure you have the latest version of node.js and npm ...
Read more >TDD with Typescript and Jest: Starter Project - Level Up Coding
If you run npm run test it will throw an error because the project does not include any test case. Now, we will...
Read more >typescript-starter - GitHub Pages
As you develop, you can add tests for new functionality – which will initially fail – before developing the new functionality. Each time...
Read more >TypeScript compilation failure and Karma test execution?
the usual way I know is that all the workflow (ie compilation and tests) need to pass to start the watch mode. Then...
Read more >express-typescript-starter-semantic-release-test - npm
Start using express-typescript-starter-semantic-release-test in your project ... Deployment can fail for various reasons, if you get stuck with a page that ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, just wanted to comment that im running into same issue but it looks almost like it’s intermittent(i swore it worked once). Still playing around with this atm but following the guide i get the same error but only when i TS starter.
Looked into this, unfortunately the TS compiler doesn’t accept “custom” extensions, in this case ‘.ejs’. An alternative could be in the npm build script, we copy the template folder into the output directory