newProject.spec.tsx 600 B

12345678910111213141516171819202122
  1. import {initializeOrg} from 'sentry-test/initializeOrg';
  2. import {render} from 'sentry-test/reactTestingLibrary';
  3. import NewProject from 'sentry/views/projectInstall/newProject';
  4. describe('NewProjectPlatform', function () {
  5. beforeEach(() => {
  6. MockApiClient.addMockResponse({
  7. url: `/projects/org-slug/rule-conditions/`,
  8. body: TestStubs.MOCK_RESP_VERBOSE,
  9. });
  10. });
  11. afterEach(() => {
  12. MockApiClient.clearMockResponses();
  13. });
  14. it('should render', function () {
  15. const {routerContext} = initializeOrg();
  16. render(<NewProject />, {context: routerContext});
  17. });
  18. });