@goast/core 0.4.0 → 0.4.1
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/esm/_dnt.test_polyfills.d.ts +11 -0
- package/esm/_dnt.test_polyfills.d.ts.map +1 -1
- package/esm/_dnt.test_polyfills.js +14 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.js +2 -2
- package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.js +6 -6
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts → esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts} +1 -12
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/{assert/1.0.6/is_error.js → expect/1.0.12/_assert_is_error.js} +8 -19
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.js +3 -3
- package/esm/deps/jsr.io/@std/expect/{1.0.5/_assertion.d.ts → 1.0.12/_assertions.d.ts} +2 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.js +13 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.d.ts +14 -4
- package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.js +54 -17
- package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.js +9 -9
- package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.js +1 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.js +8 -8
- package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.js +1 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.js +1 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.js +714 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.js +1 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +4 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.js +10 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_types.d.ts +7 -2
- package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_types.js +3 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.d.ts +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.js +60 -1
- package/{script/deps/jsr.io/@std/expect/1.0.5 → esm/deps/jsr.io/@std/expect/1.0.12}/expect.d.ts +10 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/expect.js +101 -3
- package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.js +1 -1
- package/{script/deps/jsr.io/@std/expect/1.0.5 → esm/deps/jsr.io/@std/expect/1.0.12}/mod.d.ts +8 -7
- package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/mod.js +9 -8
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +160 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +199 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.d.ts +6 -1
- package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.js +45 -5
- package/esm/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.d.ts +12 -5
- package/{script/deps/jsr.io/@std/testing/1.0.3 → esm/deps/jsr.io/@std/testing/1.0.9}/bdd.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.js +85 -7
- package/esm/src/collect/helpers.test.js +2 -2
- package/esm/src/transform/helpers.test.js +2 -2
- package/esm/src/utils/action-provider.test.js +2 -2
- package/esm/src/utils/asset-manager.d.ts +1 -0
- package/esm/src/utils/asset-manager.d.ts.map +1 -1
- package/esm/src/utils/asset-manager.js +1 -1
- package/esm/src/utils/common.utils.test.js +2 -2
- package/esm/src/utils/condition.test.js +2 -2
- package/esm/src/utils/endpoint.utils.test.js +2 -2
- package/esm/src/utils/factory.test.js +2 -2
- package/esm/src/utils/generator.utils.test.js +2 -2
- package/esm/src/utils/object.utils.test.js +2 -2
- package/esm/src/utils/schema.utils.test.js +59 -67
- package/esm/src/utils/source-builder.test.js +3 -4
- package/esm/src/utils/string-builder/string-builder.test.js +11 -12
- package/esm/src/utils/string.utils.test.js +2 -2
- package/esm/tests/openapi.test.js +1 -1
- package/package.json +2 -2
- package/script/_dnt.test_polyfills.d.ts +11 -0
- package/script/_dnt.test_polyfills.d.ts.map +1 -1
- package/script/_dnt.test_polyfills.js +14 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.js +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.js +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.js +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.js +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.js +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.js +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.js +2 -2
- package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.js +6 -6
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts → script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts} +1 -12
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/{assert/1.0.6/is_error.js → expect/1.0.12/_assert_is_error.js} +8 -19
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.js +3 -3
- package/script/deps/jsr.io/@std/expect/{1.0.5/_assertion.d.ts → 1.0.12/_assertions.d.ts} +2 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5/_assertion.js → 1.0.12/_assertions.js} +7 -2
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.d.ts +14 -4
- package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.js +61 -18
- package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.js +9 -9
- package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.js +1 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.js +8 -8
- package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.js +1 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.js +1 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.js +748 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.js +1 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +4 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.js +14 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_types.d.ts +7 -2
- package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_types.js +1 -1
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.d.ts +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.js +61 -1
- package/{esm/deps/jsr.io/@std/expect/1.0.5 → script/deps/jsr.io/@std/expect/1.0.12}/expect.d.ts +10 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/expect.js +103 -5
- package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.js +1 -1
- package/{esm/deps/jsr.io/@std/expect/1.0.5 → script/deps/jsr.io/@std/expect/1.0.12}/mod.d.ts +8 -7
- package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/mod.js +9 -8
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +160 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +204 -0
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.d.ts +6 -1
- package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.js +46 -6
- package/script/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.d.ts +12 -5
- package/{esm/deps/jsr.io/@std/testing/1.0.3 → script/deps/jsr.io/@std/testing/1.0.9}/bdd.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.js +84 -6
- package/script/src/collect/helpers.test.js +2 -2
- package/script/src/transform/helpers.test.js +2 -2
- package/script/src/utils/action-provider.test.js +2 -2
- package/script/src/utils/asset-manager.d.ts +1 -0
- package/script/src/utils/asset-manager.d.ts.map +1 -1
- package/script/src/utils/asset-manager.js +1 -1
- package/script/src/utils/common.utils.test.js +2 -2
- package/script/src/utils/condition.test.js +2 -2
- package/script/src/utils/endpoint.utils.test.js +2 -2
- package/script/src/utils/factory.test.js +2 -2
- package/script/src/utils/generator.utils.test.js +2 -2
- package/script/src/utils/object.utils.test.js +2 -2
- package/script/src/utils/schema.utils.test.js +58 -66
- package/script/src/utils/source-builder.test.js +3 -4
- package/script/src/utils/string-builder/string-builder.test.js +11 -12
- package/script/src/utils/string.utils.test.js +2 -2
- package/script/tests/openapi.test.js +1 -1
- package/src/_dnt.test_polyfills.ts +27 -0
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.ts +1 -1
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.ts +1 -1
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.ts +1 -1
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.ts +1 -1
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.ts +1 -1
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.ts +1 -1
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.ts +2 -2
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.ts +6 -6
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.ts +2 -2
- package/src/deps/jsr.io/@std/{assert/1.0.6/is_error.ts → expect/1.0.12/_assert_is_error.ts} +8 -19
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.ts +3 -3
- package/src/deps/jsr.io/@std/expect/1.0.12/_assertions.ts +18 -0
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.ts +69 -18
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.ts +9 -9
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.ts +1 -1
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.ts +10 -9
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.ts +1 -1
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.ts +1 -1
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_matchers.ts +308 -108
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.ts +1 -1
- package/src/deps/jsr.io/@std/expect/1.0.12/_serializer.ts +15 -0
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_types.ts +9 -3
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.ts +83 -1
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/expect.ts +113 -4
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.ts +1 -1
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/mod.ts +9 -8
- package/src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts +214 -0
- package/src/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.ts +68 -9
- package/src/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.ts +98 -12
- package/src/src/collect/helpers.test.ts +2 -2
- package/src/src/transform/helpers.test.ts +2 -2
- package/src/src/utils/action-provider.test.ts +2 -2
- package/src/src/utils/asset-manager.ts +1 -1
- package/src/src/utils/common.utils.test.ts +2 -2
- package/src/src/utils/condition.test.ts +2 -2
- package/src/src/utils/endpoint.utils.test.ts +2 -2
- package/src/src/utils/factory.test.ts +2 -2
- package/src/src/utils/generator.utils.test.ts +2 -2
- package/src/src/utils/object.utils.test.ts +2 -2
- package/src/src/utils/schema.utils.test.ts +68 -67
- package/src/src/utils/source-builder.test.ts +3 -4
- package/src/src/utils/string-builder/string-builder.test.ts +11 -12
- package/src/src/utils/string.utils.test.ts +2 -2
- package/src/tests/openapi.test.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -136
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -45
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -159
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.js +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.js +0 -564
- package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_types.js +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/expect.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/fn.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
- package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -101
- package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -139
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -48
- package/script/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -162
- package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.js +0 -598
- package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/expect.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/fn.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
- package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -106
- package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
- package/src/deps/jsr.io/@std/assert/1.0.6/equal.ts +0 -152
- package/src/deps/jsr.io/@std/assert/1.0.6/equals.ts +0 -52
- package/src/deps/jsr.io/@std/assert/1.0.6/object_match.ts +0 -202
- package/src/deps/jsr.io/@std/expect/1.0.5/_assertion.ts +0 -13
- package/src/deps/jsr.io/@std/internal/1.0.4/assertion_state.ts +0 -111
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_matchers.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_matchers.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.js +0 -0
- /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.ts +0 -0
- /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.ts +0 -0
- /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.ts +0 -0
- /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.ts +0 -0
- /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.ts +0 -0
- /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A {@link https://en.wikipedia.org/wiki/Behavior-driven_development | BDD} interface
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
* the test case passes. The *All hooks will be called once for the whole group
|
|
20
20
|
* while the *Each hooks will be called for each individual test case.
|
|
21
21
|
*
|
|
22
|
-
* - `beforeAll`: Runs before all of the tests in the
|
|
23
|
-
* - `afterAll`: Runs after all of the tests in the
|
|
24
|
-
* - `beforeEach`: Runs before each of the individual test cases in the
|
|
25
|
-
* - `afterEach`: Runs after each of the individual test cases in the
|
|
22
|
+
* - `beforeAll`: Runs before all of the tests in the group.
|
|
23
|
+
* - `afterAll`: Runs after all of the tests in the group finish.
|
|
24
|
+
* - `beforeEach`: Runs before each of the individual test cases in the group.
|
|
25
|
+
* - `afterEach`: Runs after each of the individual test cases in the group.
|
|
26
26
|
*
|
|
27
27
|
* If a hook is registered at the top level, a global test suite will be registered
|
|
28
28
|
* and all tests will belong to it. Hooks registered at the top level must be
|
|
@@ -404,10 +404,11 @@
|
|
|
404
404
|
import * as dntShim from "../../../../../_dnt.test_shims.js";
|
|
405
405
|
|
|
406
406
|
|
|
407
|
-
import { getAssertionState } from "../../internal/1.0.
|
|
408
|
-
import { AssertionError } from "../../assert/1.0.
|
|
407
|
+
import { getAssertionState } from "../../internal/1.0.5/assertion_state.js";
|
|
408
|
+
import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
|
|
409
409
|
import {
|
|
410
410
|
type DescribeDefinition,
|
|
411
|
+
globalSanitizersState,
|
|
411
412
|
type HookNames,
|
|
412
413
|
type ItDefinition,
|
|
413
414
|
type TestSuite,
|
|
@@ -586,9 +587,9 @@ export function it<T>(...args: ItArgs<T>) {
|
|
|
586
587
|
ignore,
|
|
587
588
|
only,
|
|
588
589
|
permissions,
|
|
589
|
-
sanitizeExit,
|
|
590
|
-
sanitizeOps,
|
|
591
|
-
sanitizeResources,
|
|
590
|
+
sanitizeExit = globalSanitizersState.sanitizeExit,
|
|
591
|
+
sanitizeOps = globalSanitizersState.sanitizeOps,
|
|
592
|
+
sanitizeResources = globalSanitizersState.sanitizeResources,
|
|
592
593
|
} = options;
|
|
593
594
|
const opts: dntShim.Deno.TestDefinition = {
|
|
594
595
|
name,
|
|
@@ -600,11 +601,20 @@ export function it<T>(...args: ItArgs<T>) {
|
|
|
600
601
|
TestSuiteInternal.runningCount--;
|
|
601
602
|
}
|
|
602
603
|
|
|
603
|
-
if (assertionState.
|
|
604
|
+
if (assertionState.checkAssertionErrorState()) {
|
|
604
605
|
throw new AssertionError(
|
|
605
606
|
"Expected at least one assertion to be called but received none",
|
|
606
607
|
);
|
|
607
608
|
}
|
|
609
|
+
|
|
610
|
+
if (assertionState.checkAssertionCountSatisfied()) {
|
|
611
|
+
throw new AssertionError(
|
|
612
|
+
`Expected at least ${assertionState.assertionCount} assertion to be called, ` +
|
|
613
|
+
`but received ${assertionState.assertionTriggeredCount}`,
|
|
614
|
+
);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
assertionState.resetAssertionState();
|
|
608
618
|
},
|
|
609
619
|
};
|
|
610
620
|
if (ignore !== undefined) {
|
|
@@ -734,6 +744,80 @@ export function test<T>(...args: ItArgs<T>) {
|
|
|
734
744
|
it(...args);
|
|
735
745
|
}
|
|
736
746
|
|
|
747
|
+
/**
|
|
748
|
+
* Only execute this test case.
|
|
749
|
+
*
|
|
750
|
+
* @example Usage
|
|
751
|
+
* ```ts
|
|
752
|
+
* import { describe, test } from "@std/testing/bdd";
|
|
753
|
+
* import { assertEquals } from "@std/assert";
|
|
754
|
+
*
|
|
755
|
+
* describe("example", () => {
|
|
756
|
+
* test("should pass", () => {
|
|
757
|
+
* assertEquals(2 + 2, 4);
|
|
758
|
+
* });
|
|
759
|
+
*
|
|
760
|
+
* test.only("should pass too", () => {
|
|
761
|
+
* assertEquals(3 + 4, 7);
|
|
762
|
+
* });
|
|
763
|
+
* });
|
|
764
|
+
* ```
|
|
765
|
+
*
|
|
766
|
+
* @param args The test case
|
|
767
|
+
*/
|
|
768
|
+
test.only = function itOnly<T>(...args: ItArgs<T>): void {
|
|
769
|
+
it.only(...args);
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Ignore this test case.
|
|
774
|
+
*
|
|
775
|
+
* @example Usage
|
|
776
|
+
* ```ts
|
|
777
|
+
* import { describe, test } from "@std/testing/bdd";
|
|
778
|
+
* import { assertEquals } from "@std/assert";
|
|
779
|
+
*
|
|
780
|
+
* describe("example", () => {
|
|
781
|
+
* test("should pass", () => {
|
|
782
|
+
* assertEquals(2 + 2, 4);
|
|
783
|
+
* });
|
|
784
|
+
*
|
|
785
|
+
* test.ignore("should pass too", () => {
|
|
786
|
+
* assertEquals(3 + 4, 7);
|
|
787
|
+
* });
|
|
788
|
+
* });
|
|
789
|
+
* ```
|
|
790
|
+
*
|
|
791
|
+
* @param args The test case
|
|
792
|
+
*/
|
|
793
|
+
test.ignore = function itIgnore<T>(...args: ItArgs<T>): void {
|
|
794
|
+
it.ignore(...args);
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
/** Skip this test case.
|
|
798
|
+
*
|
|
799
|
+
* @example Usage
|
|
800
|
+
* ```ts
|
|
801
|
+
* import { describe, test } from "@std/testing/bdd";
|
|
802
|
+
* import { assertEquals } from "@std/assert";
|
|
803
|
+
*
|
|
804
|
+
* describe("example", () => {
|
|
805
|
+
* test("should pass", () => {
|
|
806
|
+
* assertEquals(2 + 2, 4);
|
|
807
|
+
* });
|
|
808
|
+
*
|
|
809
|
+
* test.skip("should pass too", () => {
|
|
810
|
+
* assertEquals(3 + 4, 7);
|
|
811
|
+
* });
|
|
812
|
+
* });
|
|
813
|
+
* ```
|
|
814
|
+
*
|
|
815
|
+
* @param args The test case
|
|
816
|
+
*/
|
|
817
|
+
test.skip = function itSkip<T>(...args: ItArgs<T>): void {
|
|
818
|
+
it.ignore(...args);
|
|
819
|
+
};
|
|
820
|
+
|
|
737
821
|
function addHook<T>(
|
|
738
822
|
name: HookNames,
|
|
739
823
|
fn: (this: T) => void | Promise<void>,
|
|
@@ -754,7 +838,9 @@ function addHook<T>(
|
|
|
754
838
|
}
|
|
755
839
|
|
|
756
840
|
/**
|
|
757
|
-
* Run some shared setup before all of the tests in the
|
|
841
|
+
* Run some shared setup before all of the tests in the group.
|
|
842
|
+
* Useful for async setup in `describe` blocks. Outside them,
|
|
843
|
+
* top-level initialization code should be used instead.
|
|
758
844
|
*
|
|
759
845
|
* @example Usage
|
|
760
846
|
* ```ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// deno-lint-ignore-file no-explicit-any
|
|
2
2
|
import "../../_dnt.test_polyfills.js";
|
|
3
3
|
|
|
4
|
-
import { expect, fn } from '../../deps/jsr.io/@std/expect/1.0.
|
|
5
|
-
import { beforeEach, describe, it, test } from '../../deps/jsr.io/@std/testing/1.0.
|
|
4
|
+
import { expect, fn } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
5
|
+
import { beforeEach, describe, it, test } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
6
6
|
import { collect, collectRecord } from './helpers.js';
|
|
7
7
|
import type { OpenApiCollectorData } from './types.js';
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../_dnt.test_polyfills.js";
|
|
2
|
-
import { expect, fn } from '../../deps/jsr.io/@std/expect/1.0.
|
|
3
|
-
import { describe, test } from '../../deps/jsr.io/@std/testing/1.0.
|
|
2
|
+
import { expect, fn } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
3
|
+
import { describe, test } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
4
4
|
import type { OpenApiDocument } from '../parse/openapi-types.js';
|
|
5
5
|
import type { Deref } from '../parse/types.js';
|
|
6
6
|
import type { ApiSchema } from './api-types.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../_dnt.test_polyfills.js";
|
|
2
|
-
import { expect } from '../../deps/jsr.io/@std/expect/1.0.
|
|
3
|
-
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.
|
|
2
|
+
import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
3
|
+
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
4
4
|
|
|
5
5
|
import { ActionProvider } from './action-provider.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../_dnt.test_polyfills.js";
|
|
2
|
-
import { expect } from '../../deps/jsr.io/@std/expect/1.0.
|
|
3
|
-
import { describe, test } from '../../deps/jsr.io/@std/testing/1.0.
|
|
2
|
+
import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
3
|
+
import { describe, test } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
4
4
|
|
|
5
5
|
import { isNullish } from './common.utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../_dnt.test_polyfills.js";
|
|
2
|
-
import { expect, fn } from '../../deps/jsr.io/@std/expect/1.0.
|
|
3
|
-
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.
|
|
2
|
+
import { expect, fn } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
3
|
+
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
4
4
|
|
|
5
5
|
import { type Condition, evalCondition } from './condition.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../_dnt.test_polyfills.js";
|
|
2
|
-
import { expect } from '../../deps/jsr.io/@std/expect/1.0.
|
|
3
|
-
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.
|
|
2
|
+
import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
3
|
+
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
4
4
|
|
|
5
5
|
import type { ApiEndpoint } from '../transform/api-types.js';
|
|
6
6
|
import { getEndpointUrlPreview } from './endpoint.utils.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../_dnt.test_polyfills.js";
|
|
2
|
-
import { expect } from '../../deps/jsr.io/@std/expect/1.0.
|
|
3
|
-
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.
|
|
2
|
+
import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
3
|
+
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
4
4
|
|
|
5
5
|
import { Factory } from './factory.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../_dnt.test_polyfills.js";
|
|
2
|
-
import { expect } from '../../deps/jsr.io/@std/expect/1.0.
|
|
3
|
-
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.
|
|
2
|
+
import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
3
|
+
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
4
4
|
|
|
5
5
|
import { getInitializedValue } from './generator.utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../_dnt.test_polyfills.js";
|
|
2
|
-
import { expect } from '../../deps/jsr.io/@std/expect/1.0.
|
|
3
|
-
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.
|
|
2
|
+
import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
3
|
+
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
4
4
|
|
|
5
5
|
import { createOverwriteProxy } from './object.utils.js';
|
|
6
6
|
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import "../../_dnt.test_polyfills.js";
|
|
2
|
-
import { expect } from '../../deps/jsr.io/@std/expect/1.0.
|
|
3
|
-
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.
|
|
2
|
+
import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
3
|
+
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
createCombinedSchema,
|
|
7
|
+
createObjectSchema,
|
|
8
|
+
createStringSchema,
|
|
9
|
+
createUnknownProperty,
|
|
10
|
+
} from '../../tests/schema-factory.js';
|
|
6
11
|
import { resolveAnyOfAndAllOf } from './schema.utils.js';
|
|
7
12
|
|
|
8
13
|
describe('resolveAnyOfAndAllOf', () => {
|
|
@@ -15,73 +20,69 @@ describe('resolveAnyOfAndAllOf', () => {
|
|
|
15
20
|
expect(result).toBeUndefined();
|
|
16
21
|
});
|
|
17
22
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
it('should resolve schema from allOf and anyOf', () => {
|
|
24
|
+
const prop0 = createUnknownProperty('prop0');
|
|
25
|
+
const prop1 = createUnknownProperty('prop1');
|
|
26
|
+
const prop2 = createUnknownProperty('prop2');
|
|
27
|
+
const schema = createObjectSchema({
|
|
28
|
+
name: 'root',
|
|
29
|
+
properties: [prop0],
|
|
30
|
+
required: ['prop0'],
|
|
31
|
+
allOf: [createObjectSchema({ properties: [prop1], required: ['prop1'] })],
|
|
32
|
+
anyOf: [createObjectSchema({ properties: [prop2], required: ['prop2'] })],
|
|
33
|
+
});
|
|
27
34
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// ],
|
|
36
|
-
// required: ['prop0', 'prop1', 'prop2'],
|
|
37
|
-
// }),
|
|
38
|
-
// );
|
|
35
|
+
const expectedResult = expect.objectContaining(
|
|
36
|
+
createObjectSchema({
|
|
37
|
+
name: 'root',
|
|
38
|
+
properties: [prop0, prop1, prop2],
|
|
39
|
+
required: ['prop0', 'prop1'],
|
|
40
|
+
}),
|
|
41
|
+
);
|
|
39
42
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
const result = resolveAnyOfAndAllOf(schema, true);
|
|
44
|
+
expect(result).toEqual(expectedResult);
|
|
45
|
+
});
|
|
43
46
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
47
|
+
it('should merge properties from allOf and anyOf recursively', () => {
|
|
48
|
+
const prop1 = createUnknownProperty('prop1');
|
|
49
|
+
const prop2 = createUnknownProperty('prop2');
|
|
50
|
+
const prop3 = createUnknownProperty('prop3');
|
|
51
|
+
const schema = createCombinedSchema({
|
|
52
|
+
name: 'root',
|
|
53
|
+
allOf: [
|
|
54
|
+
createObjectSchema({
|
|
55
|
+
properties: [prop1],
|
|
56
|
+
required: ['prop1'],
|
|
57
|
+
}),
|
|
58
|
+
],
|
|
59
|
+
anyOf: [
|
|
60
|
+
createCombinedSchema({
|
|
61
|
+
allOf: [
|
|
62
|
+
createObjectSchema({
|
|
63
|
+
properties: [prop2],
|
|
64
|
+
required: ['prop2'],
|
|
65
|
+
}),
|
|
66
|
+
],
|
|
67
|
+
anyOf: [
|
|
68
|
+
createObjectSchema({
|
|
69
|
+
properties: [prop3],
|
|
70
|
+
required: ['prop3'],
|
|
71
|
+
}),
|
|
72
|
+
],
|
|
73
|
+
}),
|
|
74
|
+
],
|
|
75
|
+
});
|
|
71
76
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
// ],
|
|
80
|
-
// required: ['prop1'],
|
|
81
|
-
// }),
|
|
82
|
-
// );
|
|
77
|
+
const expectedResult = expect.objectContaining(
|
|
78
|
+
createObjectSchema({
|
|
79
|
+
name: 'root',
|
|
80
|
+
properties: [prop1, prop2, prop3],
|
|
81
|
+
required: ['prop1'],
|
|
82
|
+
}),
|
|
83
|
+
);
|
|
83
84
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
const result = resolveAnyOfAndAllOf(schema, true);
|
|
86
|
+
expect(result).toEqual(expectedResult);
|
|
87
|
+
});
|
|
87
88
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../_dnt.test_polyfills.js";
|
|
2
2
|
import { EOL } from 'node:os';
|
|
3
3
|
|
|
4
|
-
import { expect } from '../../deps/jsr.io/@std/expect/1.0.
|
|
5
|
-
import { beforeEach, describe, it } from '../../deps/jsr.io/@std/testing/1.0.
|
|
4
|
+
import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
5
|
+
import { beforeEach, describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
6
6
|
|
|
7
7
|
import { builderTemplate, SourceBuilder, type SourceBuilderOptions } from './source-builder.js';
|
|
8
8
|
import { appendValueGroup } from './string-builder/utils.js';
|
|
@@ -37,8 +37,7 @@ describe('SourceBuilder', () => {
|
|
|
37
37
|
};
|
|
38
38
|
const sb = SourceBuilder.fromString(str, options);
|
|
39
39
|
expect(sb.toString()).toEqual(str);
|
|
40
|
-
|
|
41
|
-
// expect(sb.options).toEqual(expect.objectContaining(options));
|
|
40
|
+
expect(sb.options).toEqual(expect.objectContaining(options));
|
|
42
41
|
});
|
|
43
42
|
});
|
|
44
43
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../../_dnt.test_polyfills.js";
|
|
2
2
|
import { EOL } from 'node:os';
|
|
3
3
|
|
|
4
|
-
import { expect } from '../../../deps/jsr.io/@std/expect/1.0.
|
|
5
|
-
import { describe, it } from '../../../deps/jsr.io/@std/testing/1.0.
|
|
4
|
+
import { expect } from '../../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
5
|
+
import { describe, it } from '../../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
6
6
|
|
|
7
7
|
import type { StringBuilderOptions } from './options.js';
|
|
8
8
|
import { StringBuilder } from './string-builder.js';
|
|
@@ -14,16 +14,15 @@ describe('fromString', () => {
|
|
|
14
14
|
expect(sb.toString()).toEqual(str);
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
// });
|
|
17
|
+
it('should create a StringBuilder instance with the given string and options', () => {
|
|
18
|
+
const str = 'test string';
|
|
19
|
+
const options: Partial<StringBuilderOptions> = {
|
|
20
|
+
newLine: '\r\n',
|
|
21
|
+
};
|
|
22
|
+
const sb = StringBuilder.fromString(str, options);
|
|
23
|
+
expect(sb.toString()).toEqual(str);
|
|
24
|
+
expect(sb.options).toEqual(expect.objectContaining(options));
|
|
25
|
+
});
|
|
27
26
|
});
|
|
28
27
|
|
|
29
28
|
describe('build', () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../_dnt.test_polyfills.js";
|
|
2
|
-
import { expect } from '../../deps/jsr.io/@std/expect/1.0.
|
|
3
|
-
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.
|
|
2
|
+
import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
|
|
3
|
+
import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
getWords,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
verify,
|
|
11
11
|
} from '@goast/test-utils';
|
|
12
12
|
|
|
13
|
-
import { describe, it } from '../deps/jsr.io/@std/testing/1.0.
|
|
13
|
+
import { describe, it } from '../deps/jsr.io/@std/testing/1.0.9/bdd.js';
|
|
14
14
|
import { OpenApiParser, toCustomCase } from '../mod.js';
|
|
15
15
|
|
|
16
16
|
const filePaths: { [P in OpenApiVersion]: string } = {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deep equality comparison used in assertions.
|
|
3
|
-
*
|
|
4
|
-
* @param c The actual value
|
|
5
|
-
* @param d The expected value
|
|
6
|
-
* @returns `true` if the values are deeply equal, `false` otherwise
|
|
7
|
-
*
|
|
8
|
-
* @example Usage
|
|
9
|
-
* ```ts
|
|
10
|
-
* import { equal } from "@std/assert/equal";
|
|
11
|
-
*
|
|
12
|
-
* equal({ foo: "bar" }, { foo: "bar" }); // Returns `true`
|
|
13
|
-
* equal({ foo: "bar" }, { foo: "baz" }); // Returns `false
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare function equal(c: unknown, d: unknown): boolean;
|
|
17
|
-
//# sourceMappingURL=equal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/equal.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CA0HrD"}
|