Coder Social home page Coder Social logo

Comments (7)

umbravi avatar umbravi commented on September 28, 2024 1

Unix need single quotes to not have ** combined to * when the script is run. Windows needs the path to be double-quoted.

Will not work on windows:

'test/**/*.test.ts' 

Works on windows:

"test/**/*.test.ts"

If you are working on a project with others with different OS, then I suggest reading this comment: implement scripty

from typescript-node-api.

ondrej-osnet-cz avatar ondrej-osnet-cz commented on September 28, 2024

I had same issue. Remove single quote in package.json helped me:
"test": "mocha --reporter spec --compilers ts:ts-node/register test/**/*.test.ts"

from typescript-node-api.

ianrussel avatar ianrussel commented on September 28, 2024

This how it worked in my Windows 10

       "test": "mocha --reporter spec --require ts-node/register \"./test/**/*.test.ts\""

from typescript-node-api.

wildan3105 avatar wildan3105 commented on September 28, 2024

Same case here in windows 7. Still not resolved. @mjhea0

from typescript-node-api.

mjhea0 avatar mjhea0 commented on September 28, 2024

I don't have a windows box so it's really difficult for me to test this out. What error are you getting?

from typescript-node-api.

wildan3105 avatar wildan3105 commented on September 28, 2024

Same as @cliffeby got. I've tried different ways to register *.test.ts file but still getting the same error : file not found.

from typescript-node-api.

xurei avatar xurei commented on September 28, 2024

Having the same issue.

from typescript-node-api.

Related Issues (7)

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.