rsnext/test/unit
tolfino bbde18f120
Fix false positive in isSerializable with shared references in arrays (#18232)
This replaces the seen set with a newly instantiated map of refs per
value in the array. This corrects the behavior that the refs map passed
into isSerializable contains only values along the path to the current
value: previously, because the refs map was shared among all values in
the array, this would trigger on instances such as:

```js
    const x = [];
    isSerializableProps('/', 'test', { arr: [x, [x]] });
```

... where the reference is shared but there is no cycle formed, as the
presence of elements is disjoint.

Fixes #18228.
2020-11-09 14:25:41 +00:00
..
fixtures Add More Configuration File Options (#9713) 2019-12-11 16:56:47 -05:00
babel-plugin-next-ssg-transform.test.js Fix message on getStaticPaths conflict with getServerSideProps (#13874) 2020-06-08 10:25:37 -04:00
find-config.test.js Add More Configuration File Options (#9713) 2019-12-11 16:56:47 -05:00
find-page-file.test.js [Fix] common misspelling errors (#15288) 2020-07-19 04:38:20 +00:00
get-node-options-without-inspect.test.js fix crash when NODE_OPTIONS includes --inspect-port (#12555) 2020-05-18 13:14:41 -04:00
getDisplayName.test.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
handles-incorrect-react.test.js docs: remove --save from npm install; avoid system-ui (#10252) 2020-01-27 08:35:12 -05:00
htmlescape.test.js Format missed files (#7464) 2019-05-29 18:19:32 -07:00
is-serializable-props.test.js Fix false positive in isSerializable with shared references in arrays (#18232) 2020-11-09 14:25:41 +00:00
link-rendering.test.js Make sure link can render without router (#15604) 2020-07-29 06:56:33 +00:00
loadGetInitialProps.test.js Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
mitt.test.js Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
next-babel-loader.test.js Add no-anon-default-export Babel lint rule (#14519) 2020-06-30 13:05:29 +00:00
next-babel.test.js Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
next-head-rendering.test.js Handle rendering next/head outside of Next.js (#14511) 2020-06-23 20:46:40 +00:00
next-server-utils.test.js [Fix] common misspelling errors (#15288) 2020-07-19 04:38:20 +00:00
oxford-comma.test.js refactor(typescript): extract preflight functions (#13510) 2020-05-28 23:39:46 +00:00
page-route-sorter.test.js Update routeKeys to handle non-word characters (#12801) 2020-06-16 13:49:13 +00:00
parse-relative-url.test.js Fix router not working on some protocol (#16650) 2020-11-03 16:18:02 -05:00
phaseConstants.test.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
recursive-copy.test.js Use the jest-circus test runner (#12974) 2020-05-16 16:56:06 -04:00
recursive-delete.test.js Exclude cache from being deleted in dev (#9448) 2019-11-19 10:40:13 -06:00
recursive-readdir.test.js Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
router-add-base-path.test.js fix(export): fallback to empty string for basePath (#11880) 2020-04-14 19:12:02 -04:00
webpack-config-overrides.test.js Run Fast Refresh Loader in Babel Loader (#15851) 2020-08-04 21:24:56 +00:00