-
Notifications
You must be signed in to change notification settings - Fork 68
FED-3283: React 18 js files #414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
582f969
02068ca
468aacd
232f67c
6adf53a
9884640
c774253
480c91a
9c513b3
d0b876e
040a2c4
60cb3ae
0730056
4a1b67c
ffd819f
35cff8e
09d0a68
ee3daeb
5a1005d
664c652
2119beb
da5e00c
74aa3dd
7c4bed2
fc2deca
954fca9
52f1a56
d38e155
8674405
8886413
0d36059
74d3a4d
ec60ac1
d0ce0e2
bf29526
e258085
621ec08
f3f6a5a
f36ed77
b1f3071
f7d3626
71910f3
62a4cbc
dbe7de1
ec9455c
467f446
0ac4ff3
764ef2c
03ed71a
b82a82b
c7bac80
88e6155
2d74404
a8b3412
910c60d
32ab0fd
5cb0631
b9965ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*.dart] | ||
max_line_length = 120 | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
targets: | ||
$default: | ||
builders: | ||
mockito:mockBuilder: | ||
# Scope only to files declaring mocks, for performance. | ||
generate_for: | ||
- test/mockito.dart | ||
Comment on lines
-4
to
-7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't use mockito? and it was throwing build warnings that its unused There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like this got left behind from when we switched to mocktail; thanks for cleaning this up! |
||
test_html_builder: | ||
options: | ||
templates: | ||
"test/templates/html_template.html": | ||
- "test/**_test.dart" | ||
Comment on lines
+4
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved to using test_html_builder to make it easier to swap js files that were being used for testing with react 17 and 18 in ci |
||
build_web_compilers|entrypoint: | ||
# These are globs for the entrypoints you want to compile. | ||
generate_for: | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Intercept console.error calls and silence warnings for each react_dom.render call, | ||
// until at the very least createRoot is made available in react-dart and RTL. | ||
const oldConsoleError = console.error; | ||
console.error = function() { | ||
const firstArg = arguments[0]; | ||
// Use startsWith instead of indexOf as a small optimization for when large strings are logged. | ||
if (typeof firstArg === 'string' && firstArg.startsWith('Warning: ReactDOM.render is no longer supported in React 18.')) { | ||
// Suppress the error. | ||
} else { | ||
oldConsoleError.apply(console, arguments); | ||
} | ||
} |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.