@arnosaine/cra-template
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@arnosaine/cra-template", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"keywords": [ | ||
@@ -10,3 +10,2 @@ "react", | ||
"description": "The base template for Create React App.", | ||
"main": "template.json", | ||
"repository": { | ||
@@ -13,0 +12,0 @@ "type": "git", |
@@ -12,3 +12,3 @@ { | ||
"dependencies": { | ||
"@arnosaine/cra-template-helpers": "^0.1.0", | ||
"@arnosaine/cra-template-helpers": "^0.2.0", | ||
"@testing-library/react": "^9.3.2", | ||
@@ -15,0 +15,0 @@ "@testing-library/jest-dom": "^4.2.4", |
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import { render, screen } from '@testing-library/react'; | ||
import App from './App'; | ||
test('renders learn react link', () => { | ||
const { getByText } = render(<App />); | ||
const linkElement = getByText(/learn react/i); | ||
render(<App />); | ||
const linkElement = screen.getByText(/learn react/i); | ||
expect(linkElement).toBeInTheDocument(); | ||
}); |
@@ -6,3 +6,8 @@ import ReactDOM from 'react-dom'; | ||
ReactDOM.render(<App />, document.getElementById('root')); | ||
ReactDOM.render( | ||
<React.StrictMode> | ||
<App /> | ||
</React.StrictMode>, | ||
document.getElementById('root') | ||
); | ||
@@ -9,0 +14,0 @@ // If you want your app to work offline and load faster, you can change |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37219
314