-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
packages/studio-plugin/tests/__fixtures__/LayoutFile/BasicLayout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
packages/studio-plugin/tests/__fixtures__/PageFile/brokenCssImport.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import "@yext/search-ui-react/bundle.css"; | ||
import ComplexBanner from "../ComponentFile/ComplexBanner"; | ||
import { GetPath, TemplateConfig, TemplateProps } from "@yext/pages"; | ||
|
||
export const config: TemplateConfig = { | ||
stream: { | ||
$id: "studio-stream-id", | ||
localization: { locales: ["en"] }, | ||
filter: { entityTypes: ["location"] }, | ||
fields: ["title", "slug"], | ||
}, | ||
}; | ||
|
||
export const getPath: GetPath<TemplateProps> = ({ | ||
document, | ||
}: TemplateProps) => { | ||
return document.slug; | ||
}; | ||
|
||
export default function BrokenCss({ document }: TemplateProps) { | ||
return <ComplexBanner title={document.title} num={3} bool={false} />; | ||
} |
2 changes: 2 additions & 0 deletions
2
packages/studio-plugin/tests/__fixtures__/PageFile/entityTemplate.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters