-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
170 changed files
with
7,939 additions
and
7,448 deletions.
There are no files selected for viewing
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
Validating CODEOWNERS rules …
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,2 @@ | ||
# Global owners | ||
* @julienben @gretzky @justingreenberg @jwinn @Mensae |
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,4 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [julienben, gretzky] | ||
open_collective: react-boilerplate |
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
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 |
---|---|---|
@@ -1,14 +1,19 @@ | ||
comment: This issue was automatically closed because it does not follow either one of our templates. Please open a new issue and fill out the template that appears instead of deleting it. If you're reporting an issue, it's especially important that you provide detailed steps for how to reproduce it. | ||
comment: "This issue was automatically closed because it does not follow either one of react-boilerplate's templates. | ||
issueConfigs: | ||
If your issue is indeed a bug report or a feature request, please open a new issue and fill out the relevant template instead of deleting it. | ||
If you're reporting a bug, it's especially important that you provide detailed steps for how to reproduce it. | ||
Please note that requests for help should go to [our Spectrum channel](https://spectrum.chat/react-boilerplate?tab=posts)." | ||
|
||
issueConfigs: | ||
- content: | ||
- Description | ||
- Steps to reproduce | ||
- Versions | ||
- Description | ||
- Steps to reproduce | ||
- Versions | ||
|
||
- content: | ||
- Is your feature request related to a problem | ||
- Describe the solution you'd like | ||
- Describe alternatives you've considered | ||
- Additional context | ||
- Is your feature request related to a problem | ||
- Describe the solution you'd like | ||
- Describe alternatives you've considered | ||
- Additional context |
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 @@ | ||
save-exact = true |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,34 @@ | ||
import React from 'react'; | ||
import { render } from 'react-testing-library'; | ||
import { render } from '@testing-library/react'; | ||
|
||
import A from '../A'; | ||
|
||
const renderComponent = (props = {}) => { | ||
const utils = render(<A {...props}>Link</A>); | ||
const link = utils.queryByText('Link'); | ||
return { ...utils, link }; | ||
}; | ||
|
||
describe('<A />', () => { | ||
it('should render an <a> tag', () => { | ||
const { container } = render(<A />); | ||
expect(container.querySelector('a')).not.toBeNull(); | ||
const { link } = renderComponent(); | ||
expect(link).toBeInTheDocument(); | ||
expect(link.tagName).toBe('A'); | ||
}); | ||
|
||
it('should have a class attribute', () => { | ||
const { container } = render(<A />); | ||
expect(container.querySelector('a').hasAttribute('class')).toBe(true); | ||
const { link } = renderComponent(); | ||
expect(link).toHaveAttribute('class'); | ||
}); | ||
|
||
it('should adopt a valid attribute', () => { | ||
const id = 'test'; | ||
const { container } = render(<A id={id} />); | ||
expect(container.querySelector('a').id).toEqual(id); | ||
const { link } = renderComponent({ id }); | ||
expect(link).toHaveAttribute('id', id); | ||
}); | ||
|
||
it('should not adopt an invalid attribute', () => { | ||
const { container } = render(<A attribute="test" />); | ||
expect(container.querySelector('a[attribute="test"]')).toBeNull(); | ||
const { link } = renderComponent({ attribute: 'test' }); | ||
expect(link).not.toHaveAttribute('attribute'); | ||
}); | ||
}); |
Oops, something went wrong.