Giter Site home page Giter Site logo

Unknown file extension ".ts" for about runner HOT 3 CLOSED

japa avatar japa commented on May 29, 2024
Unknown file extension ".ts" for

from runner.

Comments (3)

OmgImAlexis avatar OmgImAlexis commented on May 29, 2024

Seems using esmo solves the issue though I do get the experimental loader warning which I'm hoping we can supress?

❯ esmo .\bin\test.ts
(node:40156) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:40156) DeprecationWarning: Obsolete loader hook(s) supplied and will be ignored: getFormat, transformSource

Maths.add (tests\maths.spec.ts)
  √ add two numbers (2ms)

 PASSED 

total        : 1
passed       : 1
duration     : 6ms

from runner.

OmgImAlexis avatar OmgImAlexis commented on May 29, 2024

Actually this doesn't fix the issue since I now can't mock dependencies since everything is being imported as an ES module.

   ES Modules cannot be stubbed

from runner.

thetutlage avatar thetutlage commented on May 29, 2024

Seems more like an issue to be reported with Esmo. Japa itself is not registering any loader hooks with Node.js. https://github.com/antfu/esno/issues/21

from runner.

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.