|
| 1 | +<script> |
| 2 | + const knownHashes = { |
| 3 | + "-allow-uncaught": "running/cli/#--allow-uncaught", |
| 4 | + "-async-only-a": "running/cli/#--async-only--a", |
| 5 | + "-bail-b": "running/cli/#--bail--b", |
| 6 | + "-check-leaks": "running/cli/#--check-leaks", |
| 7 | + "-color-c-colors": "running/cli/#--color--c---colors", |
| 8 | + "-compilers": "running/cli/#--compilers", |
| 9 | + "-config-path": "running/cli/#--config-path", |
| 10 | + "-diff": "running/cli/#--diff", |
| 11 | + "-dry-run": "running/cli/#--dry-run", |
| 12 | + "-enable-source-maps": "running/cli/#--enable-source-maps", |
| 13 | + "-exit": "running/cli/#--exit", |
| 14 | + "-extension-ext": "running/cli/#--extension-ext", |
| 15 | + "-fail-zero": "running/cli/#--fail-zero", |
| 16 | + "-fgrep-string-f-string": "running/cli/#--fgrep-string--f-string", |
| 17 | + "-file-file": "running/cli/#--file-file", |
| 18 | + "-forbid-only": "running/cli/#--forbid-only", |
| 19 | + "-forbid-pending": "running/cli/#--forbid-pending", |
| 20 | + "-full-trace": "running/cli/#--full-trace", |
| 21 | + "-global-variable-name": "running/cli/#--global-variable-name", |
| 22 | + "-grep-regexp-g-regexp": "running/cli/#--grep-regexp--g-regexp", |
| 23 | + "-ignore-filedirectoryglob-exclude-filedirectoryglob": |
| 24 | + "running/cli/#--ignore-filedirectoryglob---exclude-filedirectoryglob", |
| 25 | + "-inline-diffs": "running/cli/#--inline-diffs", |
| 26 | + "-inspect-inspect-brk-inspect": |
| 27 | + "running/cli/#--inspect---inspect-brk-inspect", |
| 28 | + "-invert": "running/cli/#--invert", |
| 29 | + "-jobs-count-j-count": "running/cli/#--jobs-count--j-count", |
| 30 | + "-node-option-name-n-name": "running/cli/#--node-option-name--n-name", |
| 31 | + "-opts-path": "running/cli/#--opts-path", |
| 32 | + "-package-path": "running/cli/#--package-path", |
| 33 | + "-parallel-p": "running/cli/#--parallel--p", |
| 34 | + "-pass-on-failing-test-suite": "running/cli/#--pass-on-failing-test-suite", |
| 35 | + "-recursive": "running/cli/#--recursive", |
| 36 | + "-reporter-name-r-name": "running/cli/#--reporter-name--r-name", |
| 37 | + "-reporter-option-option-o-option-reporter-options-option": |
| 38 | + "running/cli/#--reporter-option-option--o-option---reporter-options-option", |
| 39 | + "-require-module-r-module": "running/cli/#--require-module--r-module", |
| 40 | + "-retries-n": "running/cli/#--retries-n", |
| 41 | + "-slow-ms-s-ms": "#--slow-ms--s-ms", |
| 42 | + "-sort-s": "running/cli/#--sort--s", |
| 43 | + "-timeout-ms-t-ms": "running/cli/#--timeout-ms--t-ms", |
| 44 | + "-ui-name-u-name": "running/cli/#--ui-name--u-name", |
| 45 | + "-watch-files-filedirectoryglob": |
| 46 | + "running/cli/#--watch-files-filedirectoryglob", |
| 47 | + "-watch-ignore-filedirectoryglob": |
| 48 | + "running/cli/#--watch-ignore-filedirectoryglob", |
| 49 | + "-watch-w": "running/cli/#--watch--w", |
| 50 | + "about-node-flags": "running/cli/#about-node-flags", |
| 51 | + "about-option-types": "running/cli/#about-option-types", |
| 52 | + "about-v8-flags": "running/cli/#about-v8-flags", |
| 53 | + "arrow-functions": "features/arrow-functions", |
| 54 | + assertions: "features/assertions", |
| 55 | + "asynchronous-code": "features/asynchronous-code", |
| 56 | + "asynchronous-hooks": "features/hooks/#asynchronous-hooks", |
| 57 | + "available-root-hooks": "features/root-hook-plugins/#available-root-hooks", |
| 58 | + backers: "#backers", |
| 59 | + "bail-is-best-effort": "features/parallel-mode/#bail-is-best-effort", |
| 60 | + bdd: "interfaces/bdd", |
| 61 | + "browser-configuration": "running/browsers/#browser-configuration", |
| 62 | + "browser-specific-options": "running/browsers/#browser-specific-options", |
| 63 | + "caveats-about-testing-in-parallel": |
| 64 | + "features/parallel-mode/#caveats-about-testing-in-parallel", |
| 65 | + "command-line-usage": "running/cli", |
| 66 | + "configuration-format": "running/configuring/#configuration-format", |
| 67 | + "configuring-mocha-nodejs": "running/configuring", |
| 68 | + "current-limitations": |
| 69 | + "explainers/nodejs-native-esm-support#current-limitations", |
| 70 | + "custom-locations": "running/configuring/#custom-locations", |
| 71 | + "defining-a-root-hook-plugin": |
| 72 | + "features/root-hook-plugins#defining-a-root-hook-plugin", |
| 73 | + "delayed-root-suite": "features/hooks/#root-level-hooks", |
| 74 | + "describing-hooks": "features/hooks/#describing-hooks", |
| 75 | + "detects-multiple-calls-to-done": |
| 76 | + "explainers/detecting-multiple-calls-to-done", |
| 77 | + diffs: "features/diffs", |
| 78 | + doc: "reporters/doc", |
| 79 | + "dot-matrix": "reporters/dot-matrix", |
| 80 | + "dynamically-generating-tests": "declaring/dynamic-tests", |
| 81 | + "editor-plugins": "running/editor-plugins", |
| 82 | + emacs: "running/editor-plugins/#emacs", |
| 83 | + "environment-variables": "running/configuring/#environment-variables", |
| 84 | + "error-codes": "features/error-codes", |
| 85 | + examples: "getting-started#next-steps", |
| 86 | + "exclusive-tests": "declaring/exclusive-tests", |
| 87 | + "exclusive-tests-are-disallowed": |
| 88 | + "features/parallel-mode/#exclusive-tests-are-disallowed", |
| 89 | + exports: "interfaces/exports", |
| 90 | + "extending-configuration": "running/configuring/#extending-configuration", |
| 91 | + "file-order-is-non-deterministic": |
| 92 | + "features/parallel-mode/#file-order-is-non-deterministic", |
| 93 | + "getting-started": "getting-started", |
| 94 | + "global-fixtures": "features/global-fixtures", |
| 95 | + "global-setup-fixtures": "features/global-fixtures/#global-setup-fixtures", |
| 96 | + "global-teardown-fixtures": |
| 97 | + "features/global-fixtures/#global-teardown-fixtures", |
| 98 | + grep: "running/browsers/#grep", |
| 99 | + "hook-level": "features/timeouts#hook-level", |
| 100 | + hooks: "features/hooks", |
| 101 | + "html-reporter": "reporters/html", |
| 102 | + "ignoring-config-files": "running/configuring/#ignoring-config-files", |
| 103 | + "inclusive-tests": "declaring/inclusive-tests", |
| 104 | + installation: "getting-started#1-installation", |
| 105 | + interfaces: "interfaces/about", |
| 106 | + jetbrains: "running/editor-plugins/#jetbrains", |
| 107 | + json: "reporters/json", |
| 108 | + "json-stream": "reporters/json-stream", |
| 109 | + "landing-strip": "reporters/landing", |
| 110 | + "limitations-of-asynchronous-callbacks": |
| 111 | + "features/asynchronous-code/#limitations-of-asynchronous-callbacks", |
| 112 | + "limited-reporter-api-for-third-party-reporters": |
| 113 | + "features/parallel-mode/#limited-reporter-api-for-third-party-reporters", |
| 114 | + list: "reporters/list", |
| 115 | + markdown: "reporters/markdown", |
| 116 | + merging: "running/configuring/#merging", |
| 117 | + "migrating-a-library-to-use-root-hook-plugins": |
| 118 | + "features/root-hook-plugins#migrating-a-library-to-use-root-hook-plugins", |
| 119 | + "migrating-tests-to-use-root-hook-plugins": |
| 120 | + "features/root-hook-plugins#migrating-tests-to-use-root-hook-plugins", |
| 121 | + min: "reporters/min", |
| 122 | + "mocha-fixture-wizard": "explainers/test-fixture-decision-tree", |
| 123 | + "mocha-fixture-wizard-diagram": "explainers/test-fixture-decision-tree", |
| 124 | + "mocha-sidebar-vs-code": "running/editor-plugins/#mocha-sidebar-vs-code", |
| 125 | + "more-information": "#more-information", |
| 126 | + "multiple-root-hook-plugins": |
| 127 | + "features/root-hook-plugins#multiple-root-hook-plugins", |
| 128 | + "multiple-root-hooks-in-a-single-plugin": |
| 129 | + "features/root-hook-plugins#multiple-root-hooks-in-a-single-plugin", |
| 130 | + "no-browser-support": "features/parallel-mode/#no-browser-support", |
| 131 | + "nodejs-native-esm-support": "explainers/nodejs-native-esm-support", |
| 132 | + nyan: "reporters/nyan", |
| 133 | + "options-that-differ-slightly-from-cli-options": |
| 134 | + "running/browsers/#options-that-differ-slightly-from-cli-options", |
| 135 | + "options-that-only-function-in-browser-context": |
| 136 | + "running/browsers/#options-that-only-function-in-browser-context", |
| 137 | + "parallel-mode": "explainers/run-cycle-overview#parallel-mode", |
| 138 | + "parallel-mode-worker-ids": |
| 139 | + "features/parallel-mode/#parallel-mode-worker-ids", |
| 140 | + "parallel-tests": "features/parallel-mode", |
| 141 | + "pending-tests": "declaring/pending-tests", |
| 142 | + priorities: "running/configuring/#priorities", |
| 143 | + progress: "reporters/progress", |
| 144 | + qunit: "interfaces/qunit", |
| 145 | + "reporter-limitations": "features/parallel-mode/#reporter-limitations", |
| 146 | + reporters: "reporters/about", |
| 147 | + reporting: "running/browsers/#reporting", |
| 148 | + require: "interfaces/require", |
| 149 | + "retry-tests": "declaring/retrying-tests", |
| 150 | + "root-hook-plugins": "features/root-hook-plugins", |
| 151 | + "root-hook-plugins-can-export-a-function": |
| 152 | + "features/root-hook-plugins#root-hook-plugins-can-export-a-function", |
| 153 | + "root-hooks-are-not-global": |
| 154 | + "features/parallel-mode/#root-hooks-are-not-global", |
| 155 | + "root-level-hooks": "features/hooks/#root-level-hooks", |
| 156 | + "run-cycle-overview": "explainers/run-cycle-overview", |
| 157 | + "running-mocha-in-the-browser": "running/browsers", |
| 158 | + "serial-mode": "explainers/run-cycle-overview#serial-mode", |
| 159 | + spec: "reporters/spec", |
| 160 | + sponsors: "#sponsors", |
| 161 | + "suite-level": "features/timeouts#suite-level", |
| 162 | + "synchronous-code": "features/asynchronous-code/#synchronous-code", |
| 163 | + tap: "reporters/tap", |
| 164 | + tdd: "interfaces/tdd", |
| 165 | + "test-duration": "explainers/test-duration", |
| 166 | + "test-duration-variability": |
| 167 | + "features/parallel-mode/#test-duration-variability", |
| 168 | + "test-fixture-decision-tree-wizard-thing": |
| 169 | + "explainers/test-fixture-decision-tree", |
| 170 | + "test-level": "features/timeouts#test-level", |
| 171 | + textmate: "running/editor-plugins/#textmate", |
| 172 | + "the-test-directory": "running/test-globs", |
| 173 | + "third-party-reporters": "reporters/third-party", |
| 174 | + timeouts: "features/timeouts", |
| 175 | + "troubleshooting-parallel-mode": |
| 176 | + "features/parallel-mode/#no-browser-support", |
| 177 | + "using-async-await": "features/asynchronous-code/#using-async--await", |
| 178 | + wallabyjs: "running/editor-plugins/#wallabyjs", |
| 179 | + "when-not-to-use-global-fixtures": |
| 180 | + "features/global-fixtures/#when-not-to-use-global-fixtures", |
| 181 | + "when-to-use-global-fixtures": |
| 182 | + "features/global-fixtures/#when-to-use-global-fixtures", |
| 183 | + "with-commonjs": "features/root-hook-plugins#with-commonjs", |
| 184 | + "with-es-modules": "features/root-hook-plugins#with-es-modules", |
| 185 | + "working-with-promises": |
| 186 | + "features/asynchronous-code/#working-with-promises", |
| 187 | + xunit: "reporters/xunit", |
| 188 | + }; |
| 189 | + |
| 190 | + const hash = window.location.hash.slice(1); |
| 191 | + |
| 192 | + if (Object.hasOwn(knownHashes, hash)) { |
| 193 | + window.location.href = [ |
| 194 | + window.location.pathname, |
| 195 | + knownHashes[hash as keyof typeof knownHashes], |
| 196 | + ].join("/"); |
| 197 | + } |
| 198 | +</script> |
0 commit comments