RitsuProject / ritsu-v3

📚 Next version of Ritsu totally rewritten in Typescript and Eris.
MIT License
5 stars 3 forks source link

Add Jest and Supertest #92

Closed Gabb-c closed 3 years ago

Gabb-c commented 3 years ago

Just decentralizing workflows, one for each job, and adding Jest. Soon I'll make more realistic tests.

It took some time because eslint was conflicting with jest.config,js file and the test files. But I fixed it by adding a tsconfig only for eslint extending the existing one.

In the coverage.yml I've made the integration with Codecov, a tool that helps you to see how much of your code is covered with tests. But you need to:



Codecov Link

As the lines are commented, it will not fail in the coverage test. So you can merge it with no problems.

Gabb-c commented 3 years ago

Nice!