feat: [MICROBA-1620] Wire BulkEmailForm to API (#11)

- Wires up the BulkEmailForm to be able to actually send email tasks to
  the instructor api
- Adds testing for the BulkEmailForm, as well as BulkEmailTool itself
- Does some cleanup, and adds some additional testing tools as needed
This commit is contained in:
Thomas Tracy
2022-01-27 14:51:17 -05:00
committed by GitHub
parent 95b960964c
commit ce9cdf642b
21 changed files with 900 additions and 108 deletions

View File

@@ -1,5 +1,6 @@
import 'core-js/stable';
import 'regenerator-runtime/runtime';
import '@testing-library/jest-dom';
import React from 'react';
import PropTypes from 'prop-types';
import { render } from '@testing-library/react';
@@ -50,9 +51,7 @@ configureI18n({
function Wrapper({ children }) {
return (
// eslint-disable-next-line react/jsx-filename-extension
<AppProvider>
{children}
</AppProvider>
<AppProvider>{children}</AppProvider>
);
}
@@ -67,6 +66,4 @@ Wrapper.propTypes = {
export * from '@testing-library/react';
// Override `render` method.
export {
renderWithProviders as render,
};
export { renderWithProviders as render };