typescript-jest-example's People
Forkers
denmerc markoradinovic othmankh bernardobrezende rajlee5129 jlndk mavgitt lustig-bakkt famchankou alchemyinfotech a-karic chicoria hchu1234 zhaw-fs22-pm4 thyarles hdayakar nsenkevich coryeicher nttanh6299 dhonyimams ademir25 christopherteague danieltskv d0190535 andrzejdus ngdentdev kwaight akashgaikwad2028 michelssousa angelbrunn benxshen mananjabrik anish000kumar stormwild alluvamsivishal290 phuong3030 zd000 katschmidtypescript-jest-example's Issues
Add example with external node modules
Bump jest version
I think these are the last versions that work properly with import
statements:
{
"@types/jest": "^26.0.0",
"jest": "^26.0.0",
"ts-jest": "^26.0.0"
}
If you bump this to v27 or higher you'll get:
Error [ERR_REQUIRE_ESM]: require() of ES Module ~/project/node_modules/wrap-ansi/index.js from ~/project/node_modules/jest-cli/node_modules/cliui/build/index.cjs not supported.
Instead change the require of index.js in ~/project/node_modules/jest-cli/node_modules/cliui/build/index.cjs to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (~/project/node_modules/jest-cli/node_modules/cliui/build/index.cjs:293:14)
at Object.<anonymous> (~/project/node_modules/jest-cli/node_modules/yargs/build/index.cjs:1:60678)
at Object.<anonymous> (~/project/node_modules/jest-cli/node_modules/yargs/index.cjs:5:30)
at _yargs (~/project/node_modules/jest-cli/build/run.js:30:39)
at buildArgv (~/project/node_modules/jest-cli/build/run.js:143:26)
at Object.run (~/project/node_modules/jest-cli/build/run.js:118:24)
at Object.<anonymous> (~/project/node_modules/jest-cli/bin/jest.js:16:17)
at Object.<anonymous> (~/project/node_modules/jest/bin/jest.js:12:3)
error Command failed with exit code 1.
Do you know if there's a way to fix this?
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.