diff --git a/packages/@react-spectrum/actiongroup/test/ActionGroup.ssr.test.js b/packages/@react-spectrum/actiongroup/test/ActionGroup.ssr.test.js new file mode 100644 index 00000000000..3b591f2a7fe --- /dev/null +++ b/packages/@react-spectrum/actiongroup/test/ActionGroup.ssr.test.js @@ -0,0 +1,29 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('ActionGroup SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {ActionGroup, Item} from '../'; + import {Provider} from '@react-spectrum/provider'; + import {theme} from '@react-spectrum/theme-default'; + + + + One + + + `); + }); +}); diff --git a/packages/@react-spectrum/breadcrumbs/test/Breadcrumbs.ssr.test.js b/packages/@react-spectrum/breadcrumbs/test/Breadcrumbs.ssr.test.js new file mode 100644 index 00000000000..f76b4be93eb --- /dev/null +++ b/packages/@react-spectrum/breadcrumbs/test/Breadcrumbs.ssr.test.js @@ -0,0 +1,25 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Breadcrumbs SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Breadcrumbs, Item} from '../'; + + + One + + `); + }); +}); diff --git a/packages/@react-spectrum/buttongroup/test/ButtonGroup.ssr.test.js b/packages/@react-spectrum/buttongroup/test/ButtonGroup.ssr.test.js new file mode 100644 index 00000000000..520c10d5de0 --- /dev/null +++ b/packages/@react-spectrum/buttongroup/test/ButtonGroup.ssr.test.js @@ -0,0 +1,30 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('ButtonGroup SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {ButtonGroup} from '../'; + import {Button} from '@react-spectrum/button'; + import {Provider} from '@react-spectrum/provider'; + import {theme} from '@react-spectrum/theme-default'; + + + + + + + `); + }); +}); diff --git a/packages/@react-spectrum/illustratedmessage/test/IllustratedMessage.ssr.test.js b/packages/@react-spectrum/illustratedmessage/test/IllustratedMessage.ssr.test.js new file mode 100644 index 00000000000..b2705ea6b3c --- /dev/null +++ b/packages/@react-spectrum/illustratedmessage/test/IllustratedMessage.ssr.test.js @@ -0,0 +1,27 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('IllustratedMessage SSR', function () { + + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Heading} from '@react-spectrum/text'; + import {IllustratedMessage} from '../'; + + + Message + + `); + }); +}); diff --git a/packages/@react-spectrum/layout/test/Flex.ssr.test.js b/packages/@react-spectrum/layout/test/Flex.ssr.test.js new file mode 100644 index 00000000000..9cd0b1337e8 --- /dev/null +++ b/packages/@react-spectrum/layout/test/Flex.ssr.test.js @@ -0,0 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Flex SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Flex} from '../'; + + `); + }); +}); diff --git a/packages/@react-spectrum/layout/test/Grid.ssr.test.js b/packages/@react-spectrum/layout/test/Grid.ssr.test.js new file mode 100644 index 00000000000..2881a94f8db --- /dev/null +++ b/packages/@react-spectrum/layout/test/Grid.ssr.test.js @@ -0,0 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Grid SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Grid} from '../'; + + `); + }); +}); diff --git a/packages/@react-spectrum/link/test/Link.ssr.test.js b/packages/@react-spectrum/link/test/Link.ssr.test.js new file mode 100644 index 00000000000..ead1be1b260 --- /dev/null +++ b/packages/@react-spectrum/link/test/Link.ssr.test.js @@ -0,0 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Link SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Link} from '../'; + the link + `); + }); +}); diff --git a/packages/@react-spectrum/listbox/test/ListBox.ssr.test.js b/packages/@react-spectrum/listbox/test/ListBox.ssr.test.js new file mode 100644 index 00000000000..6e3893ab062 --- /dev/null +++ b/packages/@react-spectrum/listbox/test/ListBox.ssr.test.js @@ -0,0 +1,26 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('ListBox SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {ListBox, Item} from '../'; + + Left + Middle + Right + + `); + }); +}); diff --git a/packages/@react-spectrum/menu/test/Menu.ssr.test.js b/packages/@react-spectrum/menu/test/Menu.ssr.test.js new file mode 100644 index 00000000000..f67b5bf7c48 --- /dev/null +++ b/packages/@react-spectrum/menu/test/Menu.ssr.test.js @@ -0,0 +1,26 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Menu SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Menu, Item} from '../'; + + Left + Middle + Right + + `); + }); +}); diff --git a/packages/@react-spectrum/menu/test/MenuTrigger.ssr.test.js b/packages/@react-spectrum/menu/test/MenuTrigger.ssr.test.js new file mode 100644 index 00000000000..ec5dc15a0b7 --- /dev/null +++ b/packages/@react-spectrum/menu/test/MenuTrigger.ssr.test.js @@ -0,0 +1,30 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('MenuTrigger SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {MenuTrigger, Menu, Item} from '../'; + import {ActionButton} from '@react-spectrum/button'; + + Edit + + One + Two + Three + + + `); + }); +}); diff --git a/packages/@react-spectrum/meter/test/Meter.ssr.test.js b/packages/@react-spectrum/meter/test/Meter.ssr.test.js new file mode 100644 index 00000000000..ecdfce2a670 --- /dev/null +++ b/packages/@react-spectrum/meter/test/Meter.ssr.test.js @@ -0,0 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Meter SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Meter} from '../'; + + `); + }); +}); diff --git a/packages/@react-spectrum/numberfield/test/NumberField.ssr.test.js b/packages/@react-spectrum/numberfield/test/NumberField.ssr.test.js new file mode 100644 index 00000000000..ba4b9cccde8 --- /dev/null +++ b/packages/@react-spectrum/numberfield/test/NumberField.ssr.test.js @@ -0,0 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('NumberField SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {NumberField} from '../'; + + `); + }); +}); diff --git a/packages/@react-spectrum/picker/test/Picker.ssr.test.js b/packages/@react-spectrum/picker/test/Picker.ssr.test.js new file mode 100644 index 00000000000..420c3fe955d --- /dev/null +++ b/packages/@react-spectrum/picker/test/Picker.ssr.test.js @@ -0,0 +1,26 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Picker SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Picker, Item} from '../'; + + One + Two + Three + + `); + }); +}); diff --git a/packages/@react-spectrum/progress/test/ProgressBar.ssr.test.js b/packages/@react-spectrum/progress/test/ProgressBar.ssr.test.js new file mode 100644 index 00000000000..af8030c112e --- /dev/null +++ b/packages/@react-spectrum/progress/test/ProgressBar.ssr.test.js @@ -0,0 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('ProgressBar SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {ProgressBar} from '../'; + + `); + }); +}); diff --git a/packages/@react-spectrum/progress/test/ProgressCircle.ssr.test.js b/packages/@react-spectrum/progress/test/ProgressCircle.ssr.test.js new file mode 100644 index 00000000000..38107227e71 --- /dev/null +++ b/packages/@react-spectrum/progress/test/ProgressCircle.ssr.test.js @@ -0,0 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('ProgressCircle SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {ProgressCircle} from '../'; + + `); + }); +}); diff --git a/packages/@react-spectrum/provider/test/Provider.ssr.test.js b/packages/@react-spectrum/provider/test/Provider.ssr.test.js new file mode 100644 index 00000000000..bef6d45f0f2 --- /dev/null +++ b/packages/@react-spectrum/provider/test/Provider.ssr.test.js @@ -0,0 +1,26 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Provider SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Provider} from '../'; + import {theme} from '@react-spectrum/theme-default'; + + +
+ + `); + }); +}); diff --git a/packages/@react-spectrum/radio/test/Radio.ssr.test.js b/packages/@react-spectrum/radio/test/Radio.ssr.test.js new file mode 100644 index 00000000000..b0effbbb856 --- /dev/null +++ b/packages/@react-spectrum/radio/test/Radio.ssr.test.js @@ -0,0 +1,26 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Radio SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Radio, RadioGroup} from '../'; + + + One + Two + + `); + }); +}); diff --git a/packages/@react-spectrum/searchfield/test/SearchField.ssr.test.js b/packages/@react-spectrum/searchfield/test/SearchField.ssr.test.js new file mode 100644 index 00000000000..3209ae30656 --- /dev/null +++ b/packages/@react-spectrum/searchfield/test/SearchField.ssr.test.js @@ -0,0 +1,23 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('SearchField SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {SearchField} from '../'; + + + `); + }); +}); diff --git a/packages/@react-spectrum/statuslight/test/StatusLight.ssr.test.js b/packages/@react-spectrum/statuslight/test/StatusLight.ssr.test.js new file mode 100644 index 00000000000..7be873384d2 --- /dev/null +++ b/packages/@react-spectrum/statuslight/test/StatusLight.ssr.test.js @@ -0,0 +1,23 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('StatusLight SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {StatusLight} from '../'; + + Status + `); + }); +}); diff --git a/packages/@react-spectrum/switch/test/Switch.ssr.test.js b/packages/@react-spectrum/switch/test/Switch.ssr.test.js new file mode 100644 index 00000000000..d0b31b9b359 --- /dev/null +++ b/packages/@react-spectrum/switch/test/Switch.ssr.test.js @@ -0,0 +1,23 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Switch SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Switch} from '../'; + + Switching + `); + }); +}); diff --git a/packages/@react-spectrum/text/test/Heading.ssr.test.js b/packages/@react-spectrum/text/test/Heading.ssr.test.js new file mode 100644 index 00000000000..9777d0d004b --- /dev/null +++ b/packages/@react-spectrum/text/test/Heading.ssr.test.js @@ -0,0 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Heading SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Heading} from '../'; + + `); + }); +}); diff --git a/packages/@react-spectrum/text/test/Keyboard.ssr.test.js b/packages/@react-spectrum/text/test/Keyboard.ssr.test.js new file mode 100644 index 00000000000..186054b33b7 --- /dev/null +++ b/packages/@react-spectrum/text/test/Keyboard.ssr.test.js @@ -0,0 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Keyboard SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Keyboard} from '../'; + + `); + }); +}); diff --git a/packages/@react-spectrum/text/test/Text.ssr.test.js b/packages/@react-spectrum/text/test/Text.ssr.test.js new file mode 100644 index 00000000000..3b4be3d227d --- /dev/null +++ b/packages/@react-spectrum/text/test/Text.ssr.test.js @@ -0,0 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('Text SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {Text} from '../'; + + `); + }); +}); diff --git a/packages/@react-spectrum/textfield/test/TextArea.ssr.test.js b/packages/@react-spectrum/textfield/test/TextArea.ssr.test.js new file mode 100644 index 00000000000..72f22ceccaf --- /dev/null +++ b/packages/@react-spectrum/textfield/test/TextArea.ssr.test.js @@ -0,0 +1,23 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {testSSR} from '@react-spectrum/test-utils'; + +describe('TextArea SSR', function () { + it('should render without errors', async function () { + await testSSR(__filename, ` + import {TextArea} from '../'; + +