Unit testing typescript web components with karma and jasmine

Solution for Unit testing typescript web components with karma and jasmine
is Given Below:

I am trying to test a web component using karma and jasmine but not had much success. I am using karma-typescript

I have the following folder structure:
tests where the test file sits.
src where the actual typescript file sits.

In karma.conf.js when I provide the pattern to be tests/*.test.ts it just doesn’t work. it instead outputs the following message: “You need to include some adapter that implements karma.start method!”

but if I provide it with src/**/*.+(js|ts) I get the message: Executed 0 of 0 SUCCESS (0.006 secs / 0 secs)

I am not sure what I need to do run the tests in component.test.ts.

What do I need to do to the config to successfully run the tests in tests folder