Skip to content

Commit

Permalink
Jamakase/select default sync modes (#10320)
Browse files Browse the repository at this point in the history
* Select default sync modes in create mode

* Add unit tests

* Mock Markdown implementation
  • Loading branch information
jamakase authored Mar 5, 2022
1 parent d39b636 commit ff4762c
Show file tree
Hide file tree
Showing 8 changed files with 438 additions and 58 deletions.
7 changes: 7 additions & 0 deletions airbyte-webapp/src/components/Markdown/__mocks__/Markdown.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

function ReactMarkdown({ children }: React.PropsWithChildren<unknown>) {
return <>{children}</>;
}

export default ReactMarkdown;
1 change: 1 addition & 0 deletions airbyte-webapp/src/components/Markdown/__mocks__/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as Markdown } from "./Markdown";
6 changes: 5 additions & 1 deletion airbyte-webapp/src/core/domain/catalog/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export enum DestinationSyncMode {
Dedupted = "append_dedup",
}

export type SyncSchemaStreamInner = {
export type AirbyteSchemaStream = {
stream: AirbyteStream;
config: AirbyteStreamConfiguration;
};
Expand Down Expand Up @@ -54,4 +54,8 @@ export type SyncSchema = {
streams: SyncSchemaStream[];
};

export type AirbyteSyncSchema = {
streams: AirbyteSchemaStream[];
};

export type Path = string[];
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
// learn more: https://github.com/testing-library/jest-dom
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";

// hack to fix tests. https://github.com/remarkjs/react-markdown/issues/635
jest.mock("components/Markdown");
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
import { OperationsSection } from "./components/OperationsSection";

const EditLaterMessage = styled(Label)`
margin: -20px 0 29px;
margin: 20px 0 29px;
`;

const ConnectorLabel = styled(ControlLabels)`
Expand Down
Loading

0 comments on commit ff4762c

Please sign in to comment.