File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ module.exports = {
20
20
"<rootDir>/site/**/*.tsx" ,
21
21
"!<rootDir>/site/**/*.stories.tsx" ,
22
22
"!<rootDir>/site/.next/**/*.*" ,
23
+ "!<rootDir>/site/out/**/*.*" ,
23
24
"!<rootDir>/site/dev.ts" ,
24
25
"!<rootDir>/site/next-env.d.ts" ,
25
26
"!<rootDir>/site/next.config.js" ,
Original file line number Diff line number Diff line change 1
1
export * from "./FormRow"
2
2
export * from "./FormSection"
3
3
export * from "./FormTextField"
4
- export * from "./FormTitle"
4
+ export * from "./FormTitle"
Original file line number Diff line number Diff line change
1
+ import React from "react"
2
+ import { screen } from "@testing-library/react"
3
+
4
+ import { render } from "../../test_helpers"
5
+ import { ProjectIcon } from "./ProjectIcon"
6
+
7
+ describe ( "ProjectIcon" , ( ) => {
8
+ it ( "renders content" , async ( ) => {
9
+ // When
10
+ render ( < ProjectIcon title = "Test Title" onClick = { ( ) => { return } } /> )
11
+
12
+ // Then
13
+ await screen . findByText ( "Test Title" , { exact : false } )
14
+ } )
15
+ } )
Original file line number Diff line number Diff line change
1
+ /**
2
+ * `firstOrOnly` handles disambiguation of a value that is either a single item or array.
3
+ *
4
+ * If an array is passed in, the first item will be returned.
5
+ */
1
6
export const firstOrOnly = < T > ( itemOrItems : T | T [ ] ) => {
2
7
if ( Array . isArray ( itemOrItems ) ) {
3
8
return itemOrItems [ 0 ]
You can’t perform that action at this time.
0 commit comments