Comments (6)
@dgraham
I've got it working and it actually was a misconfiguration of Jest. I needed to add transformIgnorePatterns
to the settings.
transformIgnorePatterns: ["/node_modules/(?!@planetscale)"],
Fixed the minimum sample here: kenfdev/planetscale-jest-poc@cbdab66
I don't have much knowledge in this area, but I wonder if this could be improved. So everybody could use this library with jest out of the box.
from database-js.
Nice! I'll close this out for now.
from database-js.
The reproduction link points to this repository. Do you have a minimal sample we can look at? Jest and Babel are capable of using JS modules, and it's usually a matter of configuring them to do the right thing.
from database-js.
@dgraham
Thanks for the response and apologies about the wrong link...
I've fixed the URL!
I also think it's a matter of jest configuration but transforming the module didn't seem to work 🤔
I'll give it another try today!
from database-js.
Also running into this issue and using the ignore pattern doesn't help with esbuild-jest
from database-js.
Literally using the poc repo still reproduces this. Can this be reopened I have been struggling with this for a while ;(
from database-js.
Related Issues (20)
- PlanetScale migrate HOT 1
- How to close connection? HOT 1
- How do i use Inner Join, Left Join in my sql query HOT 1
- [Question] question about performance HOT 2
- what is the use of connect.refresh HOT 1
- Doesn't work with Jest HOT 5
- multipleStatements support HOT 2
- PlanetScale doesn't support `EVENT`, so how can I make records subject to TTL? HOT 6
- Add support for CJS imports HOT 9
- Locks aren't being released when an error is thrown inside a transaction! HOT 7
- Add database url validator HOT 4
- Doesn't work out of the box with cloudflair workers HOT 3
- Suggestion: Allow http (and non :433) URLs for testing purposes HOT 6
- help: intsert data and get id HOT 7
- Inconsistent transactions with `Promise.all` HOT 10
- Serverless driver affecting Next.js App Router page caching HOT 3
- Strongly type "type" property of Field
- Type error fetch failed HOT 10
- Automatically handle seeing a port 3306 in a connection string HOT 4
- INVISIBLE columns showing up with SELECT * HOT 6
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 database-js.