Giter Site home page Giter Site logo

Comments (6)

Izhaki avatar Izhaki commented on May 23, 2024

Did npm install had any errors?

Can you see the folder node_modules/@types/jasmine?

from typescript-jasmine-istanbul-boilerplate.

john-cheesman avatar john-cheesman commented on May 23, 2024

No, everything installed fine and I've got the jasmine types. I think it's a problem with ts-node on my system. I'll try and get it working on a different machine.

Thanks for your help.

from typescript-jasmine-istanbul-boilerplate.

Izhaki avatar Izhaki commented on May 23, 2024

ts-node in this repo should run the local version, so doubt this has anything with your machine.

The first thing I'd try is to pin the dependencies in package.json (just remove the ^ before each dependency - my mistake not doing this), rm -rf node_modules, npm install and see if it works.

If this fails, I can see from your log you're using Linux 4.10.6-100.fc24.x86_64, but if you give me the exact distribution and version, I can test this very quickly using Docker.

from typescript-jasmine-istanbul-boilerplate.

Izhaki avatar Izhaki commented on May 23, 2024

On a separate note, technology-wise this repo is somewhat outdated. If you just want to get quickly off the ground, then I guess using it is OK.

But I owe to say that if you're after something more long-term than nyc is the way to go - if I understand correctly, it's Istanbul's newer product for running coverage reports, and seems to be working very very well. Study this issue and the links within for more.

Also, since I've started using webpack I didn't look back (despite a rather steep learning curve), and that I'd vote for Mocha over Jasmine for serious projects. Jasmine is simple and great, but Mocha falls better into the 'compossible technology' paradigm, which I'm a strong believer of. It also has somewhat larger eco-system and a webpack driver.

Just my 2 cents (let me know if you want me to create a sample repository for this - I just need to copy-paste and clean an existing project).

from typescript-jasmine-istanbul-boilerplate.

john-cheesman avatar john-cheesman commented on May 23, 2024

Pinning the dependencies fixed it, thanks. I've had the same problem with ts-node in other projects and it seems like getting the right versions of different packages is the key.

I've used Jasmine in the past and was looking for a simple test setup with Typescript but I'm definitely interested in looking at Mocha. If you could do a sample repo that would be great.

Thanks again for the help and advice.

from typescript-jasmine-istanbul-boilerplate.

john-cheesman avatar john-cheesman commented on May 23, 2024

I had a go at a basic setup and it works quite well.

from typescript-jasmine-istanbul-boilerplate.

Related Issues (2)

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.