import React from 'react'; import { render, cleanup } from '@testing-library/react'; import { SpinLoader } from './spin-loader'; function renderLoader() { return render(); } describe('SpinLoader Component', function () { afterEach(function () { cleanup(); }); it('should show the spinner', function () { renderLoader(); }); });