@openedx/frontend-build 14.0.10 → 14.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/package.json +10 -4
  2. package/.eslintignore +0 -5
  3. package/.eslintrc.js +0 -10
  4. package/.github/workflows/add-depr-ticket-to-depr-board.yml +0 -19
  5. package/.github/workflows/add-remove-label-on-comment.yml +0 -20
  6. package/.github/workflows/ci.yml +0 -33
  7. package/.github/workflows/commitlint.yml +0 -10
  8. package/.github/workflows/lockfileversion-check.yml +0 -13
  9. package/.github/workflows/release.yml +0 -34
  10. package/.github/workflows/self-assign-issue.yml +0 -12
  11. package/.github/workflows/sync-master-alpha.yml +0 -35
  12. package/.nvmrc +0 -1
  13. package/coverage/clover.xml +0 -6
  14. package/coverage/coverage-final.json +0 -1
  15. package/coverage/lcov-report/base.css +0 -224
  16. package/coverage/lcov-report/block-navigation.js +0 -87
  17. package/coverage/lcov-report/favicon.png +0 -0
  18. package/coverage/lcov-report/index.html +0 -101
  19. package/coverage/lcov-report/prettify.css +0 -1
  20. package/coverage/lcov-report/prettify.js +0 -2
  21. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  22. package/coverage/lcov-report/sorter.js +0 -196
  23. package/coverage/lcov.info +0 -0
  24. package/docs/0001-non-usage-of-gatsby.rst +0 -37
  25. package/docs/0002-js-environment-config.md +0 -47
  26. package/docs/0003-fedx-scripts-serve.md +0 -37
  27. package/example/.env +0 -0
  28. package/example/.env.development +0 -3
  29. package/example/.env.test +0 -2
  30. package/example/.eslintignore +0 -5
  31. package/example/.eslintrc.js +0 -3
  32. package/example/dist/1382e1cbf8d733d7301cdd212192bfea.jpg +0 -0
  33. package/example/dist/652.70be34739115e11aaeb3.js +0 -3
  34. package/example/dist/652.70be34739115e11aaeb3.js.LICENSE.txt +0 -41
  35. package/example/dist/652.70be34739115e11aaeb3.js.map +0 -1
  36. package/example/dist/app.09a2e8d2732091b5c03c.css +0 -3
  37. package/example/dist/app.09a2e8d2732091b5c03c.css.map +0 -1
  38. package/example/dist/app.09a2e8d2732091b5c03c.js +0 -2
  39. package/example/dist/app.09a2e8d2732091b5c03c.js.map +0 -1
  40. package/example/dist/babel/App.js +0 -94
  41. package/example/dist/babel/App.js.map +0 -1
  42. package/example/dist/babel/App.test.jsx +0 -11
  43. package/example/dist/babel/Image.tsx +0 -16
  44. package/example/dist/babel/__snapshots__/App.test.jsx.snap +0 -120
  45. package/example/dist/babel/apple.jpg +0 -0
  46. package/example/dist/babel/apple.svg +0 -1
  47. package/example/dist/babel/index.js +0 -13
  48. package/example/dist/babel/index.js.map +0 -1
  49. package/example/dist/babel/style.scss +0 -9
  50. package/example/dist/cb28cdb1468c915e27e5cec9af64f22f.svg +0 -1
  51. package/example/dist/index.html +0 -4
  52. package/example/dist/report.html +0 -39
  53. package/example/dist/runtime.40856db71d718a3e9d37.js +0 -2
  54. package/example/dist/runtime.40856db71d718a3e9d37.js.map +0 -1
  55. package/example/env.config.js +0 -6
  56. package/example/node_modules/.package-lock.json +0 -98
  57. package/example/node_modules/js-tokens/CHANGELOG.md +0 -151
  58. package/example/node_modules/js-tokens/LICENSE +0 -21
  59. package/example/node_modules/js-tokens/README.md +0 -240
  60. package/example/node_modules/js-tokens/index.js +0 -23
  61. package/example/node_modules/js-tokens/package.json +0 -30
  62. package/example/node_modules/loose-envify/LICENSE +0 -21
  63. package/example/node_modules/loose-envify/README.md +0 -45
  64. package/example/node_modules/loose-envify/cli.js +0 -16
  65. package/example/node_modules/loose-envify/custom.js +0 -4
  66. package/example/node_modules/loose-envify/index.js +0 -3
  67. package/example/node_modules/loose-envify/loose-envify.js +0 -36
  68. package/example/node_modules/loose-envify/package.json +0 -36
  69. package/example/node_modules/loose-envify/replace.js +0 -65
  70. package/example/node_modules/object-assign/index.js +0 -90
  71. package/example/node_modules/object-assign/license +0 -21
  72. package/example/node_modules/object-assign/package.json +0 -42
  73. package/example/node_modules/object-assign/readme.md +0 -61
  74. package/example/node_modules/prop-types/LICENSE +0 -21
  75. package/example/node_modules/prop-types/README.md +0 -302
  76. package/example/node_modules/prop-types/checkPropTypes.js +0 -103
  77. package/example/node_modules/prop-types/factory.js +0 -19
  78. package/example/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
  79. package/example/node_modules/prop-types/factoryWithTypeCheckers.js +0 -610
  80. package/example/node_modules/prop-types/index.js +0 -19
  81. package/example/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
  82. package/example/node_modules/prop-types/lib/has.js +0 -1
  83. package/example/node_modules/prop-types/package.json +0 -60
  84. package/example/node_modules/prop-types/prop-types.js +0 -1315
  85. package/example/node_modules/prop-types/prop-types.min.js +0 -1
  86. package/example/node_modules/react/LICENSE +0 -21
  87. package/example/node_modules/react/README.md +0 -13
  88. package/example/node_modules/react/build-info.json +0 -8
  89. package/example/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -889
  90. package/example/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +0 -9
  91. package/example/node_modules/react/cjs/react-jsx-runtime.development.js +0 -911
  92. package/example/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -10
  93. package/example/node_modules/react/cjs/react.development.js +0 -1912
  94. package/example/node_modules/react/cjs/react.production.min.js +0 -25
  95. package/example/node_modules/react/index.js +0 -7
  96. package/example/node_modules/react/jsx-dev-runtime.js +0 -7
  97. package/example/node_modules/react/jsx-runtime.js +0 -7
  98. package/example/node_modules/react/package.json +0 -44
  99. package/example/node_modules/react/umd/react.development.js +0 -3318
  100. package/example/node_modules/react/umd/react.production.min.js +0 -32
  101. package/example/node_modules/react/umd/react.profiling.min.js +0 -39
  102. package/example/node_modules/react-dom/LICENSE +0 -21
  103. package/example/node_modules/react-dom/README.md +0 -54
  104. package/example/node_modules/react-dom/build-info.json +0 -8
  105. package/example/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -4043
  106. package/example/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +0 -54
  107. package/example/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -4085
  108. package/example/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +0 -55
  109. package/example/node_modules/react-dom/cjs/react-dom-test-utils.development.js +0 -1480
  110. package/example/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +0 -35
  111. package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.browser.development.js +0 -141
  112. package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.browser.production.min.js +0 -11
  113. package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.node.development.js +0 -162
  114. package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.node.production.min.js +0 -12
  115. package/example/node_modules/react-dom/cjs/react-dom-unstable-native-dependencies.development.js +0 -1629
  116. package/example/node_modules/react-dom/cjs/react-dom-unstable-native-dependencies.production.min.js +0 -31
  117. package/example/node_modules/react-dom/cjs/react-dom.development.js +0 -25012
  118. package/example/node_modules/react-dom/cjs/react-dom.production.min.js +0 -292
  119. package/example/node_modules/react-dom/cjs/react-dom.profiling.min.js +0 -299
  120. package/example/node_modules/react-dom/index.js +0 -38
  121. package/example/node_modules/react-dom/package.json +0 -60
  122. package/example/node_modules/react-dom/profiling.js +0 -38
  123. package/example/node_modules/react-dom/server.browser.js +0 -7
  124. package/example/node_modules/react-dom/server.js +0 -3
  125. package/example/node_modules/react-dom/server.node.js +0 -7
  126. package/example/node_modules/react-dom/test-utils.js +0 -7
  127. package/example/node_modules/react-dom/umd/react-dom-server.browser.development.js +0 -4147
  128. package/example/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +0 -45
  129. package/example/node_modules/react-dom/umd/react-dom-test-utils.development.js +0 -1499
  130. package/example/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +0 -30
  131. package/example/node_modules/react-dom/umd/react-dom-unstable-fizz.browser.development.js +0 -141
  132. package/example/node_modules/react-dom/umd/react-dom-unstable-fizz.browser.production.min.js +0 -10
  133. package/example/node_modules/react-dom/umd/react-dom-unstable-native-dependencies.development.js +0 -1628
  134. package/example/node_modules/react-dom/umd/react-dom-unstable-native-dependencies.production.min.js +0 -28
  135. package/example/node_modules/react-dom/umd/react-dom.development.js +0 -25147
  136. package/example/node_modules/react-dom/umd/react-dom.production.min.js +0 -239
  137. package/example/node_modules/react-dom/umd/react-dom.profiling.min.js +0 -247
  138. package/example/node_modules/react-dom/unstable-fizz.browser.js +0 -7
  139. package/example/node_modules/react-dom/unstable-fizz.js +0 -3
  140. package/example/node_modules/react-dom/unstable-fizz.node.js +0 -7
  141. package/example/node_modules/react-dom/unstable-native-dependencies.js +0 -7
  142. package/example/node_modules/react-is/LICENSE +0 -21
  143. package/example/node_modules/react-is/README.md +0 -104
  144. package/example/node_modules/react-is/build-info.json +0 -8
  145. package/example/node_modules/react-is/cjs/react-is.development.js +0 -181
  146. package/example/node_modules/react-is/cjs/react-is.production.min.js +0 -15
  147. package/example/node_modules/react-is/index.js +0 -7
  148. package/example/node_modules/react-is/package.json +0 -27
  149. package/example/node_modules/react-is/umd/react-is.development.js +0 -181
  150. package/example/node_modules/react-is/umd/react-is.production.min.js +0 -13
  151. package/example/node_modules/react-test-renderer/LICENSE +0 -21
  152. package/example/node_modules/react-test-renderer/README.md +0 -26
  153. package/example/node_modules/react-test-renderer/build-info.json +0 -8
  154. package/example/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.development.js +0 -1019
  155. package/example/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.production.min.js +0 -35
  156. package/example/node_modules/react-test-renderer/cjs/react-test-renderer.development.js +0 -15596
  157. package/example/node_modules/react-test-renderer/cjs/react-test-renderer.production.min.js +0 -181
  158. package/example/node_modules/react-test-renderer/index.js +0 -7
  159. package/example/node_modules/react-test-renderer/package.json +0 -41
  160. package/example/node_modules/react-test-renderer/shallow.js +0 -7
  161. package/example/node_modules/react-test-renderer/umd/react-test-renderer-shallow.development.js +0 -1176
  162. package/example/node_modules/react-test-renderer/umd/react-test-renderer-shallow.production.min.js +0 -31
  163. package/example/node_modules/react-test-renderer/umd/react-test-renderer.development.js +0 -15709
  164. package/example/node_modules/react-test-renderer/umd/react-test-renderer.production.min.js +0 -151
  165. package/example/node_modules/scheduler/LICENSE +0 -21
  166. package/example/node_modules/scheduler/README.md +0 -9
  167. package/example/node_modules/scheduler/build-info.json +0 -8
  168. package/example/node_modules/scheduler/cjs/scheduler-tracing.development.js +0 -349
  169. package/example/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +0 -10
  170. package/example/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +0 -17
  171. package/example/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -857
  172. package/example/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +0 -20
  173. package/example/node_modules/scheduler/cjs/scheduler.development.js +0 -858
  174. package/example/node_modules/scheduler/cjs/scheduler.production.min.js +0 -21
  175. package/example/node_modules/scheduler/index.js +0 -7
  176. package/example/node_modules/scheduler/package.json +0 -39
  177. package/example/node_modules/scheduler/tracing-profiling.js +0 -7
  178. package/example/node_modules/scheduler/tracing.js +0 -7
  179. package/example/node_modules/scheduler/umd/scheduler-tracing.development.js +0 -80
  180. package/example/node_modules/scheduler/umd/scheduler-tracing.production.min.js +0 -80
  181. package/example/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +0 -80
  182. package/example/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +0 -857
  183. package/example/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +0 -17
  184. package/example/node_modules/scheduler/umd/scheduler.development.js +0 -152
  185. package/example/node_modules/scheduler/umd/scheduler.production.min.js +0 -146
  186. package/example/node_modules/scheduler/umd/scheduler.profiling.min.js +0 -146
  187. package/example/node_modules/scheduler/unstable_mock.js +0 -7
  188. package/example/package-lock.json +0 -110
  189. package/example/package.json +0 -24
  190. package/example/public/index.html +0 -13
  191. package/example/src/App.jsx +0 -43
  192. package/example/src/App.test.jsx +0 -11
  193. package/example/src/Image.tsx +0 -16
  194. package/example/src/__snapshots__/App.test.jsx.snap +0 -120
  195. package/example/src/apple.jpg +0 -0
  196. package/example/src/apple.svg +0 -1
  197. package/example/src/index.jsx +0 -13
  198. package/example/src/style.scss +0 -9
  199. package/example/tsconfig.json +0 -16
  200. package/openedx.yaml +0 -10
  201. package/renovate.json +0 -22
  202. package/smoke-test.sh +0 -11
@@ -1,17 +0,0 @@
1
- /** @license React v0.19.1
2
- * scheduler-unstable_mock.production.min.js
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
- 'use strict';(function(b,w){"object"===typeof exports&&"undefined"!==typeof module?w(exports):"function"===typeof define&&define.amd?define(["exports"],w):(b=b||self,w(b.SchedulerMock={}))})(this,function(b){function w(){return-1!==y&&null!==k&&k.length>=y||D&&E?t=!0:!1}function J(){if(h)throw Error("Already flushing work.");if(null!==f){var a=f;h=!0;try{var c=!0;do c=a(!0,g);while(c);c||(f=null);return!0}finally{h=!1}}else return!1}function F(a,c){var G=a.length;a.push(c);a:for(;;){var b=G-1>>>1,
10
- p=a[b];if(void 0!==p&&0<z(p,c))a[b]=c,a[G]=p,G=b;else break a}}function l(a){a=a[0];return void 0===a?null:a}function A(a){var c=a[0];if(void 0!==c){var b=a.pop();if(b!==c){a[0]=b;a:for(var n=0,p=a.length;n<p;){var e=2*(n+1)-1,f=a[e],d=e+1,g=a[d];if(void 0!==f&&0>z(f,b))void 0!==g&&0>z(g,f)?(a[n]=g,a[d]=b,n=d):(a[n]=f,a[e]=b,n=e);else if(void 0!==g&&0>z(g,b))a[n]=g,a[d]=b,n=d;else break a}}return c}return null}function z(a,c){var b=a.sortIndex-c.sortIndex;return 0!==b?b:a.id-c.id}function B(a){for(var c=
11
- l(q);null!==c;){if(null===c.callback)A(q);else if(c.startTime<=a)A(q),c.sortIndex=c.expirationTime,F(m,c);else break;c=l(q)}}function H(a){x=!1;B(a);if(!u)if(null!==l(m))u=!0,f=I;else{var c=l(q);null!==c&&(a=c.startTime-a,r=H,v=g+a)}}function I(a,c){u=!1;x&&(x=!1,r=null,v=-1);C=!0;var b=e;try{B(c);for(d=l(m);null!==d&&(!(d.expirationTime>c)||a&&!w());){var f=d.callback;if(null!==f){d.callback=null;e=d.priorityLevel;var p=f(d.expirationTime<=c);c=g;"function"===typeof p?d.callback=p:d===l(m)&&A(m);
12
- B(c)}else A(m);d=l(m)}if(null!==d)var h=!0;else{var k=l(q);if(null!==k){var t=k.startTime-c;r=H;v=g+t}h=!1}return h}finally{d=null,e=b,C=!1}}function K(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;default:return 5E3}}var g=0,f=null,r=null,v=-1,k=null,y=-1,t=!1,h=!1,E=!1,D=!1,m=[],q=[],L=1,d=null,e=3,C=!1,u=!1,x=!1;b.unstable_IdlePriority=5;b.unstable_ImmediatePriority=1;b.unstable_LowPriority=4;b.unstable_NormalPriority=3;b.unstable_Profiling=null;b.unstable_UserBlockingPriority=
13
- 2;b.unstable_advanceTime=function(a){g+=a;null!==r&&v<=g&&(r(g),v=-1,r=null)};b.unstable_cancelCallback=function(a){a.callback=null};b.unstable_clearYields=function(){if(null===k)return[];var a=k;k=null;return a};b.unstable_continueExecution=function(){u||C||(u=!0,f=I)};b.unstable_flushAll=function(){if(null!==k)throw Error("Log is not empty. Assert on the log of yielded values before flushing additional work.");J();if(null!==k)throw Error("While flushing work, something yielded a value. Use an assertion helper to assert on the log of yielded values, e.g. expect(Scheduler).toFlushAndYield([...])");
14
- };b.unstable_flushAllWithoutAsserting=J;b.unstable_flushExpired=function(){if(h)throw Error("Already flushing work.");if(null!==f){h=!0;try{f(!1,g)||(f=null)}finally{h=!1}}};b.unstable_flushNumberOfYields=function(a){if(h)throw Error("Already flushing work.");if(null!==f){var c=f;y=a;h=!0;try{a=!0;do a=c(!0,g);while(a&&!t);a||(f=null)}finally{y=-1,h=t=!1}}};b.unstable_flushUntilNextPaint=function(){if(h)throw Error("Already flushing work.");if(null!==f){var a=f;D=!0;E=!1;h=!0;try{var c=!0;do c=a(!0,
15
- g);while(c&&!t);c||(f=null)}finally{h=t=D=!1}}};b.unstable_forceFrameRate=function(){};b.unstable_getCurrentPriorityLevel=function(){return e};b.unstable_getFirstCallbackNode=function(){return l(m)};b.unstable_next=function(a){switch(e){case 1:case 2:case 3:var c=3;break;default:c=e}var b=e;e=c;try{return a()}finally{e=b}};b.unstable_now=function(){return g};b.unstable_pauseExecution=function(){};b.unstable_requestPaint=function(){E=!0};b.unstable_runWithPriority=function(a,c){switch(a){case 1:case 2:case 3:case 4:case 5:break;
16
- default:a=3}var b=e;e=a;try{return c()}finally{e=b}};b.unstable_scheduleCallback=function(a,c,b){var e=g;if("object"===typeof b&&null!==b){var d=b.delay;d="number"===typeof d&&0<d?e+d:e;b="number"===typeof b.timeout?b.timeout:K(a)}else b=K(a),d=e;b=d+b;a={id:L++,callback:c,priorityLevel:a,startTime:d,expirationTime:b,sortIndex:-1};d>e?(a.sortIndex=d,F(q,a),null===l(m)&&a===l(q)&&(x?(r=null,v=-1):x=!0,r=H,v=g+(d-e))):(a.sortIndex=b,F(m,a),u||C||(u=!0,f=I));return a};b.unstable_shouldYield=function(){var a=
17
- g;B(a);var b=l(m);return b!==d&&null!==d&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime<d.expirationTime||w()};b.unstable_wrapCallback=function(a){var b=e;return function(){var c=e;e=b;try{return a.apply(this,arguments)}finally{e=c}}};b.unstable_yieldValue=function(a){null===k?k=[a]:k.push(a)}});
@@ -1,152 +0,0 @@
1
- /**
2
- * @license React
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
-
10
- /* eslint-disable max-len */
11
-
12
- 'use strict';
13
-
14
- (function(global, factory) {
15
- // eslint-disable-next-line no-unused-expressions
16
- typeof exports === 'object' && typeof module !== 'undefined'
17
- ? (module.exports = factory(require('react')))
18
- : typeof define === 'function' && define.amd // eslint-disable-line no-undef
19
- ? define(['react'], factory) // eslint-disable-line no-undef
20
- : (global.Scheduler = factory(global));
21
- })(this, function(global) {
22
- function unstable_now() {
23
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
24
- this,
25
- arguments
26
- );
27
- }
28
-
29
- function unstable_scheduleCallback() {
30
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleCallback.apply(
31
- this,
32
- arguments
33
- );
34
- }
35
-
36
- function unstable_cancelCallback() {
37
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelCallback.apply(
38
- this,
39
- arguments
40
- );
41
- }
42
-
43
- function unstable_shouldYield() {
44
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_shouldYield.apply(
45
- this,
46
- arguments
47
- );
48
- }
49
-
50
- function unstable_requestPaint() {
51
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_requestPaint.apply(
52
- this,
53
- arguments
54
- );
55
- }
56
-
57
- function unstable_runWithPriority() {
58
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_runWithPriority.apply(
59
- this,
60
- arguments
61
- );
62
- }
63
-
64
- function unstable_next() {
65
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply(
66
- this,
67
- arguments
68
- );
69
- }
70
-
71
- function unstable_wrapCallback() {
72
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply(
73
- this,
74
- arguments
75
- );
76
- }
77
-
78
- function unstable_getCurrentPriorityLevel() {
79
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getCurrentPriorityLevel.apply(
80
- this,
81
- arguments
82
- );
83
- }
84
-
85
- function unstable_getFirstCallbackNode() {
86
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply(
87
- this,
88
- arguments
89
- );
90
- }
91
-
92
- function unstable_pauseExecution() {
93
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_pauseExecution.apply(
94
- this,
95
- arguments
96
- );
97
- }
98
-
99
- function unstable_continueExecution() {
100
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_continueExecution.apply(
101
- this,
102
- arguments
103
- );
104
- }
105
-
106
- function unstable_forceFrameRate() {
107
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_forceFrameRate.apply(
108
- this,
109
- arguments
110
- );
111
- }
112
-
113
- return Object.freeze({
114
- unstable_now: unstable_now,
115
- unstable_scheduleCallback: unstable_scheduleCallback,
116
- unstable_cancelCallback: unstable_cancelCallback,
117
- unstable_shouldYield: unstable_shouldYield,
118
- unstable_requestPaint: unstable_requestPaint,
119
- unstable_runWithPriority: unstable_runWithPriority,
120
- unstable_next: unstable_next,
121
- unstable_wrapCallback: unstable_wrapCallback,
122
- unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
123
- unstable_continueExecution: unstable_continueExecution,
124
- unstable_pauseExecution: unstable_pauseExecution,
125
- unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
126
- unstable_forceFrameRate: unstable_forceFrameRate,
127
- get unstable_IdlePriority() {
128
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
129
- .Scheduler.unstable_IdlePriority;
130
- },
131
- get unstable_ImmediatePriority() {
132
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
133
- .Scheduler.unstable_ImmediatePriority;
134
- },
135
- get unstable_LowPriority() {
136
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
137
- .Scheduler.unstable_LowPriority;
138
- },
139
- get unstable_NormalPriority() {
140
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
141
- .Scheduler.unstable_NormalPriority;
142
- },
143
- get unstable_UserBlockingPriority() {
144
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
145
- .Scheduler.unstable_UserBlockingPriority;
146
- },
147
- get unstable_Profiling() {
148
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
149
- .Scheduler.unstable_Profiling;
150
- },
151
- });
152
- });
@@ -1,146 +0,0 @@
1
- /**
2
- * @license React
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
-
10
- /* eslint-disable max-len */
11
-
12
- 'use strict';
13
-
14
- (function(global, factory) {
15
- // eslint-disable-next-line no-unused-expressions
16
- typeof exports === 'object' && typeof module !== 'undefined'
17
- ? (module.exports = factory(require('react')))
18
- : typeof define === 'function' && define.amd // eslint-disable-line no-undef
19
- ? define(['react'], factory) // eslint-disable-line no-undef
20
- : (global.Scheduler = factory(global));
21
- })(this, function(global) {
22
- function unstable_now() {
23
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
24
- this,
25
- arguments
26
- );
27
- }
28
-
29
- function unstable_scheduleCallback() {
30
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleCallback.apply(
31
- this,
32
- arguments
33
- );
34
- }
35
-
36
- function unstable_cancelCallback() {
37
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelCallback.apply(
38
- this,
39
- arguments
40
- );
41
- }
42
-
43
- function unstable_shouldYield() {
44
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_shouldYield.apply(
45
- this,
46
- arguments
47
- );
48
- }
49
-
50
- function unstable_requestPaint() {
51
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_requestPaint.apply(
52
- this,
53
- arguments
54
- );
55
- }
56
-
57
- function unstable_runWithPriority() {
58
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_runWithPriority.apply(
59
- this,
60
- arguments
61
- );
62
- }
63
-
64
- function unstable_next() {
65
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply(
66
- this,
67
- arguments
68
- );
69
- }
70
-
71
- function unstable_wrapCallback() {
72
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply(
73
- this,
74
- arguments
75
- );
76
- }
77
-
78
- function unstable_getCurrentPriorityLevel() {
79
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getCurrentPriorityLevel.apply(
80
- this,
81
- arguments
82
- );
83
- }
84
-
85
- function unstable_getFirstCallbackNode() {
86
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply(
87
- this,
88
- arguments
89
- );
90
- }
91
-
92
- function unstable_pauseExecution() {
93
- return undefined;
94
- }
95
-
96
- function unstable_continueExecution() {
97
- return undefined;
98
- }
99
-
100
- function unstable_forceFrameRate() {
101
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_forceFrameRate.apply(
102
- this,
103
- arguments
104
- );
105
- }
106
-
107
- return Object.freeze({
108
- unstable_now: unstable_now,
109
- unstable_scheduleCallback: unstable_scheduleCallback,
110
- unstable_cancelCallback: unstable_cancelCallback,
111
- unstable_shouldYield: unstable_shouldYield,
112
- unstable_requestPaint: unstable_requestPaint,
113
- unstable_runWithPriority: unstable_runWithPriority,
114
- unstable_next: unstable_next,
115
- unstable_wrapCallback: unstable_wrapCallback,
116
- unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
117
- unstable_continueExecution: unstable_continueExecution,
118
- unstable_pauseExecution: unstable_pauseExecution,
119
- unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
120
- unstable_forceFrameRate: unstable_forceFrameRate,
121
- get unstable_IdlePriority() {
122
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
123
- .Scheduler.unstable_IdlePriority;
124
- },
125
- get unstable_ImmediatePriority() {
126
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
127
- .Scheduler.unstable_ImmediatePriority;
128
- },
129
- get unstable_LowPriority() {
130
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
131
- .Scheduler.unstable_LowPriority;
132
- },
133
- get unstable_NormalPriority() {
134
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
135
- .Scheduler.unstable_NormalPriority;
136
- },
137
- get unstable_UserBlockingPriority() {
138
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
139
- .Scheduler.unstable_UserBlockingPriority;
140
- },
141
- get unstable_Profiling() {
142
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
143
- .Scheduler.unstable_Profiling;
144
- },
145
- });
146
- });
@@ -1,146 +0,0 @@
1
- /**
2
- * @license React
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
-
10
- /* eslint-disable max-len */
11
-
12
- 'use strict';
13
-
14
- (function(global, factory) {
15
- // eslint-disable-next-line no-unused-expressions
16
- typeof exports === 'object' && typeof module !== 'undefined'
17
- ? (module.exports = factory(require('react')))
18
- : typeof define === 'function' && define.amd // eslint-disable-line no-undef
19
- ? define(['react'], factory) // eslint-disable-line no-undef
20
- : (global.Scheduler = factory(global));
21
- })(this, function(global) {
22
- function unstable_now() {
23
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
24
- this,
25
- arguments
26
- );
27
- }
28
-
29
- function unstable_scheduleCallback() {
30
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleCallback.apply(
31
- this,
32
- arguments
33
- );
34
- }
35
-
36
- function unstable_cancelCallback() {
37
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelCallback.apply(
38
- this,
39
- arguments
40
- );
41
- }
42
-
43
- function unstable_shouldYield() {
44
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_shouldYield.apply(
45
- this,
46
- arguments
47
- );
48
- }
49
-
50
- function unstable_requestPaint() {
51
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_requestPaint.apply(
52
- this,
53
- arguments
54
- );
55
- }
56
-
57
- function unstable_runWithPriority() {
58
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_runWithPriority.apply(
59
- this,
60
- arguments
61
- );
62
- }
63
-
64
- function unstable_next() {
65
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply(
66
- this,
67
- arguments
68
- );
69
- }
70
-
71
- function unstable_wrapCallback() {
72
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply(
73
- this,
74
- arguments
75
- );
76
- }
77
-
78
- function unstable_getCurrentPriorityLevel() {
79
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getCurrentPriorityLevel.apply(
80
- this,
81
- arguments
82
- );
83
- }
84
-
85
- function unstable_getFirstCallbackNode() {
86
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply(
87
- this,
88
- arguments
89
- );
90
- }
91
-
92
- function unstable_pauseExecution() {
93
- return undefined;
94
- }
95
-
96
- function unstable_continueExecution() {
97
- return undefined;
98
- }
99
-
100
- function unstable_forceFrameRate() {
101
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_forceFrameRate.apply(
102
- this,
103
- arguments
104
- );
105
- }
106
-
107
- return Object.freeze({
108
- unstable_now: unstable_now,
109
- unstable_scheduleCallback: unstable_scheduleCallback,
110
- unstable_cancelCallback: unstable_cancelCallback,
111
- unstable_shouldYield: unstable_shouldYield,
112
- unstable_requestPaint: unstable_requestPaint,
113
- unstable_runWithPriority: unstable_runWithPriority,
114
- unstable_next: unstable_next,
115
- unstable_wrapCallback: unstable_wrapCallback,
116
- unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
117
- unstable_continueExecution: unstable_continueExecution,
118
- unstable_pauseExecution: unstable_pauseExecution,
119
- unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
120
- unstable_forceFrameRate: unstable_forceFrameRate,
121
- get unstable_IdlePriority() {
122
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
123
- .Scheduler.unstable_IdlePriority;
124
- },
125
- get unstable_ImmediatePriority() {
126
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
127
- .Scheduler.unstable_ImmediatePriority;
128
- },
129
- get unstable_LowPriority() {
130
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
131
- .Scheduler.unstable_LowPriority;
132
- },
133
- get unstable_NormalPriority() {
134
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
135
- .Scheduler.unstable_NormalPriority;
136
- },
137
- get unstable_UserBlockingPriority() {
138
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
139
- .Scheduler.unstable_UserBlockingPriority;
140
- },
141
- get unstable_Profiling() {
142
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
143
- .Scheduler.unstable_Profiling;
144
- },
145
- });
146
- });
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/scheduler-unstable_mock.production.min.js');
5
- } else {
6
- module.exports = require('./cjs/scheduler-unstable_mock.development.js');
7
- }
@@ -1,110 +0,0 @@
1
- {
2
- "name": "example",
3
- "version": "1.0.0",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "example",
9
- "version": "1.0.0",
10
- "license": "ISC",
11
- "dependencies": {
12
- "react": "^16.14.0",
13
- "react-dom": "^16.14.0"
14
- },
15
- "devDependencies": {
16
- "react-test-renderer": "16.14.0"
17
- }
18
- },
19
- "node_modules/js-tokens": {
20
- "version": "4.0.0",
21
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
22
- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
23
- },
24
- "node_modules/loose-envify": {
25
- "version": "1.4.0",
26
- "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
27
- "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
28
- "dependencies": {
29
- "js-tokens": "^3.0.0 || ^4.0.0"
30
- },
31
- "bin": {
32
- "loose-envify": "cli.js"
33
- }
34
- },
35
- "node_modules/object-assign": {
36
- "version": "4.1.1",
37
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
38
- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
39
- "engines": {
40
- "node": ">=0.10.0"
41
- }
42
- },
43
- "node_modules/prop-types": {
44
- "version": "15.8.1",
45
- "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
46
- "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
47
- "dependencies": {
48
- "loose-envify": "^1.4.0",
49
- "object-assign": "^4.1.1",
50
- "react-is": "^16.13.1"
51
- }
52
- },
53
- "node_modules/react": {
54
- "version": "16.14.0",
55
- "resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz",
56
- "integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==",
57
- "dependencies": {
58
- "loose-envify": "^1.1.0",
59
- "object-assign": "^4.1.1",
60
- "prop-types": "^15.6.2"
61
- },
62
- "engines": {
63
- "node": ">=0.10.0"
64
- }
65
- },
66
- "node_modules/react-dom": {
67
- "version": "16.14.0",
68
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz",
69
- "integrity": "sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==",
70
- "dependencies": {
71
- "loose-envify": "^1.1.0",
72
- "object-assign": "^4.1.1",
73
- "prop-types": "^15.6.2",
74
- "scheduler": "^0.19.1"
75
- },
76
- "peerDependencies": {
77
- "react": "^16.14.0"
78
- }
79
- },
80
- "node_modules/react-is": {
81
- "version": "16.13.1",
82
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
83
- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
84
- },
85
- "node_modules/react-test-renderer": {
86
- "version": "16.14.0",
87
- "resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-16.14.0.tgz",
88
- "integrity": "sha512-L8yPjqPE5CZO6rKsKXRO/rVPiaCOy0tQQJbC+UjPNlobl5mad59lvPjwFsQHTvL03caVDIVr9x9/OSgDe6I5Eg==",
89
- "dev": true,
90
- "dependencies": {
91
- "object-assign": "^4.1.1",
92
- "prop-types": "^15.6.2",
93
- "react-is": "^16.8.6",
94
- "scheduler": "^0.19.1"
95
- },
96
- "peerDependencies": {
97
- "react": "^16.14.0"
98
- }
99
- },
100
- "node_modules/scheduler": {
101
- "version": "0.19.1",
102
- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.19.1.tgz",
103
- "integrity": "sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==",
104
- "dependencies": {
105
- "loose-envify": "^1.1.0",
106
- "object-assign": "^4.1.1"
107
- }
108
- }
109
- }
110
- }
@@ -1,24 +0,0 @@
1
- {
2
- "name": "example",
3
- "version": "1.0.0",
4
- "description": "",
5
- "main": "webpack.prod.config.js",
6
- "scripts": {
7
- "test": "../bin/fedx-scripts.js jest ./src",
8
- "build": "../bin/fedx-scripts.js webpack",
9
- "lint": "../bin/fedx-scripts.js eslint . --ext .jsx,.js",
10
- "babel": "../bin/fedx-scripts.js babel src --out-dir dist/babel --source-maps --ignore **/*.test.jsx,**/*.test.js --copy-files",
11
- "start": "../bin/fedx-scripts.js webpack-dev-server",
12
- "serve": "../bin/fedx-scripts.js serve"
13
- },
14
- "keywords": [],
15
- "author": "",
16
- "license": "ISC",
17
- "dependencies": {
18
- "react": "^16.14.0",
19
- "react-dom": "^16.14.0"
20
- },
21
- "devDependencies": {
22
- "react-test-renderer": "16.14.0"
23
- }
24
- }
@@ -1,13 +0,0 @@
1
- <!doctype html>
2
- <html lang="en-us">
3
-
4
- <head>
5
- <title>Test</title>
6
- <link rel="shortcut icon" href="<%=htmlWebpackPlugin.options.FAVICON_URL%>" type="image/x-icon" />
7
- </head>
8
-
9
- <body>
10
- <div id="root"></div>
11
- </body>
12
-
13
- </html>
@@ -1,43 +0,0 @@
1
- import config from 'env.config';
2
- import Image from './Image';
3
- import appleUrl, { ReactComponent as Apple } from './apple.svg';
4
- import appleImg from './apple.jpg';
5
-
6
- import './style.scss';
7
-
8
- // eslint-disable-next-line react/function-component-definition
9
- export default function App() {
10
- const newEnglandApples = ['macintosh', 'granny smith'];
11
- const allApples = [...newEnglandApples, 'fuji', 'golden delicious'];
12
- return (
13
- <div>
14
- <h1>Test page</h1>
15
- <h2>SCSS parsing tests</h2>
16
- <h3>The Apples</h3> (&quot;The Apples&quot; should be red)
17
- <h2>ES6 parsing tests</h2>
18
- <ul>
19
- {allApples.map(apple => <li key={apple}>{apple}</li>)}
20
- </ul>
21
- <h2>JSX parsing tests</h2>
22
- <Apple style={{ width: '10rem' }} />
23
- <h2>TSX parsing tests</h2>
24
- <Image src={appleUrl} alt="appleFromTsx" style={{ width: '10rem' }} />
25
- <h2>Asset import tests</h2>
26
- <img src={appleUrl} alt="apple" style={{ width: '10rem' }} />
27
- <img src={appleUrl} alt="apple" style={{ width: '10rem' }} />
28
- <br />
29
- <img src={appleImg} alt="apple" style={{ width: '10rem' }} />
30
- <p>Photo by Louis Hansel @shotsoflouis on Unsplash</p>
31
- <h2>process.env tests</h2>
32
- <p>Test process.env variable: {process.env.TEST_VARIABLE}</p>
33
- <p>Non-existent process.env variable (nothing here is good): {process.env.I_AM_NOT_HERE}</p>
34
- <h2>env.config.js tests</h2>
35
- <p><span>env.config.js boolean test: </span>
36
- {config.FALSE_VALUE === false ? config.CORRECT_BOOL_VALUE : config.INCORRECT_BOOL_VALUE}
37
- </p>
38
- <p>env.config.js integer test: {Number.isInteger(config.INTEGER_VALUE) ? 'It was an integer. Great.' : 'It was not an integer! Why not? '}</p>
39
- <h2>Right-to-left language handling tests</h2>
40
- <p className="text-align-right">I&apos;m aligned right, but left in RTL.</p>
41
- </div>
42
- );
43
- }
@@ -1,11 +0,0 @@
1
- /* eslint-disable global-require */
2
- import renderer from 'react-test-renderer';
3
- import App from './App';
4
-
5
- describe('Basic test', () => {
6
- it('should render', () => {
7
- const Component = <App />;
8
- const tree = renderer.create(Component);
9
- expect(tree.toJSON()).toMatchSnapshot();
10
- });
11
- });