Coder Social home page Coder Social logo

Comments (6)

kenfdev avatar kenfdev commented on May 12, 2024 1

@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.

dgraham avatar dgraham commented on May 12, 2024 1

Nice! I'll close this out for now.

from database-js.

dgraham avatar dgraham commented on May 12, 2024

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.

kenfdev avatar kenfdev commented on May 12, 2024

@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.

tokenhousetopdev avatar tokenhousetopdev commented on May 12, 2024

Also running into this issue and using the ignore pattern doesn't help with esbuild-jest

from database-js.

tokenhousetopdev avatar tokenhousetopdev commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.