Welcome to my profile.
lozinsky / typescript-babel-jest Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED: ⚡ Typescript-babel jest preprocessor
License: MIT License
DEPRECATED: ⚡ Typescript-babel jest preprocessor
License: MIT License
See this issue microsoft/TypeScript#4987 and this PR microsoft/TypeScript#5450
But this plugin uses require to import tsconfig, which rejects comments(as standard json does not support comments).
Error message:
Test suite failed to run
SyntaxError: .../tsconfig.json: Unexpected token / in JSON at position 208
at JSON.parse ()
I'd like to be able to specify a different tsconfig
file; currently it will always read from the tsconfig.json
located at the root directory of the project.
Snapshots got updated to undefined.
return (
<div className={styles.checkBox}>
test
</div>
);
- "className": "checkBox",
+ "className": undefined,
https://github.com/lozinsky/typescript-babel-jest/blob/master/package.json#L41
Please do not lock the typescript version.
I'm receiving an error if I run tests using typescript-babel-jest from a parent folder with the --projects option.
Project structure
project
└───subfoler
│ │ package.json
│ │ tsconfig.json
│ │
│ └───src
│ │ file.ts
│ │ file.test.ts
│ │ ...
...
I stand in project
and run jest --watch --projects subfolder
.
package.json in subfolder contains jest and babel config.
The problems seems to bee that babel tries to pickup configuration from the project
folder. If I copy the babel config to a package.json file in project
and rerun with --no-cache
it works as intended.
There seems to be an issue with source maps. If I try to track coverage in Typescript files I get hits and misses on strange lines.
First of all nice work on this. I get the usual react and prop type warnings though when using it, as if console.warn was not mocked by default.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.