-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3830 from terrestris/rg-future-rebased
rg-future (rebased)
- Loading branch information
Showing
209 changed files
with
12,958 additions
and
51,914 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
module.exports = { | ||
extends: [ | ||
'@terrestris/eslint-config-typescript', | ||
'@terrestris/eslint-config-typescript-react', | ||
'plugin:testing-library/react', | ||
'plugin:jest-dom/recommended' | ||
], | ||
plugins: [ | ||
'testing-library', | ||
'jest-dom' | ||
'jest-dom', | ||
'simple-import-sort' | ||
], | ||
rules: { | ||
'no-underscore-dangle': 'off', | ||
'@typescript-eslint/member-ordering': 'off', | ||
'testing-library/no-node-access': 'warn', | ||
'testing-library/no-container': 'warn' | ||
'no-underscore-dangle': 'off', | ||
'simple-import-sort/exports': 'warn', | ||
'simple-import-sort/imports': 'warn' | ||
} | ||
}; |
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,2 +1 @@ | ||
v18 | ||
|
||
v20 |
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,7 +1,10 @@ | ||
{ | ||
"branches": [ | ||
"main", | ||
"next", | ||
{ | ||
name: "next", | ||
prerelease: true | ||
} | ||
"15.x.x" | ||
], | ||
"plugins": [ | ||
|
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,8 +1,35 @@ | ||
import Enzyme from 'enzyme'; | ||
import Adapter from '@wojtekmaj/enzyme-adapter-react-17'; | ||
import 'whatwg-fetch'; | ||
import 'jest-canvas-mock'; | ||
import '@testing-library/jest-dom'; | ||
import 'regenerator-runtime/runtime'; | ||
|
||
import Adapter from '@cfaester/enzyme-adapter-react-18'; | ||
import Enzyme from 'enzyme'; | ||
import { | ||
TextDecoder, | ||
TextEncoder | ||
} from 'util'; | ||
|
||
Object.assign(global, { | ||
TextDecoder, | ||
TextEncoder | ||
}); | ||
|
||
Enzyme.configure({ adapter: new Adapter() }); | ||
|
||
jest.mock('use-resize-observer', () => ({ | ||
__esModule: true, | ||
default: jest.fn().mockImplementation(() => ({ | ||
observe: jest.fn(), | ||
unobserve: jest.fn(), | ||
disconnect: jest.fn(), | ||
})), | ||
})); | ||
|
||
window.ResizeObserver = | ||
window.ResizeObserver || | ||
jest.fn().mockImplementation(() => ({ | ||
disconnect: jest.fn(), | ||
observe: jest.fn(), | ||
unobserve: jest.fn(), | ||
})); |
Oops, something went wrong.