Commit 942cf623 authored by Joe Haddad's avatar Joe Haddad Committed by Dan Abramov
Browse files

Adds tests for the overlay (#2118)

* Add get-source-map tests

* Fixtures shouldn't be formatted

* Add mapper tests

* Add stack-frame tests

* Add more util tests

* Add unmapper tests

* Add parser tests

* Switch to snapshots

* Snapshot more
parent 69590775
main 3.x add-babel-plugin-optimize-react amyrlam-patch-1 dependabot/npm_and_yarn/follow-redirects-1.14.8 dependabot/npm_and_yarn/nanoid-3.3.1 dependabot/npm_and_yarn/prismjs-1.27.0 feat/audits github-actions-ci github/fork/AMS777/patch-3 github/fork/Aghassi/patch-1 github/fork/AkiJoey/master github/fork/AlexWebLab/patch-1 github/fork/Amila-Rukshan/patch-1 github/fork/AmyShackles/patch-1 github/fork/Andarist/fix/manifest-handle-all-entrypoints github/fork/Andarist/improve-code-comments github/fork/Andarist/patch-2 github/fork/Andarist/remove-babel-core-from-preset-deps github/fork/AriPerkkio/pr/fix-slow-app-creation github/fork/AryaAnish121/patch-1 github/fork/AshmeetSingh987/master github/fork/Ayushparikh-code/patch-1 github/fork/BenBonno/main github/fork/Bluefitdev/master github/fork/Bnaya/webpack-ignore-irrelevant-warnings github/fork/BogdanDor/remove-webpackHotDevClient github/fork/BrainEno/yakai911 github/fork/CarlRibbegaardh/feature/filename github/fork/CarlRibbegaardh/feature/tsconfig-config github/fork/CharlesStover/001 github/fork/ChithurajMsys/patch-1 github/fork/CommanderRoot/refactor/rm-deprecated-substr github/fork/DanielBailey-web/patch-1 github/fork/DavidKessel/website-update github/fork/DemonHa/add-fullySpecified-cofiguration github/fork/Ekwuno/add-cloudflare-pages-to-deploy github/fork/Emanisay/emanisay27-patch-2 github/fork/ErfanMirzapour/master github/fork/FeatherBlack/master github/fork/Ferri0/patch-1 github/fork/FezVrasta/feat/profile-env-variable github/fork/FezVrasta/patch-5 github/fork/FezVrasta/patch-6 github/fork/FezVrasta/wp5-worker-url-plugin github/fork/FloydJohn/fix-browser-env github/fork/FontEndArt/main github/fork/Garciaa94/patch-1 github/fork/GiaKhai/patch-1 github/fork/HAMED-NIYAZI/patch-1 github/fork/Haosik/patch-1 github/fork/HewlettPackard/main github/fork/HollyPony/main github/fork/HugoGEORGET/fix-proxy-middleware-documentation github/fork/HumbertoL/fix/remove-extra-period github/fork/JLHwung/fix-failing-master github/fork/Jarryxin/main github/fork/Jarryxin/wp5 github/fork/JensColman/patch-1 github/fork/Jhinpan/patch-1 github/fork/Jiacheng787/main github/fork/KennethSundqvist/mocking-node-modules github/fork/Kingwl/InlineChunkHtmlPlugin_defer github/fork/KurtGokhan/lint-command github/fork/Lesliemicheal111/patch-1 github/fork/LinusU/disable-tsc-plugin github/fork/M-Usman-Tahir/patch-1 github/fork/M779-star/patch-1 github/fork/Manc/patch github/fork/ManishINN/main github/fork/MarcusMorba/patch-3 github/fork/MartijnHols/fix/12044-dont-install-tailwindcss github/fork/Methuselah96/add-missing-peer-dependencies github/fork/MichaelDeBoey/patch-1 github/fork/MichaelDeBoey/patch-2 github/fork/Mk-Etlinger/patch-2 github/fork/MozhganShafiee/main github/fork/Mrman/core-js-config-change github/fork/Nareshdhori/circleci-project-setup github/fork/NeoLegends/fix/create-element github/fork/NightWalker9/patch-2 github/fork/NoamGaash/patch-1 github/fork/PeteSchuster/patch-1 github/fork/Ph0enixKM/patch-1 github/fork/PranavSenthilnathan/setupProxyTs github/fork/Rahim-Chan/fix/filename github/fork/RakeshPotnuru/patch-1 github/fork/RomainTHD/main github/fork/Seokkitdo/patch-1 github/fork/SiegfriedEhret/patch-1 github/fork/Skyscanner/leop-317-sassfunction github/fork/SyedMuhammedBilal/patch-2 github/fork/SyedMuhammedBilal/patch-4 github/fork/TheAli711/main github/fork/TheLarkInn/feature/organize-config github/fork/TitusEfferian/titusefferian/docs/pre-render github/fork/TrySound/upgrade-svgr-6 github/fork/VNDRMKT/main github/fork/VoloshchenkoAl/babel-plugin-formatjs github/fork/WesCossick/fix-missing-build-error-paths github/fork/YehudaKremer/patch-1 github/fork/YuanXingH/fix/webpack-tsc-compile-on-error github/fork/ace4port/patch-1 github/fork/acusti/template-comment-typo-fix github/fork/adebiyi-al/docs/deployment github/fork/admindivyansh/patch-2 github/fork/adrielcodeco/main github/fork/aixfox/master github/fork/ajbogh/main github/fork/akolade011/dev github/fork/akuji1993/master github/fork/alexandr-g/deps/husky-v5 github/fork/alexkev/running-tests-recommended-wording github/fork/alexxyzeng/main github/fork/allanzi/patch-1 github/fork/amatissart/fix-webpack-config-glob github/fork/amcgee/feat-auto-publicpath github/fork/amehdaly/master github/fork/andrearota/master github/fork/andrzej-erli/patch-1 github/fork/ankitmadhwani24/main github/fork/annie-kat/patch-1 github/fork/antzshrek/master github/fork/anuragarwalkar/patch-1 github/fork/atefBB/patch-1 github/fork/await-ovo/fix-docs-add-typescript github/fork/await-ovo/fix-missing-postcss-plugins github/fork/aymans/patch-1 github/fork/ayush987goyal/pr/chunk-minsize github/fork/barionleg/amyrlam-patch-1 github/fork/barionleg/unpin-babel-loader github/fork/bbrk24/main github/fork/bdenhollander/patch-1 github/fork/behnammodi/total-size github/fork/benjaminr-ps/add-wds-socket-protocol github/fork/benjaminr-ps/patch-1 github/fork/bhardwajhimanshu219/svgr-webpack-version-upgrade github/fork/binary-person/patch-1 github/fork/bkrausz/patch-1 github/fork/bluenote10/bugfix/attempt_to_fix_custom_loader_race_condition github/fork/bmuenzenmeyer/master github/fork/bradjones1/patch-1 github/fork/bradoyler/patch-1 github/fork/breyed/patch-1 github/fork/british-council/fix/yarn-link-lerna github/fork/buuug7/patch-1 github/fork/c-w/remove-style-loader github/fork/camjackson/master github/fork/candrews/dropconsole github/fork/carlosparreno/v5-fix-splitchunks-issue-prod-build github/fork/caub/patch-1 github/fork/ceithir/editorconfig github/fork/chadwithuhc/patch-1 github/fork/challet/patch-launchEditor github/fork/cheesestringer/fix-package-lock-json github/fork/cheesestringer/update-measuring-performance github/fork/christopher-francisco/dart-sass github/fork/chybisov/patch-1 github/fork/cindyledev/issue-7886 github/fork/codybentson2/patch-1 github/fork/cprecioso/no-svgr-url-import github/fork/cszo/homepage-fix github/fork/cybermerlin/hotfix/jest_upgrade github/fork/daceynolan/typescript-ambiet-modules-docs github/fork/dan-valentine/Allow-Proxy-to-be-set-by-environment-variables github/fork/danconnell/react-error-overlay-nonce github/fork/danielmahon/master github/fork/danvc/all_add_multiple_entry_points_1084 github/fork/darthmaim/patch-1 github/fork/daschaa/main github/fork/daylesalmon/patch-1 github/fork/dblazheski96/entry-path-variable github/fork/ddzz/gha-update github/fork/dedo1911/main github/fork/demurgos/fix/12625-ts-node16 github/fork/demurgos/fix/7147-ts-composite github/fork/derbyshire10/main github/fork/devinrhode2/patch-1 github/fork/dilanx/patch-1 github/fork/donnygitsome/main github/fork/draculapile/fix/babel-parser-error github/fork/dtran320/patch-1 github/fork/dylan8902/patch-1 github/fork/easyandme/patch-1 github/fork/eckdanny/docs/add-skip-preflight-check-docs github/fork/elrumordelaluz/patch-1 github/fork/elrumordelaluz/patch-2 github/fork/email2vimalraj/master github/fork/entropitor/fix-no-emit github/fork/etalab/cra-envs github/fork/eventualbuddha/add-@babel/plugin-proposal-private-property-in-object-dependency github/fork/fanny/master github/fork/fivecar/cache_clear_docs github/fork/fkirc/fix_slow_recompile_times github/fork/forana/clear-console github/fork/fupengl/master github/fork/gabrieldejesus/patch-1 github/fork/gaearon/hot-reload-again github/fork/gdethier/main github/fork/geewoo94/config/tailwind github/fork/gergelypap/fix/remove-noopener github/fork/getzelus/patch-1 github/fork/giovannibenussi/loading-indicator github/fork/giovannibenussi/master github/fork/gminova/fix/remove-redundant-imports github/fork/happymonday/master github/fork/hasanayan/module-federation github/fork/herbievine/patch-1 github/fork/hermansje/feat/jsxImportSource github/fork/heygrady/preset-env-modern github/fork/hoangle4/patch-1 github/fork/huyenltnguyen/patch-1 github/fork/iamayushdas/codeblocks github/fork/iamstarkov/patch-1 github/fork/iansu/drop-node-14 github/fork/iansu/node-17-ci github/fork/iansu/worker-loader github/fork/improper/bugfix/version-check-breaks-file-path-usage github/fork/ioloie/enable-write-to-disk github/fork/ivanmcgregor/patch-1 github/fork/izzygld/patch-1 github/fork/jaime-ez/patch-1 github/fork/jakejakeho/patch-1 github/fork/jamescostian/improve-setup-proxy-extension-support github/fork/jamescostian/improve_ts_extension_support github/fork/jameswithers89/patch-1 github/fork/jamidwyer/fix/error-overlay-iframe-axe github/fork/jamirvin/main github/fork/jayeshmann/patch-1 github/fork/jean-smaug/bump-jest-in-react-scripts github/fork/jmgregory/stable-env-var-order github/fork/joeldenning/cjs-support github/fork/joelparkerhenderson/main github/fork/joey-laminar/patch-1 github/fork/johnnyreilly/patch-1 github/fork/jomarquez21/avoid-casting-on-root-element github/fork/jonatanklosko/jk-stdin-close-exit github/fork/joostlubach/joostlubach-open-browser github/fork/judycodes/patch-1 github/fork/jwalton9/main github/fork/karlhorky/patch-1 github/fork/karlhorky/patch-2 github/fork/kavinkuma6/patch-1 github/fork/kaykayehnn/fix-react-error-overlay-ts-errors github/fork/kayuapi/patch-1 github/fork/khalidwaleed0/patch-1 github/fork/kiancross/sass-loader-peer-dep github/fork/kidroca/patch-1 github/fork/kingsmendv/patch-for-pnp github/fork/kitsunekyo/feat/allow-postcss-config-override github/fork/kixxer01/patch-1 github/fork/knopp10000/patch-1 github/fork/kombucha/2378-lint-warning-most-recent-file github/fork/kopyl/patch-1 github/fork/krotovic/master github/fork/krreet/swap-babel-out-with-swc-in-start-build-and-test-2 github/fork/larixer/main github/fork/laxsuryavanshi/main github/fork/ldeninski/bugfix/add-missing-cjs-extension-to-webpack-config github/fork/levrik/editor-detection-wsl github/fork/lfshr/issue-8596/fix-win32-resolve-url-loader github/fork/limal/patch-1 github/fork/llshicc/master github/fork/louy2/patch-1 github/fork/luanorlandi/docs/react-scripts-dependency github/fork/lucabattistini/feat/webpack-svgr-loader github/fork/lucasff/patch-1 github/fork/ludofischer/reduce-noise github/fork/luffy84217/fix-webpack-dev-server-deprecated-option github/fork/luwuer/logo-cannot-be-selected github/fork/luxp/master github/fork/macjabeth/jonathan-picazo github/fork/maksimdegtyarev/remove-react-import github/fork/manavm1990/main github/fork/maoqxxmm/fix/typo github/fork/marcofugaro/cache-directory-jest github/fork/marvelsrp/hotfix-lint-treads github/fork/mcfedr/cjs-support github/fork/mdevils/update-html-entities-with-flow-types github/fork/merceyz/merceyz/fix/missing-dependencies github/fork/milesibastos/patch-1 github/fork/mkarajohn/fix-absolute-paths-in-jest-config-modulePaths github/fork/mmazzarolo/patch-1 github/fork/modernizer-bot/explicit-path-5 github/fork/mohd-akram/add-eslint-context-rule github/fork/morellodev/patch-1 github/fork/mrduguo/main github/fork/mrmckeb/feature/verify-git-package-names github/fork/msaaddev/primary-branch-main github/fork/mwangel/master github/fork/n6g7/custom-host-port github/fork/nategiraudeau/patch-1 github/fork/nattwasm/main github/fork/nfriend/nfriend-add-_redirects-file github/fork/nicgirault/patch-1 github/fork/nickmccurdy/add-prettier-config-to-app github/fork/nickmccurdy/feature/remove-remaining-react-imports github/fork/nickmccurdy/move-e2e-tests-to-github-actions github/fork/nickmccurdy/patch-1 github/fork/nickmccurdy/patch-2 github/fork/nickmccurdy/replace-npx github/fork/nickmccurdy/revert-web-vitals github/fork/nico-martin/manifets-json-to-serviceworker github/fork/nnmax/fix/throwAnUnknowError github/fork/nvh95/file-transform github/fork/omar-bakhsh/patch-1 github/fork/oparaskos/patch-1 github/fork/opencollective/opencollective github/fork/p-avital/patch-2 github/fork/p12tic/fix-dev-server-proxy-broken-origin-header github/fork/pan-alexey/main github/fork/paramt/patch-2 github/fork/pdsouza/patch-1 github/fork/pedr0ni/main github/fork/pedro-demeu/patch-1 github/fork/pedromello/patch-1 github/fork/penx/patch-3 github/fork/ph-fritsche/update-template github/fork/phated/phated/postcss-loader-upgrade github/fork/philn5d-ar/patch-1 github/fork/pnarielwala/patch-1 github/fork/pradhul-dev/patch-1 github/fork/prichodko/feat/modern github/fork/priyankgandhi/patch-1 github/fork/proflayton/brandon/add-no-bin-link-option github/fork/pstrh/pr/increase-css-module-hash-uniqueness github/fork/purelledhand/feat/support-disable-incremental-build github/fork/pushred/resolve-url-loader-v5 github/fork/puxiao/main github/fork/qubbit/patch-1 github/fork/raix/swap-babel-out-with-swc-in-start-build-and-test github/fork/raix/v5-add-back-support-for-node-builtins github/fork/raix/v5-add-react-runtime-aliases github/fork/raix/v5-fix-react-error-overlay-build github/fork/raix/v5-fix-split-chunks-issue-prod-build github/fork/rannn505/patch-1 github/fork/redbmk/full-homepage-url github/fork/revolunet/patch-1 github/fork/rgbutov/patch-2 github/fork/rheh/main github/fork/rluvaton/use-module-ids github/fork/rojo20/react-testing-library-docs github/fork/rpivo/master github/fork/rreckonerr/patch-1 github/fork/rsylvian/patch-1 github/fork/ruckc/websocketurl github/fork/ryo-kagawa/doc-troubleshooting github/fork/ryota-murakami/feat/disableModuleScopePlugin github/fork/ryota-murakami/fix/format github/fork/sashashura/patch-1 github/fork/saurabhjdas786/patch-1 github/fork/saurabhjdas786/patch-2 github/fork/sbindass-deal/patch-1 github/fork/schalkventer/patch-1 github/fork/scottlamb/pr-print-stack github/fork/segheysens/main github/fork/serghei77/patch-1 github/fork/serranom/patch-1 github/fork/sheepsteak/paths github/fork/sheerun/wasm github/fork/shfshanyue/fix-inline-chunk github/fork/shhnjk/main github/fork/shian15810/no-const-enum github/fork/siddhantvirus/master github/fork/siddharthborderwala/patch-1 github/fork/siddtheone/patch-1 github/fork/silvareal/patch-1 github/fork/skoging/patch-2 github/fork/sumanthratna/image-optimization2 github/fork/sunil-sharma-999/main github/fork/svenliebig/master github/fork/swayamTA/test_branch github/fork/tanify/patch-1 github/fork/tanvirstreame/fix-project-directory github/fork/tanvirstreame/update-jest github/fork/tanvirstreame/update-type github/fork/tarikhamilton/patch-1 github/fork/tcope25/patch-1 github/fork/teemezzy/patch-2 github/fork/testower/patch-1 github/fork/tetedacier/patch-1 github/fork/textbook/dont-lint-deps github/fork/th13vn/main github/fork/thexpand/patch-1 github/fork/thisgeek/patch-1 github/fork/tmclo/main github/fork/tobiasbueschel/docs/docusaurus-readme github/fork/tobiasbueschel/master github/fork/tobiasbueschel/refactor/const github/fork/tomvalorsa/patch-1 github/fork/treuherz/main github/fork/trueadm/add-babel-plugin-optimize-react github/fork/unclechu/sandbox/wenzel/customizable-proxy-env-var github/fork/user7564/main github/fork/veltman/unambiguous-sourcetype github/fork/vikr01/fix/babel-env github/fork/viswa84/patch-1 github/fork/vlio20/patch-1 github/fork/webbertakken/patch-1 github/fork/wozzo/master github/fork/wsergent/patch-1 github/fork/xdiegors/patch-2 github/fork/xiaoxiangmoe/master github/fork/xtech-guru/add-less-support github/fork/yamankatby/patch-2 github/fork/yanneves/feature/no-restricted-globals github/fork/yicheny/fix_webpack5_cache_invalidation github/fork/ylemkimon/allowed-hosts github/fork/yvettep321/wp5 github/fork/zalox/master github/fork/zamarawka/feat/css-loacal-ident github/fork/zanemayo/patch-1 github/fork/zenotsai/mr/main/fix_build_cache github/fork/zhaomengfan/main github/fork/zhixiaoqiang/feature/react-dev-utils-export-guessEditor github/fork/zhoujingchao/main github/fork/zingbretsen/mdx-webpack-bugfix github/fork/zjffun/master lk/refactor-tests unpin-babel-loader wp5 v5.0.1 v5.0.0 v4.0.3 v4.0.2 v4.0.1 v4.0.0 v3.4.4 v3.4.3 v3.4.2 v3.4.1 v3.4.0 v3.3.1 v3.3.0 v3.2.0 v3.1.2 v3.1.1 v3.1.0 v3.0.1 v3.0.0 v2.1.8 v2.1.7 v2.1.6 v2.1.5 v2.1.4 v2.1.3 v2.1.2 v2.1.1 v2.1.0 v2.0.5 v2.0.4 v2.0.3 v1.1.5 v1.1.4 v1.1.3 v1.1.2 v1.1.1 v1.1.0 v1.0.17 v1.0.16 v1.0.15 v1.0.13 v1.0.12 v1.0.11 v1.0.10 v1.0.9 v1.0.8 v1.0.7 v1.0.6 v1.0.5 v1.0.4 v1.0.3 v1.0.2 v1.0.1 v1.0.0 reset react-scripts@5.0.1 react-scripts@5.0.0 react-scripts@4.0.3 react-scripts@4.0.2 react-scripts@4.0.1 react-scripts@4.0.0 react-scripts@3.4.1 react-scripts@3.4.0 react-scripts@3.3.1 react-scripts@3.3.0 react-scripts@3.2.0 react-scripts@3.1.2 react-scripts@3.1.1 react-scripts@3.1.0 react-scripts@3.0.1 react-scripts@3.0.0 react-scripts@2.1.8 react-scripts@2.1.7 react-scripts@2.1.6 react-scripts@2.1.5 react-scripts@2.1.4 react-scripts@2.1.3 react-scripts@2.1.2 react-scripts@2.1.1 react-scripts@2.1.0 react-scripts@2.0.4 react-scripts@2.0.3 react-scripts@2.0.2 react-scripts@2.0.1 react-scripts@2.0.0 react-scripts@1.1.4 react-scripts@1.1.3 react-scripts@1.1.2 react-scripts@1.1.1 react-scripts@1.1.0 react-scripts@1.0.17 react-scripts@1.0.16 react-scripts@1.0.15 react-scripts@1.0.14 react-scripts@1.0.13 react-scripts@1.0.12 react-scripts@1.0.11 react-scripts@1.0.10 react-scripts@1.0.9 react-scripts@1.0.8 react-scripts@1.0.7 react-scripts@1.0.6 react-scripts@1.0.5 react-scripts@1.0.4 react-scripts@1.0.3 react-scripts@1.0.2 react-scripts@1.0.1 react-scripts@1.0.0 react-error-overlay@6.0.11 react-error-overlay@6.0.10 react-error-overlay@6.0.9 react-error-overlay@6.0.8 react-error-overlay@6.0.7 react-error-overlay@6.0.6 react-error-overlay@6.0.5 react-error-overlay@6.0.4 react-error-overlay@6.0.3 react-error-overlay@6.0.2 react-error-overlay@6.0.1 react-error-overlay@6.0.0 react-error-overlay@5.1.6 react-error-overlay@5.1.5 react-error-overlay@5.1.4 react-error-overlay@5.1.3 react-error-overlay@5.1.2 react-error-overlay@5.1.1 react-error-overlay@5.1.0 react-error-overlay@5.0.6 react-error-overlay@5.0.4 react-error-overlay@5.0.3 react-error-overlay@5.0.2 react-error-overlay@5.0.1 react-error-overlay@4.0.0 react-error-overlay@3.0.0 react-error-overlay@2.0.2 react-error-overlay@2.0.1 react-error-overlay@2.0.0 react-error-overlay@1.0.10 react-error-overlay@1.0.9 react-error-overlay@1.0.8 react-error-overlay@1.0.7 react-error-overlay@1.0.6 react-error-overlay@1.0.5 react-error-overlay@1.0.4 react-error-overlay@1.0.3 react-error-overlay@1.0.2 react-error-overlay@1.0.1 react-error-overlay@1.0.0 react-dev-utils@12.0.1 react-dev-utils@12.0.0 react-dev-utils@11.0.3 react-dev-utils@11.0.2 react-dev-utils@11.0.1 react-dev-utils@11.0.0 react-dev-utils@10.2.1 react-dev-utils@10.2.0 react-dev-utils@10.1.0 react-dev-utils@10.0.0 react-dev-utils@9.1.0 react-dev-utils@9.0.4 react-dev-utils@9.0.3 react-dev-utils@9.0.2 react-dev-utils@9.0.1 react-dev-utils@9.0.0 react-dev-utils@8.0.0 react-dev-utils@7.0.5 react-dev-utils@7.0.4 react-dev-utils@7.0.3 react-dev-utils@7.0.2 react-dev-utils@7.0.1 react-dev-utils@7.0.0 react-dev-utils@6.1.1 react-dev-utils@6.1.0 react-dev-utils@6.0.4 react-dev-utils@6.0.3 react-dev-utils@6.0.2 react-dev-utils@6.0.1 react-dev-utils@5.0.1 react-dev-utils@5.0.0 react-dev-utils@4.2.1 react-dev-utils@4.2.0 react-dev-utils@4.1.0 react-dev-utils@4.0.1 react-dev-utils@4.0.0 react-dev-utils@3.1.0 react-dev-utils@3.0.2 react-dev-utils@3.0.1 react-dev-utils@3.0.0 react-dev-utils@2.0.1 react-dev-utils@2.0.0 react-dev-utils@1.0.3 react-dev-utils@1.0.2 react-dev-utils@1.0.1 react-dev-utils@1.0.0 react-app-polyfill@3.0.0 react-app-polyfill@2.0.0 react-app-polyfill@1.0.6 react-app-polyfill@1.0.5 react-app-polyfill@1.0.4 react-app-polyfill@1.0.3 react-app-polyfill@1.0.2 react-app-polyfill@1.0.1 react-app-polyfill@1.0.0 react-app-polyfill@0.2.2 react-app-polyfill@0.2.1 react-app-polyfill@0.2.0 react-app-polyfill@0.1.3 react-app-polyfill@0.1.2 react-app-polyfill@0.1.1 eslint-config-react-app@7.0.1 eslint-config-react-app@7.0.0 eslint-config-react-app@6.0.0 eslint-config-react-app@5.2.1 eslint-config-react-app@5.2.0 eslint-config-react-app@5.1.0 eslint-config-react-app@5.0.2 eslint-config-react-app@5.0.1 eslint-config-react-app@5.0.0 eslint-config-react-app@4.0.1 eslint-config-react-app@4.0.0 eslint-config-react-app@3.0.8 eslint-config-react-app@3.0.7 eslint-config-react-app@3.0.6 eslint-config-react-app@3.0.5 eslint-config-react-app@3.0.3 eslint-config-react-app@3.0.2 eslint-config-react-app@3.0.1 eslint-config-react-app@2.1.0 eslint-config-react-app@2.0.1 eslint-config-react-app@2.0.0 eslint-config-react-app@1.0.5 eslint-config-react-app@1.0.4 eslint-config-react-app@1.0.3 eslint-config-react-app@1.0.2 eslint-config-react-app@1.0.1 eslint-config-react-app@1.0.0 create-react-app@5.0.1 create-react-app@5.0.0 create-react-app@4.0.3 create-react-app@4.0.2 create-react-app@4.0.1 create-react-app@4.0.0 create-react-app@3.4.1 create-react-app@3.4.0 create-react-app@3.3.1 create-react-app@3.3.0 create-react-app@3.2.0 create-react-app@3.1.2 create-react-app@3.1.1 create-react-app@3.1.0 create-react-app@3.0.1 create-react-app@3.0.0 create-react-app@2.1.8 create-react-app@2.1.7 create-react-app@2.1.6 create-react-app@2.1.5 create-react-app@2.1.4 create-react-app@2.1.3 create-react-app@2.1.2 create-react-app@2.1.1 create-react-app@2.1.0 create-react-app@2.0.3 create-react-app@2.0.2 create-react-app@2.0.1 create-react-app@1.5.2 create-react-app@1.5.0 create-react-app@1.4.3 create-react-app@1.4.1 create-react-app@1.4.0 create-react-app@1.3.3 create-react-app@1.3.2 create-react-app@1.3.1 cra-template-typescript@1.2.0 cra-template-typescript@1.1.3 cra-template-typescript@1.1.2 cra-template-typescript@1.1.1 cra-template-typescript@1.1.0 cra-template-typescript@1.0.3 cra-template-typescript@1.0.2 cra-template-typescript@1.0.1 cra-template-typescript@1.0.0 cra-template@1.2.0 cra-template@1.1.3 cra-template@1.1.2 cra-template@1.1.1 cra-template@1.1.0 cra-template@1.0.3 cra-template@1.0.2 cra-template@1.0.1 cra-template@1.0.0 confusing-browser-globals@1.0.11 confusing-browser-globals@1.0.10 confusing-browser-globals@1.0.9 confusing-browser-globals@1.0.8 confusing-browser-globals@1.0.7 confusing-browser-globals@1.0.6 confusing-browser-globals@1.0.5 confusing-browser-globals@1.0.3 confusing-browser-globals@1.0.2 babel-preset-react-app@10.0.1 babel-preset-react-app@10.0.0 babel-preset-react-app@9.1.2 babel-preset-react-app@9.1.1 babel-preset-react-app@9.1.0 babel-preset-react-app@9.0.2 babel-preset-react-app@9.0.1 babel-preset-react-app@9.0.0 babel-preset-react-app@8.0.0 babel-preset-react-app@7.0.2 babel-preset-react-app@7.0.1 babel-preset-react-app@7.0.0 babel-preset-react-app@6.1.0 babel-preset-react-app@6.0.0 babel-preset-react-app@5.0.3 babel-preset-react-app@5.0.2 babel-preset-react-app@5.0.1 babel-preset-react-app@5.0.0 babel-preset-react-app@3.1.1 babel-preset-react-app@3.1.0 babel-preset-react-app@3.0.3 babel-preset-react-app@3.0.2 babel-preset-react-app@3.0.1 babel-preset-react-app@3.0.0 babel-plugin-named-asset-import@0.3.8 babel-plugin-named-asset-import@0.3.7 babel-plugin-named-asset-import@0.3.6 babel-plugin-named-asset-import@0.3.5 babel-plugin-named-asset-import@0.3.4 babel-plugin-named-asset-import@0.3.3 babel-plugin-named-asset-import@0.3.2 babel-plugin-named-asset-import@0.3.1 babel-plugin-named-asset-import@0.3.0 babel-plugin-named-asset-import@0.2.3 babel-plugin-named-asset-import@0.2.2 babel-plugin-named-asset-import@0.2.1
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 83900 additions and 1 deletion
+83900 -1
[
{
"functionName": "App.componentDidMount",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 26122,
"columnNumber": 21,
"_originalFunctionName": "App.componentDidMount",
"_originalFileName": "webpack:///packages/react-scripts/template/src/App.js",
"_originalLineNumber": 7,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 26119,
"content": " _createClass(App, [{",
"highlight": false
},
{
"lineNumber": 26120,
"content": " key: 'componentDidMount',",
"highlight": false
},
{
"lineNumber": 26121,
"content": " value: function componentDidMount() {",
"highlight": false
},
{
"lineNumber": 26122,
"content": " document.body.missing();",
"highlight": true
},
{
"lineNumber": 26123,
"content": " }",
"highlight": false
},
{
"lineNumber": 26124,
"content": " }, {",
"highlight": false
},
{
"lineNumber": 26125,
"content": " key: 'render',",
"highlight": false
}
],
"_originalScriptCode": [
{
"lineNumber": 4,
"content": "",
"highlight": false
},
{
"lineNumber": 5,
"content": "class App extends Component {",
"highlight": false
},
{
"lineNumber": 6,
"content": " componentDidMount() {",
"highlight": false
},
{
"lineNumber": 7,
"content": " document.body.missing()",
"highlight": true
},
{
"lineNumber": 8,
"content": " }",
"highlight": false
},
{
"lineNumber": 9,
"content": "",
"highlight": false
},
{
"lineNumber": 10,
"content": " render() {",
"highlight": false
}
]
}
]
[
{
"functionName": "App.componentDidMount",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 26122,
"columnNumber": 21,
"_originalFunctionName": "App.componentDidMount",
"_originalFileName": "webpack:///packages/react-scripts/template/src/App.js",
"_originalLineNumber": 7,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 26122,
"content": " document.body.missing();",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 7,
"content": " document.body.missing()",
"highlight": true
}
]
},
{
"functionName": null,
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 30091,
"columnNumber": 25,
"_originalFunctionName": null,
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/ReactCompositeComponent.js",
"_originalLineNumber": 265,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 30091,
"content": " return inst.componentDidMount();",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 265,
"content": " return inst.componentDidMount();",
"highlight": true
}
]
},
{
"functionName": "measureLifeCyclePerf",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 29901,
"columnNumber": 12,
"_originalFunctionName": "measureLifeCyclePerf",
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/ReactCompositeComponent.js",
"_originalLineNumber": 75,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 29901,
"content": " return fn();",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 75,
"content": " return fn();",
"highlight": true
}
]
},
{
"functionName": null,
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 30090,
"columnNumber": 11,
"_originalFunctionName": null,
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/ReactCompositeComponent.js",
"_originalLineNumber": 264,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 30090,
"content": " measureLifeCyclePerf(function () {",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 264,
"content": " measureLifeCyclePerf(function () {",
"highlight": true
}
]
},
{
"functionName": "CallbackQueue.notifyAll",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 13256,
"columnNumber": 22,
"_originalFunctionName": "CallbackQueue.notifyAll",
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/CallbackQueue.js",
"_originalLineNumber": 76,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 13256,
"content": " callbacks[i].call(contexts[i], arg);",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 76,
"content": " callbacks[i].call(contexts[i], arg);",
"highlight": true
}
]
},
{
"functionName": "ReactReconcileTransaction.close",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 35124,
"columnNumber": 26,
"_originalFunctionName": "ReactReconcileTransaction.close",
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/ReactReconcileTransaction.js",
"_originalLineNumber": 80,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 35124,
"content": " this.reactMountReady.notifyAll();",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 80,
"content": " this.reactMountReady.notifyAll();",
"highlight": true
}
]
},
{
"functionName": "ReactReconcileTransaction.closeAll",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 7390,
"columnNumber": 25,
"_originalFunctionName": "ReactReconcileTransaction.closeAll",
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/Transaction.js",
"_originalLineNumber": 206,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 7390,
"content": " wrapper.close.call(this, initData);",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 206,
"content": " wrapper.close.call(this, initData);",
"highlight": true
}
]
},
{
"functionName": "ReactReconcileTransaction.perform",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 7337,
"columnNumber": 16,
"_originalFunctionName": "ReactReconcileTransaction.perform",
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/Transaction.js",
"_originalLineNumber": 153,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 7337,
"content": " this.closeAll(0);",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 153,
"content": " this.closeAll(0);",
"highlight": true
}
]
},
{
"functionName": "batchedMountComponentIntoNode",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 14204,
"columnNumber": 15,
"_originalFunctionName": "batchedMountComponentIntoNode",
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/ReactMount.js",
"_originalLineNumber": 126,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 14204,
"content": " transaction.perform(mountComponentIntoNode, null, componentInstance, container, transaction, shouldReuseMarkup, context);",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 126,
"content": " transaction.perform(mountComponentIntoNode, null, componentInstance, container, transaction, shouldReuseMarkup, context);",
"highlight": true
}
]
},
{
"functionName": "ReactDefaultBatchingStrategyTransaction.perform",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 7324,
"columnNumber": 20,
"_originalFunctionName": "ReactDefaultBatchingStrategyTransaction.perform",
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/Transaction.js",
"_originalLineNumber": 140,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 7324,
"content": " ret = method.call(scope, a, b, c, d, e, f);",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 140,
"content": " ret = method.call(scope, a, b, c, d, e, f);",
"highlight": true
}
]
},
{
"functionName": "Object.batchedUpdates",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 33900,
"columnNumber": 26,
"_originalFunctionName": "Object.batchedUpdates",
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/ReactDefaultBatchingStrategy.js",
"_originalLineNumber": 62,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 33900,
"content": " return transaction.perform(callback, null, a, b, c, d, e);",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 62,
"content": " return transaction.perform(callback, null, a, b, c, d, e);",
"highlight": true
}
]
},
{
"functionName": "Object.batchedUpdates",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 2181,
"columnNumber": 27,
"_originalFunctionName": "Object.batchedUpdates",
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/ReactUpdates.js",
"_originalLineNumber": 97,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 2181,
"content": " return batchingStrategy.batchedUpdates(callback, a, b, c, d, e);",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 97,
"content": " return batchingStrategy.batchedUpdates(callback, a, b, c, d, e);",
"highlight": true
}
]
},
{
"functionName": "Object._renderNewRootComponent",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 14398,
"columnNumber": 18,
"_originalFunctionName": "Object._renderNewRootComponent",
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/ReactMount.js",
"_originalLineNumber": 320,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 14398,
"content": " ReactUpdates.batchedUpdates(batchedMountComponentIntoNode, componentInstance, container, shouldReuseMarkup, context);",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 320,
"content": " ReactUpdates.batchedUpdates(batchedMountComponentIntoNode, componentInstance, container, shouldReuseMarkup, context);",
"highlight": true
}
]
},
{
"functionName": "Object._renderSubtreeIntoContainer",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 14479,
"columnNumber": 32,
"_originalFunctionName": "Object._renderSubtreeIntoContainer",
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/ReactMount.js",
"_originalLineNumber": 401,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 14479,
"content": " var component = ReactMount._renderNewRootComponent(nextWrappedElement, container, shouldReuseMarkup, nextContext)._renderedComponent.getPublicInstance();",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 401,
"content": " var component = ReactMount._renderNewRootComponent(nextWrappedElement, container, shouldReuseMarkup, nextContext)._renderedComponent.getPublicInstance();",
"highlight": true
}
]
},
{
"functionName": "Object.render",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 14500,
"columnNumber": 23,
"_originalFunctionName": "Object.render",
"_originalFileName": "webpack:///packages/react-scripts/~/react-dom/lib/ReactMount.js",
"_originalLineNumber": 422,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 14500,
"content": " return ReactMount._renderSubtreeIntoContainer(null, nextElement, container, callback);",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 422,
"content": " return ReactMount._renderSubtreeIntoContainer(null, nextElement, container, callback);",
"highlight": true
}
]
},
{
"functionName": "Object.friendlySyntaxErrorLabel",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 17287,
"columnNumber": 20,
"_originalFunctionName": "Object.friendlySyntaxErrorLabel",
"_originalFileName": "webpack:///packages/react-scripts/template/src/index.js",
"_originalLineNumber": 6,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 17287,
"content": "_reactDom2.default.render(_react2.default.createElement(_App2.default, {",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 6,
"content": "ReactDOM.render(<App />, document.getElementById('root'));",
"highlight": true
}
]
},
{
"functionName": "__webpack_require__",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 660,
"columnNumber": 30,
"_originalFunctionName": "__webpack_require__",
"_originalFileName": "webpack:/webpack/bootstrap 623dfc2b357036468bb6",
"_originalLineNumber": 659,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 660,
"content": "/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 659,
"content": " \t\tmodules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));",
"highlight": true
}
]
},
{
"functionName": "fn",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 84,
"columnNumber": 20,
"_originalFunctionName": "fn",
"_originalFileName": "webpack:/webpack/bootstrap 623dfc2b357036468bb6",
"_originalLineNumber": 83,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 84,
"content": "/******/ \t\t\treturn __webpack_require__(request);\r",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 83,
"content": " \t\t\treturn __webpack_require__(request);\r",
"highlight": true
}
]
},
{
"functionName": "Object.<anonymous>",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 41219,
"columnNumber": 18,
"_originalFunctionName": "Object.<anonymous>",
"_originalFileName": null,
"_originalLineNumber": null,
"_originalColumnNumber": null,
"_scriptCode": [
{
"lineNumber": 41219,
"content": "module.exports = __webpack_require__(/*! /Users/joe/Documents/Development/OSS/create-react-app/packages/react-scripts/template/src/index.js */130);",
"highlight": true
}
],
"_originalScriptCode": []
},
{
"functionName": "__webpack_require__",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 660,
"columnNumber": 30,
"_originalFunctionName": "__webpack_require__",
"_originalFileName": "webpack:/webpack/bootstrap 623dfc2b357036468bb6",
"_originalLineNumber": 659,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 660,
"content": "/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 659,
"content": " \t\tmodules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));",
"highlight": true
}
]
},
{
"functionName": "validateFormat",
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 709,
"columnNumber": 39,
"_originalFunctionName": "validateFormat",
"_originalFileName": "webpack:/webpack/bootstrap 623dfc2b357036468bb6",
"_originalLineNumber": 708,
"_originalColumnNumber": 0,
"_scriptCode": [
{
"lineNumber": 709,
"content": "/******/ \treturn hotCreateRequire(302)(__webpack_require__.s = 302);",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 708,
"content": " \treturn hotCreateRequire(302)(__webpack_require__.s = 302);",
"highlight": true
}
]
},
{
"functionName": null,
"fileName": "http://localhost:3000/static/js/bundle.js",
"lineNumber": 712,
"columnNumber": 10,
"_originalFunctionName": null,
"_originalFileName": null,
"_originalLineNumber": null,
"_originalColumnNumber": null,
"_scriptCode": [
{
"lineNumber": 712,
"content": "/******/ ([",
"highlight": true
}
],
"_originalScriptCode": []
}
]
This diff is collapsed.
This diff is collapsed.
[
{
"functionName": "div",
"fileName": "/static/js/bundle.js",
"lineNumber": 41466,
"columnNumber": null,
"_originalFunctionName": "div",
"_originalFileName": "B.js",
"_originalLineNumber": 8,
"_originalColumnNumber": null,
"_scriptCode": [
{
"lineNumber": 41466,
"content": " 'div',",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 8,
"content": " <div>{v}</div>",
"highlight": true
}
]
},
{
"functionName": "B",
"fileName": "/static/js/bundle.js",
"lineNumber": 41395,
"columnNumber": null,
"_originalFunctionName": "B",
"_originalFileName": "A.js",
"_originalLineNumber": 6,
"_originalColumnNumber": null,
"_scriptCode": [
{
"lineNumber": 41395,
"content": " return _react2.default.createElement(_B2.default, {",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 6,
"content": " return (<B/>)",
"highlight": true
}
]
},
{
"functionName": "A",
"fileName": "/static/js/bundle.js",
"lineNumber": 26009,
"columnNumber": null,
"_originalFunctionName": "A",
"_originalFileName": "App.js",
"_originalLineNumber": 8,
"_originalColumnNumber": null,
"_scriptCode": [
{
"lineNumber": 26009,
"content": " var Ac = _react2.default.createElement(_A2.default, {",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 8,
"content": " const Ac = <A />",
"highlight": true
}
]
},
{
"functionName": "div",
"fileName": "/static/js/bundle.js",
"lineNumber": 26017,
"columnNumber": null,
"_originalFunctionName": "div",
"_originalFileName": "App.js",
"_originalLineNumber": 10,
"_originalColumnNumber": null,
"_scriptCode": [
{
"lineNumber": 26017,
"content": " 'div',",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 10,
"content": " <div className=\"App\">",
"highlight": true
}
]
},
{
"functionName": "App",
"fileName": "/static/js/bundle.js",
"lineNumber": 17412,
"columnNumber": null,
"_originalFunctionName": "App",
"_originalFileName": "index.js",
"_originalLineNumber": 6,
"_originalColumnNumber": null,
"_scriptCode": [
{
"lineNumber": 17412,
"content": "_reactDom2.default.render(_react2.default.createElement(_App2.default, {",
"highlight": true
}
],
"_originalScriptCode": [
{
"lineNumber": 6,
"content": "ReactDOM.render(<App />, document.getElementById('root'));",
"highlight": true
}
]
}
]
This diff is collapsed.
This diff is collapsed.
function foo() {
console.log('bar')
}
export { foo }
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
function foo() {
console.log('bar');
}
exports.foo = foo;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxTQUFTLEdBQVQsR0FBZTtBQUNiLFVBQVEsR0FBUixDQUFZLEtBQVo7QUFDRDs7UUFFUSxHLEdBQUEsRyIsImZpbGUiOiJzdGRvdXQiLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBmb28oKSB7XG4gIGNvbnNvbGUubG9nKCdiYXInKVxufVxuXG5leHBvcnQgeyBmb28gfVxuIl19
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
function foo() {
console.log('bar');
}
exports.foo = foo;
//# sourceMappingURL=data:application/json;charset=utf-8;base64vlq,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxTQUFTLEdBQVQsR0FBZTtBQUNiLFVBQVEsR0FBUixDQUFZLEtBQVo7QUFDRDs7UUFFUSxHLEdBQUEsRyIsImZpbGUiOiJzdGRvdXQiLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBmb28oKSB7XG4gIGNvbnNvbGUubG9nKCdiYXInKVxufVxuXG5leHBvcnQgeyBmb28gfVxuIl19
...@@ -48,7 +48,8 @@ ...@@ -48,7 +48,8 @@
"eslint-plugin-jsx-a11y": "^4.0.0", "eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-react": "^6.4.1", "eslint-plugin-react": "^6.4.1",
"flow-bin": "^0.46.0", "flow-bin": "^0.46.0",
"jest": "19.x" "jest": "19.x",
"jest-fetch-mock": "^1.1.1"
}, },
"jest": { "jest": {
"setupFiles": [ "setupFiles": [
......
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should return lines around from a string 1`] = `
Array [
ScriptLine {
"content": "two",
"highlight": false,
"lineNumber": 2,
},
ScriptLine {
"content": "three",
"highlight": false,
"lineNumber": 3,
},
ScriptLine {
"content": "four",
"highlight": true,
"lineNumber": 4,
},
ScriptLine {
"content": "five",
"highlight": false,
"lineNumber": 5,
},
ScriptLine {
"content": "six",
"highlight": false,
"lineNumber": 6,
},
]
`;
exports[`should return lines around from an array 1`] = `
Array [
ScriptLine {
"content": "two",
"highlight": false,
"lineNumber": 2,
},
ScriptLine {
"content": "three",
"highlight": false,
"lineNumber": 3,
},
ScriptLine {
"content": "four",
"highlight": true,
"lineNumber": 4,
},
ScriptLine {
"content": "five",
"highlight": false,
"lineNumber": 5,
},
ScriptLine {
"content": "six",
"highlight": false,
"lineNumber": 6,
},
]
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`script line shape 1`] = `
ScriptLine {
"content": "foobar",
"highlight": true,
"lineNumber": 5,
}
`;
exports[`script line to provide default highlight 1`] = `
ScriptLine {
"content": "foobar",
"highlight": false,
"lineNumber": 5,
}
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`proper empty shape 1`] = `
StackFrame {
"_originalColumnNumber": null,
"_originalFileName": null,
"_originalFunctionName": null,
"_originalLineNumber": null,
"_originalScriptCode": null,
"_scriptCode": null,
"columnNumber": null,
"fileName": null,
"functionName": null,
"lineNumber": null,
}
`;
exports[`proper full shape 1`] = `
StackFrame {
"_originalColumnNumber": 13,
"_originalFileName": "test.js",
"_originalFunctionName": "apple",
"_originalLineNumber": 37,
"_originalScriptCode": null,
"_scriptCode": null,
"columnNumber": 37,
"fileName": "b.js",
"functionName": "a",
"lineNumber": 13,
}
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`default context & unfound source 1`] = `
Array [
StackFrame {
"_originalColumnNumber": null,
"_originalFileName": "B.js",
"_originalFunctionName": "div",
"_originalLineNumber": 8,
"_originalScriptCode": Array [
ScriptLine {
"content": " return (",
"highlight": false,
"lineNumber": 5,
},
ScriptLine {
"content": " <div>",
"highlight": false,
"lineNumber": 6,
},
ScriptLine {
"content": " {[1, 2].map(v => (",
"highlight": false,
"lineNumber": 7,
},
ScriptLine {
"content": " <div>{v}</div>",
"highlight": true,
"lineNumber": 8,
},
ScriptLine {
"content": " ))}",
"highlight": false,
"lineNumber": 9,
},
ScriptLine {
"content": " </div>",
"highlight": false,
"lineNumber": 10,
},
ScriptLine {
"content": " )",
"highlight": false,
"lineNumber": 11,
},
],
"_scriptCode": Array [
ScriptLine {
"content": " },",
"highlight": false,
"lineNumber": 41463,
},
ScriptLine {
"content": " [1, 2].map(function (v) {",
"highlight": false,
"lineNumber": 41464,
},
ScriptLine {
"content": " return _react2.default.createElement(",
"highlight": false,
"lineNumber": 41465,
},
ScriptLine {
"content": " 'div',",
"highlight": true,
"lineNumber": 41466,
},
ScriptLine {
"content": " {",
"highlight": false,
"lineNumber": 41467,
},
ScriptLine {
"content": " __source: {",
"highlight": false,
"lineNumber": 41468,
},
ScriptLine {
"content": " fileName: _jsxFileName,",
"highlight": false,
"lineNumber": 41469,
},
],
"columnNumber": null,
"fileName": "/static/js/bundle.js",
"functionName": "div",
"lineNumber": 41466,
},
StackFrame {
"_originalColumnNumber": null,
"_originalFileName": "blabla.js",
"_originalFunctionName": "unknown",
"_originalLineNumber": 10,
"_originalScriptCode": null,
"_scriptCode": null,
"columnNumber": null,
"fileName": null,
"functionName": null,
"lineNumber": null,
},
]
`;
import { extractSourceMapUrl } from '../utils/getSourceMap';
test('extracts last source map directive', async () => {
const res = await extractSourceMapUrl(
`test.js`,
`//# sourceMappingURL=test.js.map\nconsole.log('a')\n//# sourceMappingURL=bundle.js.map`
);
expect(res).toBe('bundle.js.map');
});
test('errors when no source map', async () => {
expect.assertions(1);
const testFileName = 'test.js';
try {
await extractSourceMapUrl(
testFileName,
`console.log('hi')\n\nconsole.log('bye')`
);
} catch (e) {
expect(e).toBe(`Cannot find a source map directive for ${testFileName}.`);
}
});
import { getSourceMap } from '../utils/getSourceMap';
import fs from 'fs';
import { resolve } from 'path';
test('finds an external source map', async () => {
const file = fs
.readFileSync(resolve(__dirname, '../../fixtures/bundle.mjs'))
.toString('utf8');
fetch.mockResponseOnce(
fs
.readFileSync(resolve(__dirname, '../../fixtures/bundle.mjs.map'))
.toString('utf8')
);
const sm = await getSourceMap('/', file);
expect(sm.getOriginalPosition(26122, 21)).toEqual({
line: 7,
column: 0,
source: 'webpack:///packages/react-scripts/template/src/App.js',
});
});
test('find an inline source map', async () => {
const sourceName = 'test.js';
const file = fs
.readFileSync(resolve(__dirname, '../../fixtures/inline.mjs'))
.toString('utf8');
const fileO = fs
.readFileSync(resolve(__dirname, '../../fixtures/inline.es6.mjs'))
.toString('utf8');
const sm = await getSourceMap('/', file);
expect(sm.getSources()).toEqual([sourceName]);
expect(sm.getSource(sourceName)).toBe(fileO);
expect(sm.getGeneratedPosition(sourceName, 5, 10)).toEqual({
line: 10,
column: 8,
});
});
test('error on a source map with unsupported encoding', async () => {
expect.assertions(2);
const file = fs
.readFileSync(resolve(__dirname, '../../fixtures/junk-inline.mjs'))
.toString('utf8');
try {
await getSourceMap('/', file);
} catch (e) {
expect(e instanceof Error).toBe(true);
expect(e.message).toBe(
'Sorry, non-base64 inline source-map encoding is not supported.'
);
}
});
import { getLinesAround } from '../utils/getLinesAround';
const arr = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'];
test('should return lines around from a string', () => {
expect(getLinesAround(4, 2, arr)).toMatchSnapshot();
});
test('should return lines around from an array', () => {
expect(getLinesAround(4, 2, arr.join('\n'))).toMatchSnapshot();
});
import { map } from '../utils/mapper';
import { parse } from '../utils/parser';
import fs from 'fs';
import { resolve } from 'path';
test('basic error; 0 context', async () => {
expect.assertions(1);
const error = 'TypeError: document.body.missing is not a function\n at App.componentDidMount (http://localhost:3000/static/js/bundle.js:26122:21)\n at http://localhost:3000/static/js/bundle.js:30091:25\n at measureLifeCyclePerf (http://localhost:3000/static/js/bundle.js:29901:12)\n at http://localhost:3000/static/js/bundle.js:30090:11\n at CallbackQueue.notifyAll (http://localhost:3000/static/js/bundle.js:13256:22)\n at ReactReconcileTransaction.close (http://localhost:3000/static/js/bundle.js:35124:26)\n at ReactReconcileTransaction.closeAll (http://localhost:3000/static/js/bundle.js:7390:25)\n at ReactReconcileTransaction.perform (http://localhost:3000/static/js/bundle.js:7337:16)\n at batchedMountComponentIntoNode (http://localhost:3000/static/js/bundle.js:14204:15)\n at ReactDefaultBatchingStrategyTransaction.perform (http://localhost:3000/static/js/bundle.js:7324:20)\n at Object.batchedUpdates (http://localhost:3000/static/js/bundle.js:33900:26)\n at Object.batchedUpdates (http://localhost:3000/static/js/bundle.js:2181:27)\n at Object._renderNewRootComponent (http://localhost:3000/static/js/bundle.js:14398:18)\n at Object._renderSubtreeIntoContainer (http://localhost:3000/static/js/bundle.js:14479:32)\n at Object.render (http://localhost:3000/static/js/bundle.js:14500:23)\n at Object.friendlySyntaxErrorLabel (http://localhost:3000/static/js/bundle.js:17287:20)\n at __webpack_require__ (http://localhost:3000/static/js/bundle.js:660:30)\n at fn (http://localhost:3000/static/js/bundle.js:84:20)\n at Object.<anonymous> (http://localhost:3000/static/js/bundle.js:41219:18)\n at __webpack_require__ (http://localhost:3000/static/js/bundle.js:660:30)\n at validateFormat (http://localhost:3000/static/js/bundle.js:709:39)\n at http://localhost:3000/static/js/bundle.js:712:10';
fetch.mockResponseOnce(
fs
.readFileSync(resolve(__dirname, '../../fixtures/bundle.mjs'))
.toString('utf8')
);
fetch.mockResponseOnce(
fs
.readFileSync(resolve(__dirname, '../../fixtures/bundle.mjs.map'))
.toString('utf8')
);
const frames = await map(parse(error), 0);
expect(frames).toEqual(
JSON.parse(
fs
.readFileSync(resolve(__dirname, '../../fixtures/bundle.json'))
.toString('utf8')
)
);
});
test('default context (3)', async () => {
expect.assertions(1);
const error = 'TypeError: document.body.missing is not a function\n at App.componentDidMount (http://localhost:3000/static/js/bundle.js:26122:21)';
fetch.mockResponseOnce(
fs
.readFileSync(resolve(__dirname, '../../fixtures/bundle.mjs'))
.toString('utf8')
);
fetch.mockResponseOnce(
fs
.readFileSync(resolve(__dirname, '../../fixtures/bundle.mjs.map'))
.toString('utf8')
);
const frames = await map(parse(error));
expect(frames).toEqual(
JSON.parse(
fs
.readFileSync(resolve(__dirname, '../../fixtures/bundle-default.json'))
.toString('utf8')
)
);
});
test('bad comes back same', async () => {
expect.assertions(2);
const error = 'TypeError: document.body.missing is not a function\n at App.componentDidMount (A:1:2)';
const orig = parse(error);
expect(orig).toEqual([
{
_originalColumnNumber: null,
_originalFileName: null,
_originalFunctionName: null,
_originalLineNumber: null,
_originalScriptCode: null,
_scriptCode: null,
columnNumber: 2,
fileName: 'A',
functionName: 'App.componentDidMount',
lineNumber: 1,
},
]);
const frames = await map(orig);
expect(frames).toEqual(orig);
});
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`stack with eval 1`] = `
Array [
StackFrame {
"_originalColumnNumber": null,
"_originalFileName": null,
"_originalFunctionName": null,
"_originalLineNumber": null,
"_originalScriptCode": null,
"_scriptCode": null,
"columnNumber": 18,
"fileName": "file:///Users/joe/Documents/Development/OSS/stack-frame/index.html",
"functionName": "e",
"lineNumber": 25,
},
StackFrame {
"_originalColumnNumber": null,
"_originalFileName": null,
"_originalFunctionName": null,
"_originalLineNumber": null,
"_originalScriptCode": null,
"_scriptCode": null,
"columnNumber": 9,
"fileName": "file:///Users/joe/Documents/Development/OSS/stack-frame/index.html",
"functionName": "eval",
"lineNumber": 12,
},
StackFrame {
"_originalColumnNumber": null,
"_originalFileName": null,
"_originalFunctionName": null,
"_originalLineNumber": null,
"_originalScriptCode": null,
"_scriptCode": null,
"columnNumber": 9,
"fileName": "file:///Users/joe/Documents/Development/OSS/stack-frame/index.html",
"functionName": "a",
"lineNumber": 8,
},
StackFrame {
"_originalColumnNumber": null,
"_originalFileName": null,
"_originalFunctionName": null,
"_originalLineNumber": null,
"_originalScriptCode": null,
"_scriptCode": null,
"columnNumber": 7,
"fileName": "file:///Users/joe/Documents/Development/OSS/stack-frame/index.html",
"functionName": null,
"lineNumber": 32,
},
]
`;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment