Angular-cli test for React component
Angular-cli test for React component I have an application in which there are reagent components, I have achieved that the components are compiled together with the entire application. Now I would like to configure the karma for testing the React components. karma React Angular 6+ But I get that error for React components React Uncaught Error: Module parse failed: Unexpected token (32:3) You may need an appropriate loader to handle this file type. | expect(props instanceof Object).toBeTruthy(); | const component = ReactTestUtils.renderIntoDocument( | <Slider | currentItem={props.currentItem} | items={props.items} karma.conf.js module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), require('karma-chrome-launcher'), ...