ibm-cloud-sdk-core 4.3.2 → 4.3.4
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.
- package/CHANGELOG.md +7 -0
- package/es/lib/sdk-test-helpers.js +1 -2
- package/iamtest.env +3 -0
- package/lib/sdk-test-helpers.js +11 -9
- package/package.json +3 -2
- package/sdk-test-utilities/node_modules/.package-lock.json +508 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/LICENSE +22 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/README.md +19 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/lib/index.js +156 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/lib/index.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/package.json +30 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/LICENSE +22 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/README.md +19 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/lib/index.js +119 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/lib/index.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/ansi-styles/index.js +165 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/ansi-styles/license +9 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/ansi-styles/package.json +56 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/ansi-styles/readme.md +147 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/index.js +228 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/index.js.flow +93 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/license +9 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/package.json +71 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/readme.md +314 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/templates.js +128 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/types/index.d.ts +97 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/CHANGELOG.md +54 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/README.md +68 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/conversions.js +868 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/index.js +78 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/package.json +46 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/route.js +97 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/.eslintrc.json +43 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/LICENSE +8 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/README.md +11 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/index.js +152 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/package.json +25 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/test.js +7 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/escape-string-regexp/index.js +11 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/escape-string-regexp/license +21 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/escape-string-regexp/package.json +41 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/escape-string-regexp/readme.md +27 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/has-flag/index.js +8 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/has-flag/license +9 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/has-flag/package.json +44 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/has-flag/readme.md +70 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/browser.js +5 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/index.js +131 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/license +9 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/package.json +53 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/readme.md +66 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/package.json +30 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/README.md +5 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/immutableUtils.js +66 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/index.d.ts +94 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/index.js +34 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/jasmineUtils.js +218 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/types.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/utils.js +462 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/package.json +35 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/README.md +3 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/build/index.d.ts +63 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/build/index.js +60 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/package.json +29 -0
- package/sdk-test-utilities/node_modules/@jest/types/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@jest/types/README.md +30 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/Circus.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/Config.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/Global.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/TestResult.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/index.d.ts +1204 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/index.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/package.json +38 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/compiler/compiler.d.ts +35 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/compiler/compiler.js +577 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/compiler/index.d.ts +2 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/compiler/index.js +47 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/errors/errors.d.ts +88 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/errors/errors.js +609 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/errors/index.d.ts +1 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/errors/index.js +44 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/license +23 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/package.json +47 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/readme.md +1424 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/system/index.d.ts +1 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/system/index.js +44 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/system/system.d.ts +26 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/system/system.js +90 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/typebox.d.ts +723 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/typebox.js +2220 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/cast.d.ts +30 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/cast.js +372 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/check.d.ts +12 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/check.js +484 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/clone.d.ts +3 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/clone.js +71 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/convert.d.ts +13 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/convert.js +372 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/create.d.ts +26 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/create.js +480 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/delta.d.ts +43 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/delta.js +204 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/equal.d.ts +3 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/equal.js +80 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/hash.d.ts +8 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/hash.js +208 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/index.d.ts +6 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/index.js +56 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/is.d.ts +11 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/is.js +53 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/mutate.d.ts +13 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/mutate.js +121 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/pointer.d.ts +24 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/pointer.js +142 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/value.d.ts +39 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/value.js +99 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-coverage/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-coverage/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-coverage/index.d.ts +111 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-coverage/package.json +25 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-report/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-report/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-report/index.d.ts +184 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-report/package.json +32 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-reports/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-reports/README.md +86 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-reports/index.d.ts +67 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-reports/package.json +32 -0
- package/sdk-test-utilities/node_modules/@types/node/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/node/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/sdk-test-utilities/node_modules/@types/node/assert.d.ts +1040 -0
- package/sdk-test-utilities/node_modules/@types/node/async_hooks.d.ts +541 -0
- package/sdk-test-utilities/node_modules/@types/node/buffer.d.ts +2363 -0
- package/sdk-test-utilities/node_modules/@types/node/child_process.d.ts +1544 -0
- package/sdk-test-utilities/node_modules/@types/node/cluster.d.ts +578 -0
- package/sdk-test-utilities/node_modules/@types/node/console.d.ts +452 -0
- package/sdk-test-utilities/node_modules/@types/node/constants.d.ts +19 -0
- package/sdk-test-utilities/node_modules/@types/node/crypto.d.ts +4523 -0
- package/sdk-test-utilities/node_modules/@types/node/dgram.d.ts +596 -0
- package/sdk-test-utilities/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
- package/sdk-test-utilities/node_modules/@types/node/dns/promises.d.ts +474 -0
- package/sdk-test-utilities/node_modules/@types/node/dns.d.ts +864 -0
- package/sdk-test-utilities/node_modules/@types/node/dom-events.d.ts +124 -0
- package/sdk-test-utilities/node_modules/@types/node/domain.d.ts +170 -0
- package/sdk-test-utilities/node_modules/@types/node/events.d.ts +909 -0
- package/sdk-test-utilities/node_modules/@types/node/fs/promises.d.ts +1245 -0
- package/sdk-test-utilities/node_modules/@types/node/fs.d.ts +4317 -0
- package/sdk-test-utilities/node_modules/@types/node/globals.d.ts +411 -0
- package/sdk-test-utilities/node_modules/@types/node/globals.global.d.ts +1 -0
- package/sdk-test-utilities/node_modules/@types/node/http.d.ts +1908 -0
- package/sdk-test-utilities/node_modules/@types/node/http2.d.ts +2418 -0
- package/sdk-test-utilities/node_modules/@types/node/https.d.ts +550 -0
- package/sdk-test-utilities/node_modules/@types/node/index.d.ts +89 -0
- package/sdk-test-utilities/node_modules/@types/node/inspector.d.ts +2746 -0
- package/sdk-test-utilities/node_modules/@types/node/module.d.ts +315 -0
- package/sdk-test-utilities/node_modules/@types/node/net.d.ts +999 -0
- package/sdk-test-utilities/node_modules/@types/node/os.d.ts +495 -0
- package/sdk-test-utilities/node_modules/@types/node/package.json +217 -0
- package/sdk-test-utilities/node_modules/@types/node/path.d.ts +191 -0
- package/sdk-test-utilities/node_modules/@types/node/perf_hooks.d.ts +905 -0
- package/sdk-test-utilities/node_modules/@types/node/process.d.ts +1754 -0
- package/sdk-test-utilities/node_modules/@types/node/punycode.d.ts +117 -0
- package/sdk-test-utilities/node_modules/@types/node/querystring.d.ts +153 -0
- package/sdk-test-utilities/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/sdk-test-utilities/node_modules/@types/node/readline.d.ts +540 -0
- package/sdk-test-utilities/node_modules/@types/node/repl.d.ts +430 -0
- package/sdk-test-utilities/node_modules/@types/node/sea.d.ts +153 -0
- package/sdk-test-utilities/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/sdk-test-utilities/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/sdk-test-utilities/node_modules/@types/node/stream/web.d.ts +367 -0
- package/sdk-test-utilities/node_modules/@types/node/stream.d.ts +1707 -0
- package/sdk-test-utilities/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/sdk-test-utilities/node_modules/@types/node/test.d.ts +1718 -0
- package/sdk-test-utilities/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/sdk-test-utilities/node_modules/@types/node/timers.d.ts +240 -0
- package/sdk-test-utilities/node_modules/@types/node/tls.d.ts +1217 -0
- package/sdk-test-utilities/node_modules/@types/node/trace_events.d.ts +197 -0
- package/sdk-test-utilities/node_modules/@types/node/tty.d.ts +208 -0
- package/sdk-test-utilities/node_modules/@types/node/url.d.ts +952 -0
- package/sdk-test-utilities/node_modules/@types/node/util.d.ts +2292 -0
- package/sdk-test-utilities/node_modules/@types/node/v8.d.ts +808 -0
- package/sdk-test-utilities/node_modules/@types/node/vm.d.ts +924 -0
- package/sdk-test-utilities/node_modules/@types/node/wasi.d.ts +181 -0
- package/sdk-test-utilities/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/sdk-test-utilities/node_modules/@types/node/zlib.d.ts +530 -0
- package/sdk-test-utilities/node_modules/@types/stack-utils/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/stack-utils/README.md +78 -0
- package/sdk-test-utilities/node_modules/@types/stack-utils/index.d.ts +59 -0
- package/sdk-test-utilities/node_modules/@types/stack-utils/package.json +25 -0
- package/sdk-test-utilities/node_modules/@types/yargs/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/yargs/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/yargs/helpers.d.mts +1 -0
- package/sdk-test-utilities/node_modules/@types/yargs/helpers.d.ts +5 -0
- package/sdk-test-utilities/node_modules/@types/yargs/index.d.mts +46 -0
- package/sdk-test-utilities/node_modules/@types/yargs/index.d.ts +1031 -0
- package/sdk-test-utilities/node_modules/@types/yargs/package.json +87 -0
- package/sdk-test-utilities/node_modules/@types/yargs/yargs.d.ts +9 -0
- package/sdk-test-utilities/node_modules/@types/yargs-parser/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/yargs-parser/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/yargs-parser/index.d.ts +112 -0
- package/sdk-test-utilities/node_modules/@types/yargs-parser/package.json +25 -0
- package/sdk-test-utilities/node_modules/ansi-styles/index.d.ts +345 -0
- package/sdk-test-utilities/node_modules/ansi-styles/index.js +163 -0
- package/sdk-test-utilities/node_modules/ansi-styles/license +9 -0
- package/sdk-test-utilities/node_modules/ansi-styles/package.json +56 -0
- package/sdk-test-utilities/node_modules/ansi-styles/readme.md +152 -0
- package/sdk-test-utilities/node_modules/braces/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/braces/README.md +586 -0
- package/sdk-test-utilities/node_modules/braces/index.js +170 -0
- package/sdk-test-utilities/node_modules/braces/lib/compile.js +60 -0
- package/sdk-test-utilities/node_modules/braces/lib/constants.js +57 -0
- package/sdk-test-utilities/node_modules/braces/lib/expand.js +113 -0
- package/sdk-test-utilities/node_modules/braces/lib/parse.js +331 -0
- package/sdk-test-utilities/node_modules/braces/lib/stringify.js +32 -0
- package/sdk-test-utilities/node_modules/braces/lib/utils.js +122 -0
- package/sdk-test-utilities/node_modules/braces/package.json +77 -0
- package/sdk-test-utilities/node_modules/chalk/index.d.ts +415 -0
- package/sdk-test-utilities/node_modules/chalk/license +9 -0
- package/sdk-test-utilities/node_modules/chalk/package.json +68 -0
- package/sdk-test-utilities/node_modules/chalk/readme.md +341 -0
- package/sdk-test-utilities/node_modules/chalk/source/index.js +229 -0
- package/sdk-test-utilities/node_modules/chalk/source/templates.js +134 -0
- package/sdk-test-utilities/node_modules/chalk/source/util.js +39 -0
- package/sdk-test-utilities/node_modules/ci-info/CHANGELOG.md +178 -0
- package/sdk-test-utilities/node_modules/ci-info/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/ci-info/README.md +135 -0
- package/sdk-test-utilities/node_modules/ci-info/index.d.ts +75 -0
- package/sdk-test-utilities/node_modules/ci-info/index.js +90 -0
- package/sdk-test-utilities/node_modules/ci-info/package.json +45 -0
- package/sdk-test-utilities/node_modules/ci-info/vendors.json +321 -0
- package/sdk-test-utilities/node_modules/color-convert/CHANGELOG.md +54 -0
- package/sdk-test-utilities/node_modules/color-convert/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/color-convert/README.md +68 -0
- package/sdk-test-utilities/node_modules/color-convert/conversions.js +839 -0
- package/sdk-test-utilities/node_modules/color-convert/index.js +81 -0
- package/sdk-test-utilities/node_modules/color-convert/package.json +48 -0
- package/sdk-test-utilities/node_modules/color-convert/route.js +97 -0
- package/sdk-test-utilities/node_modules/color-name/LICENSE +8 -0
- package/sdk-test-utilities/node_modules/color-name/README.md +11 -0
- package/sdk-test-utilities/node_modules/color-name/index.js +152 -0
- package/sdk-test-utilities/node_modules/color-name/package.json +28 -0
- package/sdk-test-utilities/node_modules/diff-sequences/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/diff-sequences/README.md +404 -0
- package/sdk-test-utilities/node_modules/diff-sequences/build/index.d.ts +38 -0
- package/sdk-test-utilities/node_modules/diff-sequences/build/index.js +798 -0
- package/sdk-test-utilities/node_modules/diff-sequences/package.json +39 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/index.js +11 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/license +9 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/package.json +43 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/readme.md +29 -0
- package/sdk-test-utilities/node_modules/expect/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/expect/README.md +3 -0
- package/sdk-test-utilities/node_modules/expect/build/asymmetricMatchers.js +375 -0
- package/sdk-test-utilities/node_modules/expect/build/extractExpectedAssertionsErrors.js +86 -0
- package/sdk-test-utilities/node_modules/expect/build/index.d.ts +370 -0
- package/sdk-test-utilities/node_modules/expect/build/index.js +410 -0
- package/sdk-test-utilities/node_modules/expect/build/jestMatchersObject.js +123 -0
- package/sdk-test-utilities/node_modules/expect/build/matchers.js +1292 -0
- package/sdk-test-utilities/node_modules/expect/build/print.js +122 -0
- package/sdk-test-utilities/node_modules/expect/build/spyMatchers.js +1254 -0
- package/sdk-test-utilities/node_modules/expect/build/toThrowMatchers.js +481 -0
- package/sdk-test-utilities/node_modules/expect/build/types.js +3 -0
- package/sdk-test-utilities/node_modules/expect/package.json +43 -0
- package/sdk-test-utilities/node_modules/fill-range/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/fill-range/README.md +237 -0
- package/sdk-test-utilities/node_modules/fill-range/index.js +248 -0
- package/sdk-test-utilities/node_modules/fill-range/package.json +74 -0
- package/sdk-test-utilities/node_modules/graceful-fs/LICENSE +15 -0
- package/sdk-test-utilities/node_modules/graceful-fs/README.md +143 -0
- package/sdk-test-utilities/node_modules/graceful-fs/clone.js +23 -0
- package/sdk-test-utilities/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/sdk-test-utilities/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/sdk-test-utilities/node_modules/graceful-fs/package.json +53 -0
- package/sdk-test-utilities/node_modules/graceful-fs/polyfills.js +355 -0
- package/sdk-test-utilities/node_modules/has-flag/index.d.ts +39 -0
- package/sdk-test-utilities/node_modules/has-flag/index.js +8 -0
- package/sdk-test-utilities/node_modules/has-flag/license +9 -0
- package/sdk-test-utilities/node_modules/has-flag/package.json +46 -0
- package/sdk-test-utilities/node_modules/has-flag/readme.md +89 -0
- package/sdk-test-utilities/node_modules/is-number/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/is-number/README.md +187 -0
- package/sdk-test-utilities/node_modules/is-number/index.js +18 -0
- package/sdk-test-utilities/node_modules/is-number/package.json +82 -0
- package/sdk-test-utilities/node_modules/jest-diff/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-diff/README.md +671 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/cleanupSemantic.js +599 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/constants.js +19 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/diffLines.js +193 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/diffStrings.js +66 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/getAlignedDiffs.js +223 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/index.d.ts +93 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/index.js +232 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/joinAlignedDiffs.js +271 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/normalizeDiffOptions.js +59 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/printDiffs.js +79 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/types.js +1 -0
- package/sdk-test-utilities/node_modules/jest-diff/package.json +36 -0
- package/sdk-test-utilities/node_modules/jest-get-type/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-get-type/build/index.d.ts +27 -0
- package/sdk-test-utilities/node_modules/jest-get-type/build/index.js +53 -0
- package/sdk-test-utilities/node_modules/jest-get-type/package.json +27 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/README.md +24 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/build/Replaceable.js +64 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/build/deepCyclicCopyReplaceable.js +111 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/build/index.d.ts +138 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/build/index.js +542 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/package.json +37 -0
- package/sdk-test-utilities/node_modules/jest-message-util/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-message-util/build/index.d.ts +68 -0
- package/sdk-test-utilities/node_modules/jest-message-util/build/index.js +518 -0
- package/sdk-test-utilities/node_modules/jest-message-util/build/types.js +1 -0
- package/sdk-test-utilities/node_modules/jest-message-util/package.json +43 -0
- package/sdk-test-utilities/node_modules/jest-util/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-util/Readme.md +87 -0
- package/sdk-test-utilities/node_modules/jest-util/build/ErrorWithStack.js +28 -0
- package/sdk-test-utilities/node_modules/jest-util/build/clearLine.js +18 -0
- package/sdk-test-utilities/node_modules/jest-util/build/convertDescriptorToString.js +30 -0
- package/sdk-test-utilities/node_modules/jest-util/build/createDirectory.js +71 -0
- package/sdk-test-utilities/node_modules/jest-util/build/createProcessObject.js +109 -0
- package/sdk-test-utilities/node_modules/jest-util/build/deepCyclicCopy.js +76 -0
- package/sdk-test-utilities/node_modules/jest-util/build/formatTime.js +24 -0
- package/sdk-test-utilities/node_modules/jest-util/build/globsToMatcher.js +98 -0
- package/sdk-test-utilities/node_modules/jest-util/build/index.d.ts +136 -0
- package/sdk-test-utilities/node_modules/jest-util/build/index.js +199 -0
- package/sdk-test-utilities/node_modules/jest-util/build/installCommonGlobals.js +115 -0
- package/sdk-test-utilities/node_modules/jest-util/build/interopRequireDefault.js +22 -0
- package/sdk-test-utilities/node_modules/jest-util/build/invariant.js +18 -0
- package/sdk-test-utilities/node_modules/jest-util/build/isInteractive.js +22 -0
- package/sdk-test-utilities/node_modules/jest-util/build/isNonNullable.js +16 -0
- package/sdk-test-utilities/node_modules/jest-util/build/isPromise.js +20 -0
- package/sdk-test-utilities/node_modules/jest-util/build/pluralize.js +16 -0
- package/sdk-test-utilities/node_modules/jest-util/build/preRunMessage.js +38 -0
- package/sdk-test-utilities/node_modules/jest-util/build/replacePathSepForGlob.js +16 -0
- package/sdk-test-utilities/node_modules/jest-util/build/requireOrImportModule.js +77 -0
- package/sdk-test-utilities/node_modules/jest-util/build/setGlobal.js +17 -0
- package/sdk-test-utilities/node_modules/jest-util/build/specialChars.js +25 -0
- package/sdk-test-utilities/node_modules/jest-util/build/testPathPatternToRegExp.js +19 -0
- package/sdk-test-utilities/node_modules/jest-util/build/tryRealpath.js +30 -0
- package/sdk-test-utilities/node_modules/jest-util/package.json +38 -0
- package/sdk-test-utilities/node_modules/js-tokens/CHANGELOG.md +151 -0
- package/sdk-test-utilities/node_modules/js-tokens/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/js-tokens/README.md +240 -0
- package/sdk-test-utilities/node_modules/js-tokens/index.js +23 -0
- package/sdk-test-utilities/node_modules/js-tokens/package.json +30 -0
- package/sdk-test-utilities/node_modules/micromatch/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/micromatch/README.md +1017 -0
- package/sdk-test-utilities/node_modules/micromatch/index.js +467 -0
- package/sdk-test-utilities/node_modules/micromatch/package.json +101 -0
- package/sdk-test-utilities/node_modules/picocolors/LICENSE +15 -0
- package/sdk-test-utilities/node_modules/picocolors/README.md +21 -0
- package/sdk-test-utilities/node_modules/picocolors/package.json +25 -0
- package/sdk-test-utilities/node_modules/picocolors/picocolors.browser.js +4 -0
- package/sdk-test-utilities/node_modules/picocolors/picocolors.d.ts +5 -0
- package/sdk-test-utilities/node_modules/picocolors/picocolors.js +65 -0
- package/sdk-test-utilities/node_modules/picomatch/CHANGELOG.md +136 -0
- package/sdk-test-utilities/node_modules/picomatch/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/picomatch/README.md +708 -0
- package/sdk-test-utilities/node_modules/picomatch/index.js +3 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/constants.js +179 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/parse.js +1091 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/picomatch.js +342 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/scan.js +391 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/utils.js +64 -0
- package/sdk-test-utilities/node_modules/picomatch/package.json +81 -0
- package/sdk-test-utilities/node_modules/pretty-format/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/pretty-format/README.md +463 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/collections.js +180 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/index.d.ts +163 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/index.js +478 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js +89 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/DOMCollection.js +67 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/DOMElement.js +101 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/Immutable.js +217 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/ReactElement.js +143 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/ReactTestComponent.js +66 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/lib/escapeHTML.js +16 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/lib/markup.js +113 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/types.js +1 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/index.d.ts +167 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/index.js +164 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/license +9 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/package.json +52 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/readme.md +144 -0
- package/sdk-test-utilities/node_modules/pretty-format/package.json +43 -0
- package/sdk-test-utilities/node_modules/react-is/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/react-is/README.md +104 -0
- package/sdk-test-utilities/node_modules/react-is/cjs/react-is.development.js +221 -0
- package/sdk-test-utilities/node_modules/react-is/cjs/react-is.production.min.js +14 -0
- package/sdk-test-utilities/node_modules/react-is/index.js +7 -0
- package/sdk-test-utilities/node_modules/react-is/package.json +26 -0
- package/sdk-test-utilities/node_modules/react-is/umd/react-is.development.js +220 -0
- package/sdk-test-utilities/node_modules/react-is/umd/react-is.production.min.js +15 -0
- package/sdk-test-utilities/node_modules/slash/index.d.ts +25 -0
- package/sdk-test-utilities/node_modules/slash/index.js +11 -0
- package/sdk-test-utilities/node_modules/slash/license +9 -0
- package/sdk-test-utilities/node_modules/slash/package.json +35 -0
- package/sdk-test-utilities/node_modules/slash/readme.md +44 -0
- package/sdk-test-utilities/node_modules/stack-utils/LICENSE.md +21 -0
- package/sdk-test-utilities/node_modules/stack-utils/index.js +344 -0
- package/sdk-test-utilities/node_modules/stack-utils/package.json +39 -0
- package/sdk-test-utilities/node_modules/stack-utils/readme.md +143 -0
- package/sdk-test-utilities/node_modules/supports-color/browser.js +5 -0
- package/sdk-test-utilities/node_modules/supports-color/index.js +135 -0
- package/sdk-test-utilities/node_modules/supports-color/license +9 -0
- package/sdk-test-utilities/node_modules/supports-color/package.json +53 -0
- package/sdk-test-utilities/node_modules/supports-color/readme.md +76 -0
- package/sdk-test-utilities/node_modules/to-regex-range/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/to-regex-range/README.md +305 -0
- package/sdk-test-utilities/node_modules/to-regex-range/index.js +288 -0
- package/sdk-test-utilities/node_modules/to-regex-range/package.json +88 -0
- package/sdk-test-utilities/node_modules/undici-types/README.md +6 -0
- package/sdk-test-utilities/node_modules/undici-types/agent.d.ts +31 -0
- package/sdk-test-utilities/node_modules/undici-types/api.d.ts +43 -0
- package/sdk-test-utilities/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/sdk-test-utilities/node_modules/undici-types/cache.d.ts +36 -0
- package/sdk-test-utilities/node_modules/undici-types/client.d.ts +97 -0
- package/sdk-test-utilities/node_modules/undici-types/connector.d.ts +34 -0
- package/sdk-test-utilities/node_modules/undici-types/content-type.d.ts +21 -0
- package/sdk-test-utilities/node_modules/undici-types/cookies.d.ts +28 -0
- package/sdk-test-utilities/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/sdk-test-utilities/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/sdk-test-utilities/node_modules/undici-types/errors.d.ts +128 -0
- package/sdk-test-utilities/node_modules/undici-types/fetch.d.ts +209 -0
- package/sdk-test-utilities/node_modules/undici-types/file.d.ts +39 -0
- package/sdk-test-utilities/node_modules/undici-types/filereader.d.ts +54 -0
- package/sdk-test-utilities/node_modules/undici-types/formdata.d.ts +108 -0
- package/sdk-test-utilities/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/sdk-test-utilities/node_modules/undici-types/global-origin.d.ts +7 -0
- package/sdk-test-utilities/node_modules/undici-types/handlers.d.ts +9 -0
- package/sdk-test-utilities/node_modules/undici-types/header.d.ts +4 -0
- package/sdk-test-utilities/node_modules/undici-types/index.d.ts +63 -0
- package/sdk-test-utilities/node_modules/undici-types/interceptors.d.ts +5 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-client.d.ts +25 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/sdk-test-utilities/node_modules/undici-types/package.json +55 -0
- package/sdk-test-utilities/node_modules/undici-types/patch.d.ts +71 -0
- package/sdk-test-utilities/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/sdk-test-utilities/node_modules/undici-types/pool.d.ts +28 -0
- package/sdk-test-utilities/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/sdk-test-utilities/node_modules/undici-types/readable.d.ts +61 -0
- package/sdk-test-utilities/node_modules/undici-types/webidl.d.ts +220 -0
- package/sdk-test-utilities/node_modules/undici-types/websocket.d.ts +131 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "diff-sequences",
|
|
3
|
+
"version": "29.6.3",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/jestjs/jest.git",
|
|
7
|
+
"directory": "packages/diff-sequences"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"description": "Compare items in two sequences to find a longest common subsequence",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"fast",
|
|
13
|
+
"linear",
|
|
14
|
+
"space",
|
|
15
|
+
"callback",
|
|
16
|
+
"diff"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
|
20
|
+
},
|
|
21
|
+
"main": "./build/index.js",
|
|
22
|
+
"types": "./build/index.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./build/index.d.ts",
|
|
26
|
+
"default": "./build/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./package.json": "./package.json"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@fast-check/jest": "^1.3.0",
|
|
32
|
+
"benchmark": "^2.1.4",
|
|
33
|
+
"diff": "^5.0.0"
|
|
34
|
+
},
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"gitHead": "fb7d95c8af6e0d65a8b65348433d8a0ea0725b5b"
|
|
39
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Escape RegExp special characters.
|
|
3
|
+
|
|
4
|
+
You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```
|
|
8
|
+
import escapeStringRegexp = require('escape-string-regexp');
|
|
9
|
+
|
|
10
|
+
const escapedString = escapeStringRegexp('How much $ for a 🦄?');
|
|
11
|
+
//=> 'How much \\$ for a 🦄\\?'
|
|
12
|
+
|
|
13
|
+
new RegExp(escapedString);
|
|
14
|
+
```
|
|
15
|
+
*/
|
|
16
|
+
declare const escapeStringRegexp: (string: string) => string;
|
|
17
|
+
|
|
18
|
+
export = escapeStringRegexp;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "escape-string-regexp",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Escape RegExp special characters",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/escape-string-regexp",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"maintainers": [
|
|
13
|
+
"Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)",
|
|
14
|
+
"Joshua Boy Nicolai Appelman <joshua@jbna.nl> (jbna.nl)"
|
|
15
|
+
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=8"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"test": "xo && ava && tsd"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"index.js",
|
|
24
|
+
"index.d.ts"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"escape",
|
|
28
|
+
"regex",
|
|
29
|
+
"regexp",
|
|
30
|
+
"re",
|
|
31
|
+
"regular",
|
|
32
|
+
"expression",
|
|
33
|
+
"string",
|
|
34
|
+
"str",
|
|
35
|
+
"special",
|
|
36
|
+
"characters"
|
|
37
|
+
],
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"ava": "^1.4.1",
|
|
40
|
+
"tsd": "^0.7.2",
|
|
41
|
+
"xo": "^0.24.0"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# escape-string-regexp [](https://travis-ci.org/sindresorhus/escape-string-regexp)
|
|
2
|
+
|
|
3
|
+
> Escape RegExp special characters
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install escape-string-regexp
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const escapeStringRegexp = require('escape-string-regexp');
|
|
17
|
+
|
|
18
|
+
const escapedString = escapeStringRegexp('How much $ for a 🦄?');
|
|
19
|
+
//=> 'How much \\$ for a 🦄\\?'
|
|
20
|
+
|
|
21
|
+
new RegExp(escapedString);
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.closeTo =
|
|
7
|
+
exports.arrayNotContaining =
|
|
8
|
+
exports.arrayContaining =
|
|
9
|
+
exports.anything =
|
|
10
|
+
exports.any =
|
|
11
|
+
exports.AsymmetricMatcher =
|
|
12
|
+
void 0;
|
|
13
|
+
exports.hasProperty = hasProperty;
|
|
14
|
+
exports.stringNotMatching =
|
|
15
|
+
exports.stringNotContaining =
|
|
16
|
+
exports.stringMatching =
|
|
17
|
+
exports.stringContaining =
|
|
18
|
+
exports.objectNotContaining =
|
|
19
|
+
exports.objectContaining =
|
|
20
|
+
exports.notCloseTo =
|
|
21
|
+
void 0;
|
|
22
|
+
var _expectUtils = require('@jest/expect-utils');
|
|
23
|
+
var matcherUtils = _interopRequireWildcard(require('jest-matcher-utils'));
|
|
24
|
+
var _jestUtil = require('jest-util');
|
|
25
|
+
var _jestMatchersObject = require('./jestMatchersObject');
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
27
|
+
if (typeof WeakMap !== 'function') return null;
|
|
28
|
+
var cacheBabelInterop = new WeakMap();
|
|
29
|
+
var cacheNodeInterop = new WeakMap();
|
|
30
|
+
return (_getRequireWildcardCache = function (nodeInterop) {
|
|
31
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
32
|
+
})(nodeInterop);
|
|
33
|
+
}
|
|
34
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
35
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
36
|
+
return obj;
|
|
37
|
+
}
|
|
38
|
+
if (obj === null || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
39
|
+
return {default: obj};
|
|
40
|
+
}
|
|
41
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
42
|
+
if (cache && cache.has(obj)) {
|
|
43
|
+
return cache.get(obj);
|
|
44
|
+
}
|
|
45
|
+
var newObj = {};
|
|
46
|
+
var hasPropertyDescriptor =
|
|
47
|
+
Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
48
|
+
for (var key in obj) {
|
|
49
|
+
if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
50
|
+
var desc = hasPropertyDescriptor
|
|
51
|
+
? Object.getOwnPropertyDescriptor(obj, key)
|
|
52
|
+
: null;
|
|
53
|
+
if (desc && (desc.get || desc.set)) {
|
|
54
|
+
Object.defineProperty(newObj, key, desc);
|
|
55
|
+
} else {
|
|
56
|
+
newObj[key] = obj[key];
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
newObj.default = obj;
|
|
61
|
+
if (cache) {
|
|
62
|
+
cache.set(obj, newObj);
|
|
63
|
+
}
|
|
64
|
+
return newObj;
|
|
65
|
+
}
|
|
66
|
+
var Symbol = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
|
|
67
|
+
/**
|
|
68
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the MIT license found in the
|
|
71
|
+
* LICENSE file in the root directory of this source tree.
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
const functionToString = Function.prototype.toString;
|
|
75
|
+
function fnNameFor(func) {
|
|
76
|
+
if (func.name) {
|
|
77
|
+
return func.name;
|
|
78
|
+
}
|
|
79
|
+
const matches = functionToString
|
|
80
|
+
.call(func)
|
|
81
|
+
.match(/^(?:async)?\s*function\s*\*?\s*([\w$]+)\s*\(/);
|
|
82
|
+
return matches ? matches[1] : '<anonymous>';
|
|
83
|
+
}
|
|
84
|
+
const utils = Object.freeze({
|
|
85
|
+
...matcherUtils,
|
|
86
|
+
iterableEquality: _expectUtils.iterableEquality,
|
|
87
|
+
subsetEquality: _expectUtils.subsetEquality
|
|
88
|
+
});
|
|
89
|
+
function getPrototype(obj) {
|
|
90
|
+
if (Object.getPrototypeOf) {
|
|
91
|
+
return Object.getPrototypeOf(obj);
|
|
92
|
+
}
|
|
93
|
+
if (obj.constructor.prototype == obj) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
return obj.constructor.prototype;
|
|
97
|
+
}
|
|
98
|
+
function hasProperty(obj, property) {
|
|
99
|
+
if (!obj) {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
if (Object.prototype.hasOwnProperty.call(obj, property)) {
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
return hasProperty(getPrototype(obj), property);
|
|
106
|
+
}
|
|
107
|
+
class AsymmetricMatcher {
|
|
108
|
+
$$typeof = Symbol.for('jest.asymmetricMatcher');
|
|
109
|
+
constructor(sample, inverse = false) {
|
|
110
|
+
this.sample = sample;
|
|
111
|
+
this.inverse = inverse;
|
|
112
|
+
}
|
|
113
|
+
getMatcherContext() {
|
|
114
|
+
return {
|
|
115
|
+
customTesters: (0, _jestMatchersObject.getCustomEqualityTesters)(),
|
|
116
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
117
|
+
dontThrow: () => {},
|
|
118
|
+
...(0, _jestMatchersObject.getState)(),
|
|
119
|
+
equals: _expectUtils.equals,
|
|
120
|
+
isNot: this.inverse,
|
|
121
|
+
utils
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.AsymmetricMatcher = AsymmetricMatcher;
|
|
126
|
+
class Any extends AsymmetricMatcher {
|
|
127
|
+
constructor(sample) {
|
|
128
|
+
if (typeof sample === 'undefined') {
|
|
129
|
+
throw new TypeError(
|
|
130
|
+
'any() expects to be passed a constructor function. ' +
|
|
131
|
+
'Please pass one or use anything() to match any object.'
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
super(sample);
|
|
135
|
+
}
|
|
136
|
+
asymmetricMatch(other) {
|
|
137
|
+
if (this.sample == String) {
|
|
138
|
+
return typeof other == 'string' || other instanceof String;
|
|
139
|
+
}
|
|
140
|
+
if (this.sample == Number) {
|
|
141
|
+
return typeof other == 'number' || other instanceof Number;
|
|
142
|
+
}
|
|
143
|
+
if (this.sample == Function) {
|
|
144
|
+
return typeof other == 'function' || other instanceof Function;
|
|
145
|
+
}
|
|
146
|
+
if (this.sample == Boolean) {
|
|
147
|
+
return typeof other == 'boolean' || other instanceof Boolean;
|
|
148
|
+
}
|
|
149
|
+
if (this.sample == BigInt) {
|
|
150
|
+
return typeof other == 'bigint' || other instanceof BigInt;
|
|
151
|
+
}
|
|
152
|
+
if (this.sample == Symbol) {
|
|
153
|
+
return typeof other == 'symbol' || other instanceof Symbol;
|
|
154
|
+
}
|
|
155
|
+
if (this.sample == Object) {
|
|
156
|
+
return typeof other == 'object';
|
|
157
|
+
}
|
|
158
|
+
return other instanceof this.sample;
|
|
159
|
+
}
|
|
160
|
+
toString() {
|
|
161
|
+
return 'Any';
|
|
162
|
+
}
|
|
163
|
+
getExpectedType() {
|
|
164
|
+
if (this.sample == String) {
|
|
165
|
+
return 'string';
|
|
166
|
+
}
|
|
167
|
+
if (this.sample == Number) {
|
|
168
|
+
return 'number';
|
|
169
|
+
}
|
|
170
|
+
if (this.sample == Function) {
|
|
171
|
+
return 'function';
|
|
172
|
+
}
|
|
173
|
+
if (this.sample == Object) {
|
|
174
|
+
return 'object';
|
|
175
|
+
}
|
|
176
|
+
if (this.sample == Boolean) {
|
|
177
|
+
return 'boolean';
|
|
178
|
+
}
|
|
179
|
+
return fnNameFor(this.sample);
|
|
180
|
+
}
|
|
181
|
+
toAsymmetricMatcher() {
|
|
182
|
+
return `Any<${fnNameFor(this.sample)}>`;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
class Anything extends AsymmetricMatcher {
|
|
186
|
+
asymmetricMatch(other) {
|
|
187
|
+
return other != null;
|
|
188
|
+
}
|
|
189
|
+
toString() {
|
|
190
|
+
return 'Anything';
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// No getExpectedType method, because it matches either null or undefined.
|
|
194
|
+
|
|
195
|
+
toAsymmetricMatcher() {
|
|
196
|
+
return 'Anything';
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
class ArrayContaining extends AsymmetricMatcher {
|
|
200
|
+
constructor(sample, inverse = false) {
|
|
201
|
+
super(sample, inverse);
|
|
202
|
+
}
|
|
203
|
+
asymmetricMatch(other) {
|
|
204
|
+
if (!Array.isArray(this.sample)) {
|
|
205
|
+
throw new Error(
|
|
206
|
+
`You must provide an array to ${this.toString()}, not '${typeof this
|
|
207
|
+
.sample}'.`
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
const matcherContext = this.getMatcherContext();
|
|
211
|
+
const result =
|
|
212
|
+
this.sample.length === 0 ||
|
|
213
|
+
(Array.isArray(other) &&
|
|
214
|
+
this.sample.every(item =>
|
|
215
|
+
other.some(another =>
|
|
216
|
+
(0, _expectUtils.equals)(
|
|
217
|
+
item,
|
|
218
|
+
another,
|
|
219
|
+
matcherContext.customTesters
|
|
220
|
+
)
|
|
221
|
+
)
|
|
222
|
+
));
|
|
223
|
+
return this.inverse ? !result : result;
|
|
224
|
+
}
|
|
225
|
+
toString() {
|
|
226
|
+
return `Array${this.inverse ? 'Not' : ''}Containing`;
|
|
227
|
+
}
|
|
228
|
+
getExpectedType() {
|
|
229
|
+
return 'array';
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
class ObjectContaining extends AsymmetricMatcher {
|
|
233
|
+
constructor(sample, inverse = false) {
|
|
234
|
+
super(sample, inverse);
|
|
235
|
+
}
|
|
236
|
+
asymmetricMatch(other) {
|
|
237
|
+
if (typeof this.sample !== 'object') {
|
|
238
|
+
throw new Error(
|
|
239
|
+
`You must provide an object to ${this.toString()}, not '${typeof this
|
|
240
|
+
.sample}'.`
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
let result = true;
|
|
244
|
+
const matcherContext = this.getMatcherContext();
|
|
245
|
+
const objectKeys = (0, _expectUtils.getObjectKeys)(this.sample);
|
|
246
|
+
for (const key of objectKeys) {
|
|
247
|
+
if (
|
|
248
|
+
!hasProperty(other, key) ||
|
|
249
|
+
!(0, _expectUtils.equals)(
|
|
250
|
+
this.sample[key],
|
|
251
|
+
other[key],
|
|
252
|
+
matcherContext.customTesters
|
|
253
|
+
)
|
|
254
|
+
) {
|
|
255
|
+
result = false;
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return this.inverse ? !result : result;
|
|
260
|
+
}
|
|
261
|
+
toString() {
|
|
262
|
+
return `Object${this.inverse ? 'Not' : ''}Containing`;
|
|
263
|
+
}
|
|
264
|
+
getExpectedType() {
|
|
265
|
+
return 'object';
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
class StringContaining extends AsymmetricMatcher {
|
|
269
|
+
constructor(sample, inverse = false) {
|
|
270
|
+
if (!(0, _expectUtils.isA)('String', sample)) {
|
|
271
|
+
throw new Error('Expected is not a string');
|
|
272
|
+
}
|
|
273
|
+
super(sample, inverse);
|
|
274
|
+
}
|
|
275
|
+
asymmetricMatch(other) {
|
|
276
|
+
const result =
|
|
277
|
+
(0, _expectUtils.isA)('String', other) && other.includes(this.sample);
|
|
278
|
+
return this.inverse ? !result : result;
|
|
279
|
+
}
|
|
280
|
+
toString() {
|
|
281
|
+
return `String${this.inverse ? 'Not' : ''}Containing`;
|
|
282
|
+
}
|
|
283
|
+
getExpectedType() {
|
|
284
|
+
return 'string';
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
class StringMatching extends AsymmetricMatcher {
|
|
288
|
+
constructor(sample, inverse = false) {
|
|
289
|
+
if (
|
|
290
|
+
!(0, _expectUtils.isA)('String', sample) &&
|
|
291
|
+
!(0, _expectUtils.isA)('RegExp', sample)
|
|
292
|
+
) {
|
|
293
|
+
throw new Error('Expected is not a String or a RegExp');
|
|
294
|
+
}
|
|
295
|
+
super(new RegExp(sample), inverse);
|
|
296
|
+
}
|
|
297
|
+
asymmetricMatch(other) {
|
|
298
|
+
const result =
|
|
299
|
+
(0, _expectUtils.isA)('String', other) && this.sample.test(other);
|
|
300
|
+
return this.inverse ? !result : result;
|
|
301
|
+
}
|
|
302
|
+
toString() {
|
|
303
|
+
return `String${this.inverse ? 'Not' : ''}Matching`;
|
|
304
|
+
}
|
|
305
|
+
getExpectedType() {
|
|
306
|
+
return 'string';
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
class CloseTo extends AsymmetricMatcher {
|
|
310
|
+
precision;
|
|
311
|
+
constructor(sample, precision = 2, inverse = false) {
|
|
312
|
+
if (!(0, _expectUtils.isA)('Number', sample)) {
|
|
313
|
+
throw new Error('Expected is not a Number');
|
|
314
|
+
}
|
|
315
|
+
if (!(0, _expectUtils.isA)('Number', precision)) {
|
|
316
|
+
throw new Error('Precision is not a Number');
|
|
317
|
+
}
|
|
318
|
+
super(sample);
|
|
319
|
+
this.inverse = inverse;
|
|
320
|
+
this.precision = precision;
|
|
321
|
+
}
|
|
322
|
+
asymmetricMatch(other) {
|
|
323
|
+
if (!(0, _expectUtils.isA)('Number', other)) {
|
|
324
|
+
return false;
|
|
325
|
+
}
|
|
326
|
+
let result = false;
|
|
327
|
+
if (other === Infinity && this.sample === Infinity) {
|
|
328
|
+
result = true; // Infinity - Infinity is NaN
|
|
329
|
+
} else if (other === -Infinity && this.sample === -Infinity) {
|
|
330
|
+
result = true; // -Infinity - -Infinity is NaN
|
|
331
|
+
} else {
|
|
332
|
+
result =
|
|
333
|
+
Math.abs(this.sample - other) < Math.pow(10, -this.precision) / 2;
|
|
334
|
+
}
|
|
335
|
+
return this.inverse ? !result : result;
|
|
336
|
+
}
|
|
337
|
+
toString() {
|
|
338
|
+
return `Number${this.inverse ? 'Not' : ''}CloseTo`;
|
|
339
|
+
}
|
|
340
|
+
getExpectedType() {
|
|
341
|
+
return 'number';
|
|
342
|
+
}
|
|
343
|
+
toAsymmetricMatcher() {
|
|
344
|
+
return [
|
|
345
|
+
this.toString(),
|
|
346
|
+
this.sample,
|
|
347
|
+
`(${(0, _jestUtil.pluralize)('digit', this.precision)})`
|
|
348
|
+
].join(' ');
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
const any = expectedObject => new Any(expectedObject);
|
|
352
|
+
exports.any = any;
|
|
353
|
+
const anything = () => new Anything();
|
|
354
|
+
exports.anything = anything;
|
|
355
|
+
const arrayContaining = sample => new ArrayContaining(sample);
|
|
356
|
+
exports.arrayContaining = arrayContaining;
|
|
357
|
+
const arrayNotContaining = sample => new ArrayContaining(sample, true);
|
|
358
|
+
exports.arrayNotContaining = arrayNotContaining;
|
|
359
|
+
const objectContaining = sample => new ObjectContaining(sample);
|
|
360
|
+
exports.objectContaining = objectContaining;
|
|
361
|
+
const objectNotContaining = sample => new ObjectContaining(sample, true);
|
|
362
|
+
exports.objectNotContaining = objectNotContaining;
|
|
363
|
+
const stringContaining = expected => new StringContaining(expected);
|
|
364
|
+
exports.stringContaining = stringContaining;
|
|
365
|
+
const stringNotContaining = expected => new StringContaining(expected, true);
|
|
366
|
+
exports.stringNotContaining = stringNotContaining;
|
|
367
|
+
const stringMatching = expected => new StringMatching(expected);
|
|
368
|
+
exports.stringMatching = stringMatching;
|
|
369
|
+
const stringNotMatching = expected => new StringMatching(expected, true);
|
|
370
|
+
exports.stringNotMatching = stringNotMatching;
|
|
371
|
+
const closeTo = (expected, precision) => new CloseTo(expected, precision);
|
|
372
|
+
exports.closeTo = closeTo;
|
|
373
|
+
const notCloseTo = (expected, precision) =>
|
|
374
|
+
new CloseTo(expected, precision, true);
|
|
375
|
+
exports.notCloseTo = notCloseTo;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _jestMatcherUtils = require('jest-matcher-utils');
|
|
8
|
+
var _jestMatchersObject = require('./jestMatchersObject');
|
|
9
|
+
/**
|
|
10
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const resetAssertionsLocalState = () => {
|
|
18
|
+
(0, _jestMatchersObject.setState)({
|
|
19
|
+
assertionCalls: 0,
|
|
20
|
+
expectedAssertionsNumber: null,
|
|
21
|
+
isExpectingAssertions: false,
|
|
22
|
+
numPassingAsserts: 0
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// Create and format all errors related to the mismatched number of `expect`
|
|
27
|
+
// calls and reset the matcher's state.
|
|
28
|
+
const extractExpectedAssertionsErrors = () => {
|
|
29
|
+
const result = [];
|
|
30
|
+
const {
|
|
31
|
+
assertionCalls,
|
|
32
|
+
expectedAssertionsNumber,
|
|
33
|
+
expectedAssertionsNumberError,
|
|
34
|
+
isExpectingAssertions,
|
|
35
|
+
isExpectingAssertionsError
|
|
36
|
+
} = (0, _jestMatchersObject.getState)();
|
|
37
|
+
resetAssertionsLocalState();
|
|
38
|
+
if (
|
|
39
|
+
typeof expectedAssertionsNumber === 'number' &&
|
|
40
|
+
assertionCalls !== expectedAssertionsNumber
|
|
41
|
+
) {
|
|
42
|
+
const numOfAssertionsExpected = (0, _jestMatcherUtils.EXPECTED_COLOR)(
|
|
43
|
+
(0, _jestMatcherUtils.pluralize)('assertion', expectedAssertionsNumber)
|
|
44
|
+
);
|
|
45
|
+
expectedAssertionsNumberError.message =
|
|
46
|
+
`${(0, _jestMatcherUtils.matcherHint)(
|
|
47
|
+
'.assertions',
|
|
48
|
+
'',
|
|
49
|
+
expectedAssertionsNumber.toString(),
|
|
50
|
+
{
|
|
51
|
+
isDirectExpectCall: true
|
|
52
|
+
}
|
|
53
|
+
)}\n\n` +
|
|
54
|
+
`Expected ${numOfAssertionsExpected} to be called but received ${(0,
|
|
55
|
+
_jestMatcherUtils.RECEIVED_COLOR)(
|
|
56
|
+
(0, _jestMatcherUtils.pluralize)('assertion call', assertionCalls || 0)
|
|
57
|
+
)}.`;
|
|
58
|
+
result.push({
|
|
59
|
+
actual: assertionCalls.toString(),
|
|
60
|
+
error: expectedAssertionsNumberError,
|
|
61
|
+
expected: expectedAssertionsNumber.toString()
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
if (isExpectingAssertions && assertionCalls === 0) {
|
|
65
|
+
const expected = (0, _jestMatcherUtils.EXPECTED_COLOR)(
|
|
66
|
+
'at least one assertion'
|
|
67
|
+
);
|
|
68
|
+
const received = (0, _jestMatcherUtils.RECEIVED_COLOR)('received none');
|
|
69
|
+
isExpectingAssertionsError.message = `${(0, _jestMatcherUtils.matcherHint)(
|
|
70
|
+
'.hasAssertions',
|
|
71
|
+
'',
|
|
72
|
+
'',
|
|
73
|
+
{
|
|
74
|
+
isDirectExpectCall: true
|
|
75
|
+
}
|
|
76
|
+
)}\n\nExpected ${expected} to be called but ${received}.`;
|
|
77
|
+
result.push({
|
|
78
|
+
actual: 'none',
|
|
79
|
+
error: isExpectingAssertionsError,
|
|
80
|
+
expected: 'at least one'
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return result;
|
|
84
|
+
};
|
|
85
|
+
var _default = extractExpectedAssertionsErrors;
|
|
86
|
+
exports.default = _default;
|