Comments (4)
After a long string of investigation, I found the underlying issue: it's the fact that jest installs source-map-support when running tests, but the compile
function from blueprint registers ts-node
(to import .ts files), which installs source-map-support of its own, and they seem to be conflicting with each other, messing with the source maps.
One way to fix it as I see it (there could be others) is to turn off the source-map-support of ts-node, and there's a pending issue for that: TypeStrong/ts-node#796
I might submit a PR to ts-node to fix it, which will in turn allow to fix this.
from blueprint.
Thanks. Is there any workaround for now?
from blueprint.
There kind of is, but it's really more of a hack than anything else, and might (probably will) mess with your source maps elsewhere. However if it's only tests that matter, you can open node_modules/ts-node/dist/index.js
and comment out the line that installs source map support (ctrl+f sourcemap
should do the trick), but once again, this is a major hack and is very likely to mess with your source maps in things other than tests (deploy scripts etc.)
from blueprint.
Thanks, it worked.
from blueprint.
Related Issues (20)
- Add vite plugin
- How to update tact to 1.3.0 version?(closed)
- Missing `getContractState` method in `TonClient` TypeScript definitions HOT 1
- When creating a contract, an error occurs at the first steps 'Error: Cannot create a contract with the name'
- Fix Blueprint version in blueprint/example /package.json HOT 1
- Add support for scripts in subdirectories
- Separate .compile and wrapper files HOT 3
- Update .gitignore
- stdlib template comment error
- how to update wrappers' files
- Test the Blueprint itself HOT 7
- Add testing in CI HOT 3
- Pass (sub)walletId in Mnemonic provider
- Rewrite Blueprint Framework Using Deno
- [email protected] HOT 1
- 9
- Document how to upgrade Tact version
- `blueprint build` wizard should have 'All Contracts' option
- Make it easier to understand when a contract execution fails with an exit code
- In cases of Cell underflow/overflow or other similar exit codes, contract's debug output doesn't show anything HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blueprint.