Skip to content

Commit a805597

Browse files
🔧 Update react-test-renderer
1 parent f379cea commit a805597

File tree

4 files changed

+55
-44
lines changed

4 files changed

+55
-44
lines changed

@types/global.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import 'react';
1+
import * as React from 'react';
2+
23
declare global {
4+
export type Hoge = 'hoge' | 'piyo';
5+
36
// A type for the properties of a function component
47
namespace React {
58
interface CodeBlockHTMLAttributes<T> extends HTMLAttributes<T> {

package-lock.json

Lines changed: 46 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@types/jest": "^26.0.20",
1818
"@types/node": "^14.14.35",
1919
"@types/react": "^17.0.20",
20-
"@types/react-test-renderer": "^17.0.1",
20+
"@types/react-test-renderer": "^17.0.2",
2121
"@typescript-eslint/eslint-plugin": "^4.33.0",
2222
"@typescript-eslint/parser": "^4.28.5",
2323
"babel-loader": "^8.2.2",
@@ -29,8 +29,8 @@
2929
"jest-environment-jsdom-global": "^2.0.4",
3030
"license-webpack-plugin": "^2.3.20",
3131
"prettier": "^2.7.1",
32-
"react": "^17.0.2",
33-
"react-test-renderer": "^17.0.2",
32+
"react": "^18.2.0",
33+
"react-test-renderer": "^18.2.0",
3434
"run-script-os": "^1.1.6",
3535
"terser-webpack-plugin": "^5.1.4",
3636
"ts-jest": "^26.5.4",

test/HTMLCodeBlockElement.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as React from 'react';
2-
import renderer from 'react-test-renderer';
1+
import * as renderer from 'react-test-renderer';
2+
import '../@types/global';
33

44
describe('React', () => {
55
test('Simple', () => {

0 commit comments

Comments
 (0)