Code Monkey home page Code Monkey logo

Comments (3)

lorenzofox3 avatar lorenzofox3 commented on August 21, 2024 1

Is it correct that if I run pta with --module-loader es, it should treat the test files as es modules no matter the file name?

Not really, it just tells pta which zora singleton it should use (cjs, esm). Your package.json should still reflect the repository set up. If your files are effectively written in ESM, you'll have then to add type=module in your package.json.

You can refer to the test/samples for more details.

from zora.

mellson avatar mellson commented on August 21, 2024

Thanks for the info. My problem is that I'm using some dependencies which does not play nice with .mjs or type=module. So I "only" need a way to force the test runner to accept that my files are indeed es modules. Currently I got it working by using onchange to rename the files from .bs.js to .mjs but it feels a bit hacky.

from zora.

lorenzofox3 avatar lorenzofox3 commented on August 21, 2024

in favor of #155

from zora.

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.