I created a class named Query in query.ts
export class Query {
constructor(params?) {...}
}
then i created in the same folder query.spec.ts
import { Query } from './query';
fdescribe('Query Model', () => {
let query: Query;
beforeEach(() => {
query = new Query({});
});
it('should be created Query Model', () => {
expect(query).toBeTruthy();
});
});
but i keep getting this error
TypeError: _query__WEBPACK_IMPORTED_MODULE_0__.Query is not a constructor
iam working with Angular 12 and karma-jasmine any idea what i am doing wrong?
export default classthen the import should be in {}