From 47330a0570a209bc831065ea8ed9de7931b36a74 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Thu, 22 Aug 2024 17:10:37 -0600 Subject: [PATCH] massive reorganization and rename --- .github/workflows/test.yml | 396 +++++++++--------- examples/ckbtc/package.json | 2 +- examples/ckbtc/test/pretest.ts | 2 +- examples/ckbtc/test/test.ts | 4 +- .../class_migration/add_example_dependency.js | 4 +- .../copy_generated_candid_from_example.js | 2 +- scripts/class_migration/modify_pretest.js | 2 +- scripts/class_migration/name_package.js | 2 +- scripts/class_migration/update_test.js | 2 +- .../complex_candid_definition_memo.ts | 0 .../candid/candid_definition_arb/index.ts | 0 .../recursive_candid_definition_memo.ts | 0 .../simple_candid_definition_arb.ts | 0 .../candid/candid_definition_arb/types.ts | 2 +- .../candid/candid_return_type_arb.ts | 0 .../arbitraries/candid/candid_type.ts | 0 .../candid/candid_value_and_meta_arb.ts | 2 +- .../candid_value_and_meta_arb_generator.ts | 0 .../arbitraries/candid/candid_values_arb.ts | 0 .../constructed/blob_arb/definition_arb.ts | 2 +- .../candid/constructed/blob_arb/index.ts | 0 .../candid/constructed/blob_arb/values_arb.ts | 0 .../constructed/opt_arb/definition_arb.ts | 2 +- .../candid/constructed/opt_arb/index.ts | 0 .../candid/constructed/opt_arb/values_arb.ts | 0 .../constructed/record_arb/definition_arb.ts | 2 +- .../candid/constructed/record_arb/index.ts | 0 .../constructed/record_arb/values_arb.ts | 0 .../constructed/tuple_arb/definition_arb.ts | 2 +- .../candid/constructed/tuple_arb/index.ts | 0 .../constructed/tuple_arb/values_arbs.ts | 0 .../variant_arb/definition_arbs.ts | 2 +- .../candid/constructed/variant_arb/index.ts | 0 .../constructed/variant_arb/values_arb.ts | 0 .../constructed/vec_arb/definition_arb.ts | 2 +- .../candid/constructed/vec_arb/index.ts | 0 .../candid/constructed/vec_arb/values_arb.ts | 0 .../candid/corresponding_js_type.ts | 0 .../arbitraries/candid/primitive/bool.ts | 0 .../candid/primitive/floats/float32_arb.ts | 0 .../candid/primitive/floats/float64_arb.ts | 0 .../candid/primitive/ints/index.ts | 0 .../candid/primitive/ints/int16_arb.ts | 0 .../candid/primitive/ints/int32_arb.ts | 0 .../candid/primitive/ints/int64_arb.ts | 0 .../candid/primitive/ints/int8_arb.ts | 0 .../candid/primitive/ints/int_arb.ts | 0 .../candid/primitive/nats/index.ts | 0 .../candid/primitive/nats/nat16_arb.ts | 0 .../candid/primitive/nats/nat32_arb.ts | 0 .../candid/primitive/nats/nat64_arb.ts | 0 .../candid/primitive/nats/nat8_arb.ts | 0 .../candid/primitive/nats/nat_arb.ts | 0 .../arbitraries/candid/primitive/null.ts | 0 .../arbitraries/candid/primitive/text.ts | 0 .../arbitraries/candid/primitive/void.ts | 0 .../candid/recursive/definition_arb.ts | 2 +- .../arbitraries/candid/recursive/index.ts | 0 .../candid/recursive/values_arb.ts | 0 .../reference/func_arb/definition_arb.ts | 4 +- .../candid/reference/func_arb/index.ts | 0 .../candid/reference/func_arb/values_arb.ts | 0 .../candid/reference/principal_arb.ts | 0 .../reference/service_arb/definition_arb.ts | 2 +- .../candid/reference/service_arb/index.ts | 0 .../service_arb/service_method_arb.ts | 4 +- .../reference/service_arb/values_arb.ts | 0 .../candid_type_to_azle_candid_type.ts | 2 +- .../candid/simple_type_arbs/definition_arb.ts | 0 .../candid/simple_type_arbs/values_arb.ts | 0 .../candid/to_src_literal/bigint.ts | 0 .../arbitraries/candid/to_src_literal/blob.ts | 0 .../candid/to_src_literal/boolean.ts | 0 .../candid/to_src_literal/float.ts | 0 .../arbitraries/candid/to_src_literal/null.ts | 0 .../candid/to_src_literal/number.ts | 0 .../candid/to_src_literal/principal.ts | 0 .../candid/to_src_literal/string.ts | 0 .../arbitraries/candid/to_src_literal/void.ts | 0 .../property}/arbitraries/canister_arb.ts | 0 .../arbitraries/canister_methods/index.ts | 0 .../canister_methods/init_method_arb.ts | 0 .../inspect_message_method_arb.ts | 0 .../canister_methods/post_upgrade_arb.ts | 0 .../pre_upgrade_method_arb.ts | 0 .../canister_methods/query_method_arb.ts | 0 .../canister_methods/update_method_arb.ts | 0 .../property}/arbitraries/config.ts | 0 .../property}/arbitraries/http/body_arb.ts | 0 .../property}/arbitraries/http/headers_arb.ts | 0 .../property}/arbitraries/http/request_arb.ts | 2 +- .../arbitraries/http/response_arb.ts | 2 +- .../arbitraries/js_function_name_arb.ts | 0 .../arbitraries/stable_b_tree_map_arb.ts | 0 .../property}/arbitraries/types.ts | 0 .../arbitraries/unique_identifier_arb.ts | 0 .../arbitraries/unique_primitive_arb.ts | 0 .../property}/are_params_correctly_ordered.ts | 0 .../property}/get_actor.ts | 2 +- {property_tests => test/property}/index.ts | 0 .../property}/set_experimental.ts | 0 .../property}/test/index.ts | 2 +- .../property}/tsconfig.json | 0 .../property}/visitors/LICENCE | 0 .../property}/visitors/cli-string-visitor.ts | 0 .../async_await/.gitignore | 0 .../async_await/dfx.json | 0 .../async_await/jest.config.js | 0 .../async_await/package-lock.json | 0 .../class_api/async_await/package.json | 17 + .../async_await/src/async_await.ts | 0 .../async_await/test/pretest.ts | 2 +- .../async_await/test/test.ts | 2 +- .../async_await/tsconfig.json | 0 .../audio_recorder/.gitignore | 0 .../audio_recorder/dfx.json | 0 .../audio_recorder/jest.config.js | 0 .../audio_recorder/package-lock.json | 0 .../audio_recorder/package.json | 2 +- .../audio_recorder/src/index.ts | 0 .../audio_recorder/test/pretest.ts | 2 +- .../audio_recorder/test/test.ts | 2 +- .../audio_recorder/tsconfig.json | 0 .../bitcoin/.bitcoin.conf | 0 .../bitcoin/.gitignore | 0 .../bitcoin/README.md | 0 .../bitcoin/dfx.json | 0 .../bitcoin/jest.config.js | 0 .../bitcoin/package-lock.json | 0 .../bitcoin/package.json | 2 +- .../bitcoin/scripts/deploy.sh | 0 .../bitcoin/scripts/install.sh | 0 .../bitcoin/src/index.ts | 0 .../bitcoin/test/bitcoin_cli.ts | 0 .../bitcoin/test/pretest.ts | 8 +- .../bitcoin/test/setup.ts | 0 .../bitcoin/test/test.ts | 2 +- .../bitcoin/test/wallets.ts | 0 .../bitcoin/tsconfig.json | 0 .../blob_array/.gitignore | 0 .../blob_array/README.md | 0 .../blob_array/dfx.json | 0 .../blob_array/jest.config.js | 0 .../blob_array/package-lock.json | 0 .../blob_array}/package.json | 2 +- .../blob_array/src/index.ts | 0 .../blob_array/test/pretest.ts | 2 +- .../blob_array/test/test.ts | 2 +- .../blob_array/tsconfig.json | 0 .../bytes/.gitignore | 0 .../bytes/dfx.json | 0 .../bytes/jest.config.js | 0 .../bytes/package-lock.json | 0 .../candid_rpc/class_api/bytes/package.json | 17 + .../bytes/src/index.ts | 0 .../test/example_files/example_1000_kb.txt | 0 .../test/example_files/example_100_kb.txt | 0 .../test/example_files/example_10_kb.txt | 0 .../bytes/test/example_files/example_1_kb.txt | 0 .../test/example_files/example_2000_kb.txt | 0 .../bytes/test/pretest.ts | 2 +- .../bytes/test/test.ts | 2 +- .../bytes/tsconfig.json | 0 .../call_raw/.gitignore | 0 .../call_raw/dfx.json | 0 .../call_raw/jest.config.js | 0 .../call_raw/package-lock.json | 0 .../bytes => class_api/call_raw}/package.json | 2 +- .../call_raw/src/index.ts | 0 .../call_raw/test/pretest.ts | 8 +- .../call_raw/test/test.ts | 2 +- .../call_raw/tsconfig.json | 0 .../candid_encoding/.gitignore | 0 .../candid_encoding/dfx.json | 0 .../candid_encoding/jest.config.js | 0 .../candid_encoding/package-lock.json | 0 .../candid_encoding}/package.json | 2 +- .../candid_encoding/src/index.ts | 0 .../candid_encoding/test/pretest.ts | 2 +- .../candid_encoding/test/test.ts | 2 +- .../candid_encoding/tsconfig.json | 0 .../candid_keywords/.gitignore | 0 .../candid_keywords/dfx.json | 0 .../candid_keywords/jest.config.js | 0 .../candid_keywords/package-lock.json | 0 .../candid_keywords/package.json | 2 +- .../candid_keywords/src/index.ts | 0 .../candid_keywords/test/pretest.ts | 2 +- .../candid_keywords/test/test.ts | 2 +- .../candid_keywords/tsconfig.json | 0 .../canister/.gitignore | 0 .../canister/dfx.json | 0 .../canister/jest.config.js | 0 .../canister/package-lock.json | 0 .../canister/package.json | 2 +- .../canister/src/index.ts | 0 .../canister/src/some_canister.did | 0 .../canister/src/some_canister.ts | 0 .../canister/test/pretest.ts | 8 +- .../canister/test/test.ts | 2 +- .../canister/tsconfig.json | 0 .../complex_init/.gitignore | 0 .../complex_init/dfx.json | 0 .../complex_init/jest.config.js | 0 .../complex_init/package-lock.json | 0 .../complex_init}/package.json | 2 +- .../complex_init/src/complex_init/index.ts | 0 .../complex_init/src/rec_init/index.ts | 0 .../complex_init/test/pretest.ts | 2 +- .../complex_init/test/test.ts | 2 +- .../complex_init/tsconfig.json | 0 .../complex_types/.gitignore | 0 .../complex_types/dfx.json | 0 .../complex_types/jest.config.js | 0 .../complex_types/package-lock.json | 0 .../complex_types}/package.json | 2 +- .../complex_types/src/candid_types.ts | 0 .../complex_types/src/index.ts | 0 .../complex_types/src/posts.ts | 0 .../complex_types/src/reactions.ts | 0 .../complex_types/src/state.ts | 0 .../complex_types/src/threads.ts | 0 .../complex_types/src/users.ts | 0 .../complex_types/test/pretest.ts | 2 +- .../complex_types/test/test.ts | 2 +- .../complex_types/tsconfig.json | 0 .../composite_queries/.gitignore | 0 .../composite_queries/dfx.json | 0 .../composite_queries/jest.config.js | 0 .../composite_queries/package-lock.json | 0 .../class_api/composite_queries/package.json | 17 + .../composite_queries/src/canister1/index.ts | 0 .../composite_queries/src/canister2/index.did | 0 .../composite_queries/src/canister2/index.ts | 0 .../composite_queries/src/canister3/index.did | 0 .../composite_queries/src/canister3/index.ts | 0 .../composite_queries/test/pretest.ts | 2 +- .../composite_queries/test/test.ts | 2 +- .../composite_queries/tsconfig.json | 0 .../counter/.gitignore | 0 .../counter/dfx.json | 0 .../counter/jest.config.js | 0 .../counter/package-lock.json | 0 .../date => class_api/counter}/package.json | 2 +- .../counter/src/index.ts | 0 .../counter/test/pretest.ts | 8 +- .../counter/test/test.ts | 2 +- .../counter/tsconfig.json | 0 .../cross_canister_calls/.gitignore | 0 .../cross_canister_calls/dfx.json | 0 .../cross_canister_calls/jest.config.js | 0 .../cross_canister_calls/package-lock.json | 0 .../cross_canister_calls/package.json | 17 + .../src/canister1/index.ts | 0 .../src/canister2/index.did | 0 .../src/canister2/index.ts | 0 .../src/canister2/types.ts | 0 .../cross_canister_calls/test/pretest.ts | 2 +- .../cross_canister_calls/test/test.ts | 2 +- .../cross_canister_calls/tsconfig.json | 0 .../cycles/.gitignore | 0 .../cycles/dfx.json | 0 .../cycles/jest.config.js | 0 .../cycles/package-lock.json | 0 .../candid_rpc/class_api/cycles/package.json | 17 + .../cycles/src/cycles/index.did | 0 .../cycles/src/cycles/index.ts | 0 .../cycles/src/intermediary/index.ts | 0 .../cycles/test/pretest.ts | 2 +- .../cycles/test/test.ts | 2 +- .../cycles/tsconfig.json | 0 .../date/.gitignore | 0 .../{class_syntax => class_api}/date/dfx.json | 0 .../date/jest.config.js | 0 .../date/package-lock.json | 0 .../candid_rpc/class_api/date/package.json | 17 + .../date/src/index.ts | 0 .../date/test/pretest.ts | 2 +- .../date/test/test.ts | 2 +- .../date/tsconfig.json | 0 .../ethereum_json_rpc/.gitignore | 0 .../ethereum_json_rpc/dfx.json | 0 .../ethereum_json_rpc/jest.config.js | 0 .../ethereum_json_rpc/package-lock.json | 0 .../ethereum_json_rpc/package.json | 2 +- .../ethereum_json_rpc/src/index.ts | 0 .../ethereum_json_rpc/test/pretest.ts | 2 +- .../ethereum_json_rpc/test/test.ts | 2 +- .../ethereum_json_rpc/tsconfig.json | 0 .../func_types/.gitignore | 0 .../func_types/canisters/func_types/index.ts | 0 .../func_types/canisters/notifiers/index.did | 0 .../func_types/canisters/notifiers/index.ts | 0 .../func_types/dfx.json | 0 .../func_types/jest.config.js | 0 .../func_types/package-lock.json | 0 .../func_types}/package.json | 2 +- .../func_types/test/pretest.ts | 2 +- .../func_types/test/test.ts | 2 +- .../func_types/tsconfig.json | 0 .../heartbeat/.gitignore | 0 .../heartbeat/dfx.json | 0 .../heartbeat/jest.config.js | 0 .../heartbeat/package-lock.json | 0 .../heartbeat}/package.json | 2 +- .../heartbeat/src/heartbeat_async/index.ts | 0 .../heartbeat/src/heartbeat_sync/index.ts | 0 .../heartbeat/test/pretest.ts | 8 +- .../heartbeat/test/test.ts | 2 +- .../heartbeat/tsconfig.json | 0 .../ic_api/.gitignore | 0 .../ic_api/dfx.json | 0 .../ic_api/jest.config.js | 0 .../ic_api/package-lock.json | 0 .../ic_api}/package.json | 2 +- .../ic_api/src/index.ts | 0 .../ic_api/test/pretest.ts | 2 +- .../ic_api/test/test.ts | 2 +- .../ic_api/tsconfig.json | 0 .../icrc/.gitignore | 0 .../icrc/README.md | 0 .../icrc/canisters/proxy/index.ts | 0 .../{class_syntax => class_api}/icrc/dfx.json | 0 .../icrc/jest.config.js | 0 .../icrc/package-lock.json | 0 .../icrc/package.json | 2 +- .../icrc/params.did | 0 .../icrc/test/pretest.ts | 2 +- .../icrc/test/test.ts | 2 +- .../icrc/tsconfig.json | 0 .../imports/.gitignore | 0 .../imports/dfx.json | 0 .../imports/jest.config.js | 0 .../imports/package-lock.json | 0 .../imports/package.json | 2 +- .../imports/src/index.ts | 0 .../imports/src/library.ts | 0 .../imports/test/pretest.ts | 8 +- .../imports/test/test.ts | 2 +- .../imports/tsconfig.json | 0 .../init/.gitignore | 0 .../{class_syntax => class_api}/init/dfx.json | 0 .../init/jest.config.js | 0 .../init/package-lock.json | 0 .../init/package.json | 2 +- .../init/src/index.ts | 0 .../init/test/pretest.ts | 2 +- .../init/test/test.ts | 2 +- .../init/tsconfig.json | 0 .../inspect_message/.gitignore | 0 .../inspect_message/dfx.json | 0 .../inspect_message/jest.config.js | 0 .../inspect_message/package-lock.json | 0 .../inspect_message}/package.json | 2 +- .../inspect_message/src/index.ts | 0 .../inspect_message/test/pretest.ts | 2 +- .../inspect_message/test/test.ts | 2 +- .../inspect_message/tsconfig.json | 0 .../key_value_store/.gitignore | 0 .../key_value_store/dfx.json | 0 .../key_value_store/jest.config.js | 0 .../key_value_store/package-lock.json | 0 .../key_value_store}/package.json | 2 +- .../key_value_store/src/index.ts | 0 .../key_value_store/test/pretest.ts | 2 +- .../key_value_store/test/test.ts | 2 +- .../key_value_store/tsconfig.json | 0 .../ledger_canister/.gitignore | 0 .../ledger_canister/dfx.json | 0 .../ledger_canister/jest.config.js | 0 .../ledger_canister/package-lock.json | 0 .../class_api/ledger_canister/package.json | 17 + .../src/icp_ledger/ledger.private.did | 0 .../src/icp_ledger/ledger.public.did | 0 .../src/ledger_canister/index.ts | 0 .../ledger_canister/test/pretest.ts | 2 +- .../ledger_canister/test/test.ts | 4 +- .../ledger_canister/tsconfig.json | 0 .../list_of_lists/.gitignore | 0 .../list_of_lists/dfx.json | 0 .../list_of_lists/jest.config.js | 0 .../list_of_lists/package-lock.json | 0 .../list_of_lists/package.json | 2 +- .../list_of_lists/src/index.ts | 0 .../list_of_lists/test/pretest.ts | 2 +- .../list_of_lists/test/test.ts | 2 +- .../list_of_lists/tsconfig.json | 0 .../management_canister/.gitignore | 0 .../management_canister/dfx.json | 0 .../management_canister/jest.config.js | 0 .../management_canister/package-lock.json | 0 .../management_canister/package.json | 17 + .../management_canister/src/index.ts | 0 .../management_canister/src/test.wasm | Bin .../management_canister/test/pretest.ts | 2 +- .../management_canister/test/test.ts | 2 +- .../management_canister/tsconfig.json | 0 .../manual_reply/.gitignore | 0 .../manual_reply/dfx.json | 0 .../manual_reply/jest.config.js | 0 .../manual_reply/package-lock.json | 0 .../manual_reply}/package.json | 2 +- .../manual_reply/src/index.ts | 0 .../manual_reply/test/pretest.ts | 2 +- .../manual_reply/test/test.ts | 2 +- .../manual_reply/tsconfig.json | 0 .../motoko_examples/README.md | 0 .../motoko_examples/calc/.gitignore | 0 .../motoko_examples/calc/README.md | 0 .../motoko_examples/calc/dfx.json | 0 .../motoko_examples/calc/jest.config.js | 0 .../motoko_examples/calc/package-lock.json | 0 .../motoko_examples/calc}/package.json | 2 +- .../motoko_examples/calc/src/index.ts | 0 .../motoko_examples/calc/test/pretest.ts | 2 +- .../motoko_examples/calc/test/test.ts | 2 +- .../motoko_examples/calc/tsconfig.json | 0 .../motoko_examples/counter/.gitignore | 0 .../motoko_examples/counter/README.md | 0 .../motoko_examples/counter/dfx.json | 0 .../motoko_examples/counter/jest.config.js | 0 .../motoko_examples/counter/package-lock.json | 0 .../motoko_examples/counter/package.json | 17 + .../motoko_examples/counter/src/index.ts | 0 .../motoko_examples/counter/test/pretest.ts | 2 +- .../motoko_examples/counter/test/test.ts | 2 +- .../motoko_examples/counter/tsconfig.json | 0 .../motoko_examples/echo/.gitignore | 0 .../motoko_examples/echo/README.md | 0 .../motoko_examples/echo/dfx.json | 0 .../motoko_examples/echo/jest.config.js | 0 .../motoko_examples/echo/package-lock.json | 0 .../motoko_examples/echo}/package.json | 2 +- .../motoko_examples/echo/src/index.ts | 0 .../motoko_examples/echo/test/pretest.ts | 2 +- .../motoko_examples/echo/test/test.ts | 2 +- .../motoko_examples/echo/tsconfig.json | 0 .../motoko_examples/factorial/.gitignore | 0 .../motoko_examples/factorial/README.md | 0 .../motoko_examples/factorial/dfx.json | 0 .../motoko_examples/factorial/jest.config.js | 0 .../factorial/package-lock.json | 0 .../motoko_examples/factorial}/package.json | 2 +- .../motoko_examples/factorial/src/index.ts | 0 .../motoko_examples/factorial/test/pretest.ts | 2 +- .../motoko_examples/factorial/test/test.ts | 2 +- .../motoko_examples/factorial/tsconfig.json | 0 .../motoko_examples/hello-world/.gitignore | 0 .../motoko_examples/hello-world/README.md | 0 .../motoko_examples/hello-world/dfx.json | 0 .../hello-world/jest.config.js | 0 .../hello-world/package-lock.json | 0 .../motoko_examples/hello-world/package.json | 17 + .../motoko_examples/hello-world/src/index.ts | 0 .../hello-world/test/pretest.ts | 2 +- .../motoko_examples/hello-world/test/test.ts | 2 +- .../motoko_examples/hello-world/tsconfig.json | 0 .../motoko_examples/hello/.gitignore | 0 .../motoko_examples/hello/NOTICE | 0 .../motoko_examples/hello/README.md | 0 .../motoko_examples/hello/dfx.json | 0 .../motoko_examples/hello/jest.config.js | 0 .../motoko_examples/hello/package-lock.json | 0 .../motoko_examples/hello/package.json | 2 +- .../motoko_examples/hello/src/hello/index.ts | 0 .../hello/src/hello_assets/assets/favicon.ico | Bin .../hello/src/hello_assets/assets/logo.png | Bin .../hello/src/hello_assets/assets/main.css | 0 .../src/hello_assets/assets/sample-asset.txt | 0 .../hello/src/hello_assets/src/index.html | 0 .../hello/src/hello_assets/src/index.js | 0 .../motoko_examples/hello/test/pretest.ts | 2 +- .../motoko_examples/hello/test/test.ts | 2 +- .../motoko_examples/hello/tsconfig.json | 0 .../motoko_examples/hello/webpack.config.js | 0 .../motoko_examples/http_counter/.gitignore | 0 .../motoko_examples/http_counter/NOTICE | 0 .../motoko_examples/http_counter/README.md | 0 .../motoko_examples/http_counter/dfx.json | 0 .../http_counter/jest.config.js | 0 .../http_counter/package-lock.json | 0 .../motoko_examples/http_counter/package.json | 2 +- .../motoko_examples/http_counter/src/index.ts | 0 .../http_counter/test/pretest.ts | 2 +- .../motoko_examples/http_counter/test/test.ts | 2 +- .../http_counter/tsconfig.json | 0 .../minimal-counter-dapp/.gitignore | 0 .../minimal-counter-dapp/NOTICE | 0 .../minimal-counter-dapp/README.md | 0 .../minimal-counter-dapp/dfx.json | 0 .../minimal-counter-dapp/jest.config.js | 0 .../minimal-counter-dapp/package-lock.json | 0 .../minimal-counter-dapp/package.json | 2 +- .../src/minimal_dapp/index.ts | 0 .../src/minimal_dapp_assets/assets/logo.png | Bin .../src/minimal_dapp_assets/assets/main.css | 0 .../assets/sample-asset.txt | 0 .../src/minimal_dapp_assets/src/index.html | 0 .../src/minimal_dapp_assets/src/index.js | 0 .../minimal-counter-dapp/test/pretest.ts | 2 +- .../minimal-counter-dapp/test/test.ts | 2 +- .../minimal-counter-dapp/tsconfig.json | 0 .../minimal-counter-dapp/webpack.config.js | 0 .../persistent-storage/.gitignore | 0 .../motoko_examples/persistent-storage/NOTICE | 0 .../persistent-storage/README.md | 0 .../persistent-storage/dfx.json | 0 .../persistent-storage/jest.config.js | 0 .../persistent-storage/package-lock.json | 0 .../persistent-storage/package.json | 17 + .../persistent-storage/src/index.ts | 0 .../persistent-storage/test/pretest.ts | 2 +- .../persistent-storage/test/test.ts | 2 +- .../persistent-storage/tsconfig.json | 0 .../motoko_examples/phone-book/.gitignore | 0 .../motoko_examples/phone-book/NOTICE | 0 .../motoko_examples/phone-book/README.md | 0 .../motoko_examples/phone-book/dfx.json | 0 .../motoko_examples/phone-book/jest.config.js | 0 .../phone-book/package-lock.json | 0 .../motoko_examples/phone-book/package.json | 2 +- .../src/declarations/phone_book/index.d.ts | 0 .../src/declarations/phone_book/index.js | 0 .../declarations/phone_book/phone_book.did | 0 .../phone_book/phone_book.did.d.ts | 0 .../declarations/phone_book/phone_book.did.js | 0 .../phone-book/src/phone_book/index.ts | 0 .../src/www/assets/sample-asset.txt | 0 .../phone-book/src/www/src/index.html | 0 .../phone-book/src/www/src/index.jsx | 0 .../phone-book/test/pretest.ts | 2 +- .../motoko_examples/phone-book/test/test.ts | 2 +- .../motoko_examples/phone-book/tsconfig.json | 0 .../phone-book/tsconfig.webpack.json | 0 .../phone-book/webpack.config.js | 0 .../motoko_examples/quicksort/.gitignore | 0 .../motoko_examples/quicksort/README.md | 0 .../motoko_examples/quicksort/dfx.json | 0 .../motoko_examples/quicksort/jest.config.js | 0 .../quicksort/package-lock.json | 0 .../motoko_examples/quicksort/package.json | 17 + .../quicksort/src/comparison.ts | 0 .../motoko_examples/quicksort/src/index.ts | 0 .../quicksort/src/quicksort.ts | 0 .../motoko_examples/quicksort/test/pretest.ts | 2 +- .../motoko_examples/quicksort/test/test.ts | 2 +- .../motoko_examples/quicksort/tsconfig.json | 0 .../motoko_examples/simple-to-do/.gitignore | 0 .../motoko_examples/simple-to-do/README.md | 0 .../motoko_examples/simple-to-do/dfx.json | 0 .../simple-to-do/jest.config.js | 0 .../simple-to-do/package-lock.json | 0 .../motoko_examples/simple-to-do/package.json | 17 + .../motoko_examples/simple-to-do/src/index.ts | 0 .../simple-to-do/test/pretest.ts | 2 +- .../motoko_examples/simple-to-do/test/test.ts | 2 +- .../simple-to-do/tsconfig.json | 0 .../motoko_examples/superheroes/.gitignore | 0 .../motoko_examples/superheroes/NOTICE | 0 .../motoko_examples/superheroes/README.md | 0 .../motoko_examples/superheroes/dfx.json | 0 .../superheroes/jest.config.js | 0 .../superheroes/package-lock.json | 0 .../motoko_examples/superheroes/package.json | 2 +- .../superheroes/src/declarations/index.d.ts | 0 .../superheroes/src/declarations/index.js | 0 .../src/declarations/superheroes.did | 0 .../src/declarations/superheroes.did.d.ts | 0 .../src/declarations/superheroes.did.js | 0 .../superheroes/src/superheroes/index.ts | 0 .../superheroes/src/www/components/create.jsx | 0 .../superheroes/src/www/components/delete.jsx | 0 .../superheroes/src/www/components/read.jsx | 0 .../superheroes/src/www/components/update.jsx | 0 .../superheroes/src/www/index.html | 0 .../superheroes/src/www/index.jsx | 0 .../superheroes/test/pretest.ts | 2 +- .../motoko_examples/superheroes/test/test.ts | 2 +- .../motoko_examples/superheroes/tsconfig.json | 0 .../superheroes/tsconfig.webpack.json | 0 .../superheroes/webpack.config.js | 0 .../threshold_ecdsa/.gitignore | 0 .../motoko_examples/threshold_ecdsa/README.md | 0 .../motoko_examples/threshold_ecdsa/dfx.json | 0 .../threshold_ecdsa/jest.config.js | 0 .../threshold_ecdsa/package-lock.json | 0 .../threshold_ecdsa/package.json | 2 +- .../threshold_ecdsa/src/index.ts | 0 .../threshold_ecdsa/test/pretest.ts | 2 +- .../threshold_ecdsa/test/test.ts | 2 +- .../threshold_ecdsa/tsconfig.json | 0 .../motoko_examples/whoami/.gitignore | 0 .../motoko_examples/whoami/README.md | 0 .../motoko_examples/whoami/dfx.json | 0 .../motoko_examples/whoami/jest.config.js | 0 .../motoko_examples/whoami/package-lock.json | 0 .../motoko_examples/whoami/package.json | 2 +- .../motoko_examples/whoami/src/index.ts | 0 .../motoko_examples/whoami/test/pretest.ts | 2 +- .../motoko_examples/whoami/test/test.ts | 2 +- .../motoko_examples/whoami/tsconfig.json | 0 .../new/.gitignore | 0 .../new/jest.config.js | 0 .../new/package-lock.json | 0 .../new}/package.json | 2 +- .../new/test/test.ts | 0 .../new/tsconfig.json | 0 .../new_candid_rpc/.gitignore | 0 .../new_candid_rpc/jest.config.js | 0 .../new_candid_rpc/package-lock.json | 0 .../new_candid_rpc}/package.json | 2 +- .../new_candid_rpc/test/test.ts | 0 .../new_candid_rpc/tsconfig.json | 0 .../notify_raw/.gitignore | 0 .../notify_raw/dfx.json | 0 .../notify_raw/jest.config.js | 0 .../notify_raw/package-lock.json | 0 .../notify_raw}/package.json | 2 +- .../notify_raw/src/canister1/index.ts | 0 .../notify_raw/src/canister2/index.ts | 0 .../notify_raw/test/pretest.ts | 2 +- .../notify_raw/test/test.ts | 2 +- .../notify_raw/tsconfig.json | 0 .../null_example/.gitignore | 0 .../null_example/dfx.json | 0 .../null_example/jest.config.js | 0 .../null_example/package-lock.json | 0 .../null_example}/package.json | 2 +- .../null_example/src/index.ts | 0 .../null_example/test/pretest.ts | 2 +- .../null_example/test/test.ts | 2 +- .../null_example/tsconfig.json | 0 .../optional_types/.gitignore | 0 .../optional_types/dfx.json | 0 .../optional_types/jest.config.js | 0 .../optional_types/package-lock.json | 0 .../optional_types/package.json | 2 +- .../optional_types/src/index.ts | 0 .../optional_types/test/pretest.ts | 2 +- .../optional_types/test/test.ts | 2 +- .../optional_types/tsconfig.json | 0 .../outgoing_http_requests/.gitignore | 0 .../outgoing_http_requests/dfx.json | 0 .../outgoing_http_requests/jest.config.js | 0 .../outgoing_http_requests/package-lock.json | 0 .../outgoing_http_requests/package.json | 2 +- .../outgoing_http_requests/src/index.ts | 0 .../outgoing_http_requests/test/pretest.ts | 2 +- .../outgoing_http_requests/test/test.ts | 2 +- .../outgoing_http_requests/tsconfig.json | 0 .../pre_and_post_upgrade/.gitignore | 0 .../pre_and_post_upgrade/dfx.json | 0 .../pre_and_post_upgrade/jest.config.js | 0 .../pre_and_post_upgrade/package-lock.json | 0 .../pre_and_post_upgrade}/package.json | 2 +- .../pre_and_post_upgrade/src/index.ts | 0 .../pre_and_post_upgrade/test/pretest.ts | 2 +- .../pre_and_post_upgrade/test/test.ts | 2 +- .../pre_and_post_upgrade/tsconfig.json | 0 .../primitive_types/.gitignore | 0 .../primitive_types/dfx.json | 0 .../primitive_types/jest.config.js | 0 .../primitive_types/package-lock.json | 0 .../class_api/primitive_types/package.json | 17 + .../primitive_types/src/index.ts | 0 .../primitive_types/test/pretest.ts | 2 +- .../primitive_types/test/test.ts | 2 +- .../primitive_types/tsconfig.json | 0 .../principal/.gitignore | 0 .../principal/dfx.json | 0 .../principal/jest.config.js | 0 .../principal/package-lock.json | 0 .../principal}/package.json | 2 +- .../principal/src/index.ts | 0 .../principal/test/pretest.ts | 8 +- .../principal/test/test.ts | 2 +- .../principal/tsconfig.json | 0 .../query/.gitignore | 0 .../query/dfx.json | 0 .../query/jest.config.js | 0 .../query/package-lock.json | 27 +- .../query/package.json | 2 +- .../query/src/index.ts | 0 .../query/test/pretest.ts | 2 +- .../query/test/test.ts | 2 +- .../query/tsconfig.json | 0 .../randomness/.gitignore | 0 .../randomness/dfx.json | 0 .../randomness/jest.config.js | 0 .../randomness/package-lock.json | 0 .../class_api/randomness/package.json | 17 + .../randomness/src/index.ts | 0 .../randomness/test/pretest.ts | 2 +- .../randomness/test/test.ts | 2 +- .../randomness/tsconfig.json | 0 .../recursion/.gitignore | 0 .../recursion/dfx.json | 0 .../recursion/jest.config.js | 0 .../recursion/package-lock.json | 0 .../recursion}/package.json | 2 +- .../recursion/src/recursion/index.ts | 0 .../src/recursive_canister/index.did | 0 .../recursion/src/recursive_canister/index.ts | 0 .../recursion/src/recursive_canister/types.ts | 0 .../recursion/test/pretest.ts | 8 +- .../recursion/test/test.ts | 2 +- .../recursion/tsconfig.json | 0 .../rejections/.gitignore | 0 .../rejections/dfx.json | 0 .../rejections/jest.config.js | 0 .../rejections/package-lock.json | 0 .../class_api/rejections/package.json | 17 + .../rejections/src/nonexistent.did | 0 .../rejections/src/rejections/index.ts | 0 .../rejections/src/some_canister/index.did | 0 .../rejections/src/some_canister/index.ts | 0 .../rejections/test/pretest.ts | 2 +- .../rejections/test/test.ts | 2 +- .../rejections/tsconfig.json | 0 .../simple_erc20/.gitignore | 0 .../simple_erc20/dfx.json | 0 .../simple_erc20/jest.config.js | 0 .../simple_erc20/package-lock.json | 0 .../class_api/simple_erc20/package.json | 17 + .../simple_erc20/src/index.ts | 0 .../simple_erc20/test/pretest.ts | 2 +- .../simple_erc20/test/test.ts | 2 +- .../simple_erc20/tsconfig.json | 0 .../simple_user_accounts/.gitignore | 0 .../simple_user_accounts/dfx.json | 0 .../simple_user_accounts/jest.config.js | 0 .../simple_user_accounts/package-lock.json | 0 .../simple_user_accounts/package.json | 2 +- .../simple_user_accounts/src/index.ts | 0 .../simple_user_accounts/test/pretest.ts | 2 +- .../simple_user_accounts/test/test.ts | 2 +- .../simple_user_accounts/tsconfig.json | 0 .../.gitignore | 0 .../dfx.json | 0 .../jest.config.js | 0 .../package-lock.json | 0 .../package.json | 2 +- .../src/index.ts | 0 .../test/pretest.ts | 2 +- .../test/test.ts | 2 +- .../tsconfig.json | 0 .../stable_structures/.gitignore | 0 .../stable_structures/dfx.json | 0 .../stable_structures/jest.config.js | 0 .../stable_structures/package-lock.json | 0 .../class_api/stable_structures/package.json | 17 + .../stable_structures/src/canister1/index.ts | 0 .../stable_structures/src/canister2/index.ts | 0 .../stable_structures/src/canister3/index.ts | 0 .../stable_structures/src/types.ts | 0 .../stable_structures/test/pretest.ts | 2 +- .../stable_structures/test/test.ts | 2 +- .../stable_structures/tsconfig.json | 0 .../timers/.gitignore | 0 .../timers/dfx.json | 0 .../timers/jest.config.js | 0 .../timers/package-lock.json | 0 .../candid_rpc/class_api/timers/package.json | 17 + .../timers/src/timers.ts | 0 .../timers/test/pretest.ts | 2 +- .../timers/test/test.ts | 2 +- .../timers/tsconfig.json | 0 .../tuple_types/.gitignore | 0 .../tuple_types/dfx.json | 0 .../tuple_types/jest.config.js | 0 .../tuple_types/package-lock.json | 0 .../class_api/tuple_types/package.json | 17 + .../tuple_types/src/index.ts | 0 .../tuple_types/test/pretest.ts | 2 +- .../tuple_types/test/test.ts | 2 +- .../tuple_types/tsconfig.json | 0 .../update/.gitignore | 0 .../update/dfx.json | 0 .../update/jest.config.js | 0 .../update/package-lock.json | 0 .../update/package.json | 2 +- .../update/src/index.ts | 0 .../update/test/pretest.ts | 2 +- .../update/test/test.ts | 2 +- .../update/tsconfig.json | 0 .../vanilla_js/.gitignore | 0 .../vanilla_js/dfx.json | 0 .../vanilla_js/jest.config.js | 0 .../vanilla_js/package-lock.json | 0 .../vanilla_js/package.json | 2 +- .../vanilla_js/src/index.js | 0 .../vanilla_js/src/library.js | 0 .../vanilla_js/test/pretest.ts | 2 +- .../vanilla_js/test/test.ts | 2 +- .../vanilla_js/tsconfig.json | 0 .../composite_queries/package.json | 17 - .../cross_canister_calls/package.json | 17 - .../class_syntax/key_value_store/package.json | 17 - .../class_syntax/ledger_canister/package.json | 17 - .../management_canister/package.json | 17 - .../motoko_examples/calc/package.json | 17 - .../motoko_examples/counter/package.json | 17 - .../motoko_examples/echo/package.json | 17 - .../motoko_examples/factorial/package.json | 17 - .../motoko_examples/hello-world/package.json | 17 - .../persistent-storage/package.json | 17 - .../motoko_examples/quicksort/package.json | 17 - .../motoko_examples/simple-to-do/package.json | 17 - .../class_syntax/notify_raw/package.json | 17 - .../class_syntax/null_example/package.json | 17 - .../pre_and_post_upgrade/package.json | 17 - .../class_syntax/primitive_types/package.json | 17 - .../class_syntax/principal/package.json | 17 - .../class_syntax/randomness/package.json | 17 - .../class_syntax/rejections/package.json | 17 - .../class_syntax/simple_erc20/package.json | 17 - .../stable_structures/package.json | 17 - .../class_syntax/tuple_types/package.json | 17 - .../async_await/.gitignore | 0 .../async_await/dfx.json | 0 .../async_await/jest.config.js | 0 .../async_await/package-lock.json | 0 .../async_await}/package.json | 2 +- .../async_await/src/async_await.ts | 0 .../async_await/test/pretest.ts | 0 .../async_await/test/test.ts | 0 .../async_await/test/tests.ts | 0 .../async_await/tsconfig.json | 0 .../audio_recorder/.gitignore | 0 .../audio_recorder/dfx.json | 0 .../audio_recorder/jest.config.js | 0 .../audio_recorder/package-lock.json | 0 .../audio_recorder/package.json | 2 +- .../audio_recorder/src/index.did | 0 .../audio_recorder/src/index.ts | 0 .../audio_recorder/test/pretest.ts | 0 .../audio_recorder/test/test.ts | 0 .../audio_recorder/test/tests.ts | 0 .../audio_recorder/tsconfig.json | 0 .../bitcoin/.bitcoin.conf | 0 .../bitcoin/.gitignore | 0 .../bitcoin/README.md | 0 .../bitcoin/dfx.json | 0 .../bitcoin/jest.config.js | 0 .../bitcoin/package-lock.json | 0 .../bitcoin/package.json | 2 +- .../bitcoin/scripts/deploy.sh | 0 .../bitcoin/scripts/install.sh | 0 .../bitcoin/src/index.ts | 0 .../bitcoin/test/bitcoin_cli.ts | 0 .../bitcoin/test/pretest.ts | 0 .../bitcoin/test/setup.ts | 0 .../bitcoin/test/test.ts | 0 .../bitcoin/test/tests.ts | 0 .../bitcoin/test/wallets.ts | 0 .../bitcoin/tsconfig.json | 0 .../blob_array/.gitignore | 0 .../blob_array/README.md | 0 .../blob_array/dfx.json | 0 .../blob_array/jest.config.js | 0 .../blob_array/package-lock.json | 0 .../blob_array}/package.json | 2 +- .../blob_array/src/index.ts | 0 .../blob_array/test/pretest.ts | 0 .../blob_array/test/test.ts | 0 .../blob_array/test/tests.ts | 0 .../blob_array/tsconfig.json | 0 .../bytes/.gitignore | 0 .../bytes/dfx.json | 0 .../bytes/jest.config.js | 0 .../bytes/package-lock.json | 0 .../bytes}/package.json | 2 +- .../bytes/src/index.ts | 0 .../test/example_files/example_1000_kb.txt | 0 .../test/example_files/example_100_kb.txt | 0 .../test/example_files/example_10_kb.txt | 0 .../bytes/test/example_files/example_1_kb.txt | 0 .../test/example_files/example_2000_kb.txt | 0 .../bytes/test/pretest.ts | 0 .../bytes/test/test.ts | 0 .../bytes/test/tests.ts | 0 .../bytes/tsconfig.json | 0 .../call_raw/.gitignore | 0 .../call_raw/dfx.json | 0 .../call_raw/jest.config.js | 0 .../call_raw/package-lock.json | 0 .../call_raw}/package.json | 2 +- .../call_raw/src/index.ts | 0 .../call_raw/test/pretest.ts | 0 .../call_raw/test/test.ts | 0 .../call_raw/test/tests.ts | 0 .../call_raw/tsconfig.json | 0 .../candid_encoding/.gitignore | 0 .../candid_encoding/dfx.json | 0 .../candid_encoding/jest.config.js | 0 .../candid_encoding/package-lock.json | 0 .../candid_encoding}/package.json | 2 +- .../candid_encoding/src/index.ts | 0 .../candid_encoding/test/pretest.ts | 0 .../candid_encoding/test/test.ts | 0 .../candid_encoding/test/tests.ts | 0 .../candid_encoding/tsconfig.json | 0 .../candid_keywords/.gitignore | 0 .../candid_keywords/dfx.json | 0 .../candid_keywords/jest.config.js | 0 .../candid_keywords/package-lock.json | 0 .../candid_keywords/package.json | 2 +- .../candid_keywords/src/index.ts | 0 .../candid_keywords/test/pretest.ts | 0 .../candid_keywords/test/test.ts | 0 .../candid_keywords/test/tests.ts | 0 .../candid_keywords/tsconfig.json | 0 .../canister/.gitignore | 0 .../canister/dfx.json | 0 .../canister/jest.config.js | 0 .../canister/package-lock.json | 0 .../canister/package.json | 2 +- .../canister/src/index.ts | 0 .../canister/src/some_canister.did | 0 .../canister/src/some_canister.ts | 0 .../canister/test/pretest.ts | 0 .../canister/test/test.ts | 0 .../canister/test/tests.ts | 0 .../canister/tsconfig.json | 0 .../ckbtc/.bitcoin.conf | 0 .../ckbtc/.gitignore | 0 .../ckbtc/README.md | 0 .../ckbtc/ckbtc/LICENSE | 0 .../ckbtc/ckbtc/ledger.did | 0 .../ckbtc/dfx.json | 0 .../ckbtc/internet_identity/LICENSE | 0 .../internet_identity/internet_identity.did | 0 .../ckbtc/jest.config.js | 0 .../ckbtc/kyt/LICENSE | 0 .../ckbtc/kyt/kyt.did | 0 .../ckbtc/minter/LICENSE | 0 .../ckbtc/minter/minter.did | 0 .../ckbtc/package-lock.json | 0 .../ckbtc/package.json | 2 +- .../ckbtc/scripts/deploy/all.sh | 0 .../ckbtc/scripts/deploy/ckbtc.sh | 0 .../ckbtc/scripts/deploy/internet_identity.sh | 0 .../ckbtc/scripts/deploy/kyt.sh | 0 .../ckbtc/scripts/deploy/minter.sh | 0 .../ckbtc/scripts/deploy/wallet_backend.sh | 0 .../ckbtc/scripts/install/all.sh | 0 .../ckbtc/scripts/install/bitcoin.sh | 0 .../ckbtc/test/pretest.ts | 0 .../ckbtc/test/test.ts | 0 .../ckbtc/test/tests.ts | 0 .../ckbtc/tsconfig.json | 0 .../ckbtc/wallet/backend/LICENSE | 0 .../ckbtc/wallet/backend/NOTICE | 0 .../ckbtc/wallet/backend/icrc.did | 0 .../ckbtc/wallet/backend/index.ts | 0 .../ckbtc/wallet/backend/minter.ts | 0 .../ckbtc/wallet/frontend/elements/ck-app.ts | 0 .../ckbtc/wallet/frontend/index.html | 0 .../ckbtc/wallet/frontend/package-lock.json | 0 .../ckbtc/wallet/frontend/package.json | 0 .../dfx_generate/wallet_backend/index.d.ts | 0 .../dfx_generate/wallet_backend/index.js | 0 .../wallet_backend/wallet_backend.did | 0 .../wallet_backend/wallet_backend.did.d.ts | 0 .../wallet_backend/wallet_backend.did.js | 0 .../complex_init/.gitignore | 0 .../complex_init/dfx.json | 0 .../complex_init/jest.config.js | 0 .../complex_init/package-lock.json | 0 .../functional_api/complex_init/package.json | 17 + .../complex_init/src/complex_init/index.ts | 0 .../complex_init/src/rec_init/index.ts | 0 .../complex_init/test/pretest.ts | 0 .../complex_init/test/test.ts | 0 .../complex_init/test/tests.ts | 0 .../complex_init/tsconfig.json | 0 .../complex_types/.gitignore | 0 .../complex_types/dfx.json | 0 .../complex_types/jest.config.js | 0 .../complex_types/package-lock.json | 0 .../complex_types/package.json | 2 +- .../complex_types/src/candid_types.ts | 0 .../complex_types/src/index.did | 0 .../complex_types/src/index.ts | 0 .../complex_types/src/posts.ts | 0 .../complex_types/src/reactions.ts | 0 .../complex_types/src/state.ts | 0 .../complex_types/src/threads.ts | 0 .../complex_types/src/users.ts | 0 .../complex_types/test/pretest.ts | 0 .../complex_types/test/test.ts | 0 .../complex_types/test/tests.ts | 0 .../complex_types/tsconfig.json | 0 .../composite_queries/.gitignore | 0 .../composite_queries/dfx.json | 0 .../composite_queries/jest.config.js | 0 .../composite_queries/package-lock.json | 0 .../composite_queries/package.json | 18 + .../composite_queries/src/canister1/index.did | 0 .../composite_queries/src/canister1/index.ts | 0 .../composite_queries/src/canister2/index.did | 0 .../composite_queries/src/canister2/index.ts | 0 .../composite_queries/src/canister3/index.did | 0 .../composite_queries/src/canister3/index.ts | 0 .../composite_queries/test/pretest.ts | 0 .../composite_queries/test/test.ts | 0 .../composite_queries/test/tests.ts | 0 .../composite_queries/tsconfig.json | 0 .../counter/.gitignore | 0 .../counter/dfx.json | 0 .../counter/jest.config.js | 0 .../counter/package-lock.json | 0 .../counter}/package.json | 2 +- .../counter/src/index.ts | 0 .../counter/test/pretest.ts | 0 .../counter/test/test.ts | 0 .../counter/test/tests.ts | 0 .../counter/tsconfig.json | 0 .../cross_canister_calls/.gitignore | 0 .../cross_canister_calls/README.md | 0 .../cross_canister_calls/dfx.json | 0 .../cross_canister_calls/jest.config.js | 0 .../cross_canister_calls/package-lock.json | 0 .../cross_canister_calls}/package.json | 2 +- .../src/canister1/index.ts | 0 .../src/canister2/index.did | 0 .../src/canister2/index.ts | 0 .../src/canister2/types.ts | 0 .../cross_canister_calls/test/pretest.ts | 0 .../cross_canister_calls/test/test.ts | 0 .../cross_canister_calls/test/tests.ts | 0 .../cross_canister_calls/tsconfig.json | 0 .../cycles/.gitignore | 0 .../cycles/dfx.json | 0 .../cycles/jest.config.js | 0 .../cycles/package-lock.json | 0 .../cycles/package.json | 2 +- .../cycles/src/cycles/index.did | 0 .../cycles/src/cycles/index.ts | 0 .../cycles/src/intermediary/index.ts | 0 .../cycles/test/pretest.ts | 0 .../cycles/test/test.ts | 0 .../cycles/test/tests.ts | 0 .../cycles/tsconfig.json | 0 .../date/.gitignore | 0 .../date/dfx.json | 0 .../date/jest.config.js | 0 .../date/package-lock.json | 0 .../echo => functional_api/date}/package.json | 2 +- .../date/src/index.ts | 0 .../date/test/pretest.ts | 0 .../date/test/test.ts | 0 .../date/test/tests.ts | 0 .../date/tsconfig.json | 0 .../ethereum_json_rpc/.gitignore | 0 .../ethereum_json_rpc/dfx.json | 0 .../ethereum_json_rpc/jest.config.js | 0 .../ethereum_json_rpc/package-lock.json | 0 .../ethereum_json_rpc/package.json | 2 +- .../ethereum_json_rpc/src/index.ts | 0 .../ethereum_json_rpc/test/pretest.ts | 0 .../ethereum_json_rpc/test/test.ts | 0 .../ethereum_json_rpc/test/tests.ts | 0 .../ethereum_json_rpc/tsconfig.json | 0 .../func_types/.gitignore | 0 .../func_types/canisters/func_types/index.ts | 0 .../func_types/canisters/notifiers/index.did | 0 .../func_types/canisters/notifiers/index.ts | 0 .../func_types/dfx.json | 0 .../func_types/jest.config.js | 0 .../func_types/package-lock.json | 0 .../func_types/package.json | 2 +- .../func_types/test/pretest.ts | 0 .../func_types/test/test.ts | 0 .../func_types/test/tests.ts | 0 .../func_types/tsconfig.json | 0 .../heartbeat/.gitignore | 0 .../heartbeat/dfx.json | 0 .../heartbeat/jest.config.js | 0 .../heartbeat/package-lock.json | 0 .../heartbeat}/package.json | 2 +- .../heartbeat/src/heartbeat_async/index.ts | 0 .../heartbeat/src/heartbeat_sync/index.ts | 0 .../heartbeat/test/pretest.ts | 0 .../heartbeat/test/test.ts | 0 .../heartbeat/test/tests.ts | 0 .../heartbeat/tsconfig.json | 0 .../ic_api/.gitignore | 0 .../ic_api/dfx.json | 0 .../ic_api/jest.config.js | 0 .../ic_api/package-lock.json | 0 .../ic_api/package.json | 2 +- .../ic_api/src/index.ts | 0 .../ic_api/test/pretest.ts | 0 .../ic_api/test/test.ts | 0 .../ic_api/test/tests.ts | 0 .../ic_api/tsconfig.json | 0 .../icrc/.gitignore | 0 .../icrc/README.md | 0 .../icrc/canisters/proxy/LICENSE | 0 .../icrc/canisters/proxy/NOTICE | 0 .../icrc/canisters/proxy/icrc.did | 0 .../icrc/canisters/proxy/index.ts | 0 .../icrc/dfx.json | 0 .../icrc/jest.config.js | 0 .../icrc/package-lock.json | 0 .../icrc/package.json | 2 +- .../icrc/params.did | 0 .../icrc/test/pretest.ts | 0 .../icrc/test/test.ts | 0 .../icrc/test/tests.ts | 0 .../icrc/tsconfig.json | 0 .../imports/.gitignore | 0 .../imports/dfx.json | 0 .../imports/jest.config.js | 0 .../imports/package-lock.json | 0 .../imports/package.json | 2 +- .../imports/src/index.ts | 0 .../imports/src/library.ts | 0 .../imports/test/pretest.ts | 0 .../imports/test/test.ts | 0 .../imports/test/tests.ts | 0 .../imports/tsconfig.json | 0 .../init/.gitignore | 0 .../init/dfx.json | 0 .../init/jest.config.js | 0 .../init/package-lock.json | 0 .../init/package.json | 2 +- .../init/src/index.ts | 0 .../init/test/pretest.ts | 0 .../init/test/test.ts | 0 .../init/test/tests.ts | 0 .../init/tsconfig.json | 0 .../inspect_message/.gitignore | 0 .../inspect_message/dfx.json | 0 .../inspect_message/jest.config.js | 0 .../inspect_message/package-lock.json | 0 .../inspect_message}/package.json | 2 +- .../inspect_message/src/index.ts | 0 .../inspect_message/test/pretest.ts | 0 .../inspect_message/test/test.ts | 0 .../inspect_message/test/tests.ts | 0 .../inspect_message/tsconfig.json | 0 .../key_value_store/.gitignore | 0 .../key_value_store/dfx.json | 0 .../key_value_store/jest.config.js | 0 .../key_value_store/package-lock.json | 0 .../key_value_store}/package.json | 2 +- .../key_value_store/src/index.ts | 0 .../key_value_store/test/pretest.ts | 0 .../key_value_store/test/test.ts | 0 .../key_value_store/test/tests.ts | 0 .../key_value_store/tsconfig.json | 0 .../ledger_canister/.gitignore | 0 .../ledger_canister/dfx.json | 0 .../ledger_canister/jest.config.js | 0 .../ledger_canister/package-lock.json | 0 .../ledger_canister/package.json | 2 +- .../src/icp_ledger/ledger.private.did | 0 .../src/icp_ledger/ledger.public.did | 0 .../src/ledger_canister/index.ts | 0 .../ledger_canister/test/pretest.ts | 0 .../ledger_canister/test/test.ts | 0 .../ledger_canister/test/tests.ts | 0 .../ledger_canister/tsconfig.json | 0 .../list_of_lists/.gitignore | 0 .../list_of_lists/dfx.json | 0 .../list_of_lists/jest.config.js | 0 .../list_of_lists/package-lock.json | 0 .../list_of_lists/package.json | 2 +- .../list_of_lists/src/index.ts | 0 .../list_of_lists/test/pretest.ts | 0 .../list_of_lists/test/test.ts | 0 .../list_of_lists/test/tests.ts | 0 .../list_of_lists/tsconfig.json | 0 .../management_canister/.gitignore | 0 .../management_canister/dfx.json | 0 .../management_canister/jest.config.js | 0 .../management_canister/package-lock.json | 0 .../management_canister/package.json | 2 +- .../management_canister/src/index.ts | 0 .../management_canister/src/test.wasm | Bin .../management_canister/test/pretest.ts | 0 .../management_canister/test/test.ts | 0 .../management_canister/test/tests.ts | 0 .../management_canister/tsconfig.json | 0 .../manual_reply/.gitignore | 0 .../manual_reply/dfx.json | 0 .../manual_reply/jest.config.js | 0 .../manual_reply/package-lock.json | 0 .../manual_reply}/package.json | 2 +- .../manual_reply/src/index.ts | 0 .../manual_reply/test/pretest.ts | 0 .../manual_reply/test/test.ts | 0 .../manual_reply/test/tests.ts | 0 .../manual_reply/tsconfig.json | 0 .../motoko_examples/README.md | 0 .../motoko_examples/calc/.gitignore | 0 .../motoko_examples/calc/README.md | 0 .../motoko_examples/calc/dfx.json | 0 .../motoko_examples/calc/jest.config.js | 0 .../motoko_examples/calc/package-lock.json | 0 .../motoko_examples/calc/package.json | 17 + .../motoko_examples/calc/src/index.ts | 0 .../motoko_examples/calc/test/pretest.ts | 0 .../motoko_examples/calc/test/test.ts | 0 .../motoko_examples/calc/test/tests.ts | 0 .../motoko_examples/calc/tsconfig.json | 0 .../motoko_examples/counter/.gitignore | 0 .../motoko_examples/counter/README.md | 0 .../motoko_examples/counter/dfx.json | 0 .../motoko_examples/counter/jest.config.js | 0 .../motoko_examples/counter/package-lock.json | 0 .../motoko_examples/counter/package.json | 17 + .../motoko_examples/counter/src/index.ts | 0 .../motoko_examples/counter/test/pretest.ts | 0 .../motoko_examples/counter/test/test.ts | 0 .../motoko_examples/counter/test/tests.ts | 0 .../motoko_examples/counter/tsconfig.json | 0 .../motoko_examples/echo/.gitignore | 0 .../motoko_examples/echo/README.md | 0 .../motoko_examples/echo/dfx.json | 0 .../motoko_examples/echo/jest.config.js | 0 .../motoko_examples/echo/package-lock.json | 0 .../motoko_examples/echo/package.json | 17 + .../motoko_examples/echo/src/index.ts | 0 .../motoko_examples/echo/test/pretest.ts | 0 .../motoko_examples/echo/test/test.ts | 0 .../motoko_examples/echo/test/tests.ts | 0 .../motoko_examples/echo/tsconfig.json | 0 .../motoko_examples/factorial/.gitignore | 0 .../motoko_examples/factorial/README.md | 0 .../motoko_examples/factorial/dfx.json | 0 .../motoko_examples/factorial/jest.config.js | 0 .../factorial/package-lock.json | 0 .../motoko_examples/factorial/package.json | 17 + .../motoko_examples/factorial/src/index.ts | 0 .../motoko_examples/factorial/test/pretest.ts | 0 .../motoko_examples/factorial/test/test.ts | 0 .../motoko_examples/factorial/test/tests.ts | 0 .../motoko_examples/factorial/tsconfig.json | 0 .../motoko_examples/hello-world/.gitignore | 0 .../motoko_examples/hello-world/README.md | 0 .../motoko_examples/hello-world/dfx.json | 0 .../hello-world/jest.config.js | 0 .../hello-world/package-lock.json | 0 .../motoko_examples/hello-world}/package.json | 2 +- .../motoko_examples/hello-world/src/index.ts | 0 .../hello-world/test/pretest.ts | 0 .../motoko_examples/hello-world/test/test.ts | 0 .../motoko_examples/hello-world/test/tests.ts | 0 .../motoko_examples/hello-world/tsconfig.json | 0 .../motoko_examples/hello/.gitignore | 0 .../motoko_examples/hello/NOTICE | 0 .../motoko_examples/hello/README.md | 0 .../motoko_examples/hello/dfx.json | 0 .../motoko_examples/hello/jest.config.js | 0 .../motoko_examples/hello/package-lock.json | 0 .../motoko_examples/hello/package.json | 0 .../motoko_examples/hello/src/hello/index.ts | 0 .../hello/src/hello_assets/assets/favicon.ico | Bin .../hello/src/hello_assets/assets/logo.png | Bin .../hello/src/hello_assets/assets/main.css | 0 .../src/hello_assets/assets/sample-asset.txt | 0 .../hello/src/hello_assets/src/index.html | 0 .../hello/src/hello_assets/src/index.js | 0 .../motoko_examples/hello/test/pretest.ts | 0 .../motoko_examples/hello/test/test.ts | 0 .../motoko_examples/hello/test/tests.ts | 0 .../motoko_examples/hello/tsconfig.json | 0 .../motoko_examples/hello/webpack.config.js | 0 .../motoko_examples/http_counter/.gitignore | 0 .../motoko_examples/http_counter/NOTICE | 0 .../motoko_examples/http_counter/README.md | 0 .../motoko_examples/http_counter/dfx.json | 0 .../http_counter/jest.config.js | 0 .../http_counter/package-lock.json | 0 .../motoko_examples/http_counter/package.json | 0 .../http_counter/src/index.did | 0 .../motoko_examples/http_counter/src/index.ts | 0 .../http_counter/test/pretest.ts | 0 .../motoko_examples/http_counter/test/test.ts | 0 .../http_counter/test/tests.ts | 0 .../http_counter/tsconfig.json | 0 .../minimal-counter-dapp/.gitignore | 0 .../minimal-counter-dapp/NOTICE | 0 .../minimal-counter-dapp/README.md | 0 .../minimal-counter-dapp/dfx.json | 0 .../minimal-counter-dapp/jest.config.js | 0 .../minimal-counter-dapp/package-lock.json | 0 .../minimal-counter-dapp/package.json | 0 .../src/minimal_dapp/index.ts | 0 .../src/minimal_dapp_assets/assets/logo.png | Bin .../src/minimal_dapp_assets/assets/main.css | 0 .../assets/sample-asset.txt | 0 .../src/minimal_dapp_assets/src/index.html | 0 .../src/minimal_dapp_assets/src/index.js | 0 .../minimal-counter-dapp/test/pretest.ts | 0 .../minimal-counter-dapp/test/test.ts | 0 .../minimal-counter-dapp/test/tests.ts | 0 .../minimal-counter-dapp/tsconfig.json | 0 .../minimal-counter-dapp/webpack.config.js | 0 .../persistent-storage/.gitignore | 0 .../motoko_examples/persistent-storage/NOTICE | 0 .../persistent-storage/README.md | 0 .../persistent-storage/dfx.json | 0 .../persistent-storage/jest.config.js | 0 .../persistent-storage/package-lock.json | 0 .../persistent-storage}/package.json | 2 +- .../persistent-storage/src/index.ts | 0 .../persistent-storage/test/pretest.ts | 0 .../persistent-storage/test/test.ts | 0 .../persistent-storage/test/tests.ts | 0 .../persistent-storage/tsconfig.json | 0 .../motoko_examples/phone-book/.gitignore | 0 .../motoko_examples/phone-book/NOTICE | 0 .../motoko_examples/phone-book/README.md | 0 .../motoko_examples/phone-book/dfx.json | 0 .../motoko_examples/phone-book/jest.config.js | 0 .../phone-book/package-lock.json | 0 .../motoko_examples/phone-book/package.json | 2 +- .../src/declarations/phone_book/index.d.ts | 0 .../src/declarations/phone_book/index.js | 0 .../declarations/phone_book/phone_book.did | 0 .../phone_book/phone_book.did.d.ts | 0 .../declarations/phone_book/phone_book.did.js | 0 .../phone-book/src/phone_book/index.ts | 0 .../src/www/assets/sample-asset.txt | 0 .../phone-book/src/www/src/index.html | 0 .../phone-book/src/www/src/index.jsx | 0 .../phone-book/test/pretest.ts | 0 .../motoko_examples/phone-book/test/test.ts | 0 .../motoko_examples/phone-book/test/tests.ts | 0 .../motoko_examples/phone-book/tsconfig.json | 0 .../phone-book/tsconfig.webpack.json | 0 .../phone-book/webpack.config.js | 0 .../motoko_examples/quicksort/.gitignore | 0 .../motoko_examples/quicksort/README.md | 0 .../motoko_examples/quicksort/dfx.json | 0 .../motoko_examples/quicksort/jest.config.js | 0 .../quicksort/package-lock.json | 0 .../motoko_examples/quicksort/package.json | 17 + .../quicksort/src/comparison.ts | 0 .../motoko_examples/quicksort/src/index.ts | 0 .../quicksort/src/quicksort.ts | 0 .../motoko_examples/quicksort/test/pretest.ts | 0 .../motoko_examples/quicksort/test/test.ts | 0 .../motoko_examples/quicksort/test/tests.ts | 0 .../motoko_examples/quicksort/tsconfig.json | 0 .../motoko_examples/simple-to-do/.gitignore | 0 .../motoko_examples/simple-to-do/README.md | 0 .../motoko_examples/simple-to-do/dfx.json | 0 .../simple-to-do/jest.config.js | 0 .../simple-to-do/package-lock.json | 0 .../motoko_examples/simple-to-do/package.json | 17 + .../motoko_examples/simple-to-do/src/index.ts | 0 .../simple-to-do/test/pretest.ts | 0 .../motoko_examples/simple-to-do/test/test.ts | 0 .../simple-to-do/test/tests.ts | 0 .../simple-to-do/tsconfig.json | 0 .../motoko_examples/superheroes/.gitignore | 0 .../motoko_examples/superheroes/NOTICE | 0 .../motoko_examples/superheroes/README.md | 0 .../motoko_examples/superheroes/dfx.json | 0 .../superheroes/jest.config.js | 0 .../superheroes/package-lock.json | 0 .../motoko_examples/superheroes/package.json | 2 +- .../superheroes/src/declarations/index.d.ts | 0 .../superheroes/src/declarations/index.js | 0 .../src/declarations/superheroes.did | 0 .../src/declarations/superheroes.did.d.ts | 0 .../src/declarations/superheroes.did.js | 0 .../superheroes/src/superheroes/index.ts | 0 .../superheroes/src/www/components/create.jsx | 0 .../superheroes/src/www/components/delete.jsx | 0 .../superheroes/src/www/components/read.jsx | 0 .../superheroes/src/www/components/update.jsx | 0 .../superheroes/src/www/index.html | 0 .../superheroes/src/www/index.jsx | 0 .../superheroes/test/pretest.ts | 0 .../motoko_examples/superheroes/test/test.ts | 0 .../motoko_examples/superheroes/test/tests.ts | 0 .../motoko_examples/superheroes/tsconfig.json | 0 .../superheroes/tsconfig.webpack.json | 0 .../superheroes/webpack.config.js | 0 .../threshold_ecdsa/.gitignore | 0 .../motoko_examples/threshold_ecdsa/README.md | 0 .../motoko_examples/threshold_ecdsa/dfx.json | 0 .../threshold_ecdsa/jest.config.js | 0 .../threshold_ecdsa/package-lock.json | 0 .../threshold_ecdsa/package.json | 2 +- .../threshold_ecdsa/src/index.ts | 0 .../threshold_ecdsa/test/pretest.ts | 0 .../threshold_ecdsa/test/test.ts | 0 .../threshold_ecdsa/test/tests.ts | 0 .../threshold_ecdsa/tsconfig.json | 0 .../motoko_examples/whoami/.gitignore | 0 .../motoko_examples/whoami/README.md | 0 .../motoko_examples/whoami/dfx.json | 0 .../motoko_examples/whoami/jest.config.js | 0 .../motoko_examples/whoami/package-lock.json | 0 .../motoko_examples/whoami/package.json | 2 +- .../motoko_examples/whoami/src/index.did | 0 .../motoko_examples/whoami/src/index.ts | 0 .../motoko_examples/whoami/test/pretest.ts | 0 .../motoko_examples/whoami/test/test.ts | 0 .../motoko_examples/whoami/test/tests.ts | 0 .../motoko_examples/whoami/tsconfig.json | 0 .../notify_raw/.gitignore | 0 .../notify_raw/dfx.json | 0 .../notify_raw/jest.config.js | 0 .../notify_raw/package-lock.json | 0 .../notify_raw/package.json | 2 +- .../notify_raw/src/canister1/index.ts | 0 .../notify_raw/src/canister2/index.ts | 0 .../notify_raw/test/pretest.ts | 0 .../notify_raw/test/test.ts | 0 .../notify_raw/test/tests.ts | 0 .../notify_raw/tsconfig.json | 0 .../null_example/.gitignore | 0 .../null_example/dfx.json | 0 .../null_example/jest.config.js | 0 .../null_example/package-lock.json | 0 .../null_example}/package.json | 2 +- .../null_example/src/index.ts | 0 .../null_example/test/pretest.ts | 0 .../null_example/test/test.ts | 0 .../null_example/test/tests.ts | 0 .../null_example/tsconfig.json | 0 .../optional_types/.gitignore | 0 .../optional_types/dfx.json | 0 .../optional_types/jest.config.js | 0 .../optional_types/package-lock.json | 0 .../optional_types/package.json | 2 +- .../optional_types/src/index.ts | 0 .../optional_types/test/pretest.ts | 0 .../optional_types/test/test.ts | 0 .../optional_types/test/tests.ts | 0 .../optional_types/tsconfig.json | 0 .../outgoing_http_requests/.gitignore | 0 .../outgoing_http_requests/dfx.json | 0 .../outgoing_http_requests/jest.config.js | 0 .../outgoing_http_requests/package-lock.json | 0 .../outgoing_http_requests/package.json | 2 +- .../outgoing_http_requests/src/index.ts | 0 .../outgoing_http_requests/test/pretest.ts | 0 .../outgoing_http_requests/test/test.ts | 0 .../outgoing_http_requests/test/tests.ts | 0 .../outgoing_http_requests/tsconfig.json | 0 .../pre_and_post_upgrade/.gitignore | 0 .../pre_and_post_upgrade/dfx.json | 0 .../pre_and_post_upgrade/jest.config.js | 0 .../pre_and_post_upgrade/package-lock.json | 0 .../pre_and_post_upgrade}/package.json | 2 +- .../pre_and_post_upgrade/src/index.ts | 0 .../pre_and_post_upgrade/test/pretest.ts | 0 .../pre_and_post_upgrade/test/test.ts | 0 .../pre_and_post_upgrade/test/tests.ts | 0 .../pre_and_post_upgrade/tsconfig.json | 0 .../primitive_types/.gitignore | 0 .../primitive_types/dfx.json | 0 .../primitive_types/jest.config.js | 0 .../primitive_types/package-lock.json | 0 .../primitive_types/package.json | 17 + .../primitive_types/src/index.ts | 0 .../primitive_types/test/pretest.ts | 0 .../primitive_types/test/test.ts | 0 .../primitive_types/test/tests.ts | 0 .../primitive_types/tsconfig.json | 0 .../principal/.gitignore | 0 .../principal/dfx.json | 0 .../principal/jest.config.js | 0 .../principal/package-lock.json | 0 .../functional_api/principal/package.json | 17 + .../principal/src/index.ts | 0 .../principal/test/pretest.ts | 0 .../principal/test/test.ts | 0 .../principal/test/tests.ts | 0 .../principal/tsconfig.json | 0 .../query/.gitignore | 0 .../query/dfx.json | 0 .../query/jest.config.js | 0 .../query/package-lock.json | 4 +- .../query/package.json | 2 +- .../query/src/index.ts | 0 .../query/test/pretest.ts | 0 .../query/test/test.ts | 0 .../query/test/tests.ts | 0 .../query/tsconfig.json | 0 .../randomness/.gitignore | 0 .../randomness/dfx.json | 0 .../randomness/jest.config.js | 0 .../randomness/package-lock.json | 0 .../randomness}/package.json | 2 +- .../randomness/src/index.ts | 0 .../randomness/test/pretest.ts | 0 .../randomness/test/test.ts | 0 .../randomness/test/tests.ts | 0 .../randomness/tsconfig.json | 0 .../recursion/.gitignore | 0 .../recursion/dfx.json | 0 .../recursion/jest.config.js | 0 .../recursion/package-lock.json | 0 .../recursion/package.json | 2 +- .../recursion/src/recursion/index.ts | 0 .../src/recursive_canister/index.did | 0 .../recursion/src/recursive_canister/index.ts | 0 .../recursion/test/pretest.ts | 0 .../recursion/test/test.ts | 0 .../recursion/test/tests.ts | 0 .../recursion/tsconfig.json | 0 .../rejections/.gitignore | 0 .../rejections/dfx.json | 0 .../rejections/jest.config.js | 0 .../rejections/package-lock.json | 0 .../rejections/package.json | 2 +- .../rejections/src/nonexistent.did | 0 .../rejections/src/rejections/index.ts | 0 .../rejections/src/some_canister/index.did | 0 .../rejections/src/some_canister/index.ts | 0 .../rejections/test/pretest.ts | 0 .../rejections/test/test.ts | 0 .../rejections/test/tests.ts | 0 .../rejections/tsconfig.json | 0 .../robust_imports/.gitignore | 0 .../robust_imports/dfx.json | 0 .../robust_imports/jest.config.js | 0 .../robust_imports/package-lock.json | 0 .../robust_imports/package.json | 2 +- .../robust_imports/src/azle_coverage/fruit.ts | 0 .../robust_imports/src/azle_coverage/index.ts | 0 .../src/import_coverage/index.ts | 0 .../src/import_coverage/types.ts | 0 .../robust_imports/src/index.ts | 0 .../robust_imports/src/ts_primitives/index.ts | 0 .../deep_alias/deeper_alias.ts | 0 .../deep_alias/deepest_alias.ts | 0 .../src/type_alias_decls/deep_alias/index.ts | 0 .../src/type_alias_decls/index.ts | 0 .../src/type_alias_decls/mixed_alias/index.ts | 0 .../mixed_alias/mixed_alias.ts | 0 .../mixed_alias/user_defined_types.ts | 0 .../src/type_alias_decls/types.ts | 0 .../robust_imports/src/types/deep/deeper.ts | 0 .../robust_imports/src/types/deep/deepest.ts | 0 .../robust_imports/src/types/deep/index.ts | 0 .../robust_imports/src/types/deep/shallow.ts | 0 .../robust_imports/test/pretest.ts | 0 .../robust_imports/test/test.ts | 0 .../robust_imports/test/tests.ts | 0 .../robust_imports/tsconfig.json | 0 .../simple_erc20/.gitignore | 0 .../simple_erc20/dfx.json | 0 .../simple_erc20/jest.config.js | 0 .../simple_erc20/package-lock.json | 0 .../functional_api/simple_erc20/package.json | 17 + .../simple_erc20/src/index.ts | 0 .../simple_erc20/test/pretest.ts | 0 .../simple_erc20/test/test.ts | 0 .../simple_erc20/test/tests.ts | 0 .../simple_erc20/tsconfig.json | 0 .../simple_user_accounts/.gitignore | 0 .../simple_user_accounts/dfx.json | 0 .../simple_user_accounts/jest.config.js | 0 .../simple_user_accounts/package-lock.json | 0 .../simple_user_accounts/package.json | 2 +- .../simple_user_accounts/src/index.did | 0 .../simple_user_accounts/src/index.ts | 0 .../simple_user_accounts/test/pretest.ts | 0 .../simple_user_accounts/test/test.ts | 0 .../simple_user_accounts/test/tests.ts | 0 .../simple_user_accounts/tsconfig.json | 0 .../.gitignore | 0 .../dfx.json | 0 .../jest.config.js | 0 .../package-lock.json | 0 .../package.json | 2 +- .../src/index.ts | 0 .../test/pretest.ts | 0 .../test/test.ts | 0 .../test/tests.ts | 0 .../tsconfig.json | 0 .../stable_structures/.gitignore | 0 .../stable_structures/dfx.json | 0 .../stable_structures/jest.config.js | 0 .../stable_structures/package-lock.json | 0 .../stable_structures/package.json | 17 + .../stable_structures/src/canister1/index.ts | 0 .../src/canister1/stable_map_0.ts | 0 .../src/canister1/stable_map_1.ts | 0 .../src/canister1/stable_map_2.ts | 0 .../src/canister1/stable_map_3.ts | 0 .../src/canister1/stable_map_4.ts | 0 .../stable_structures/src/canister2/index.ts | 0 .../src/canister2/stable_map_5.ts | 0 .../src/canister2/stable_map_6.ts | 0 .../src/canister2/stable_map_7.ts | 0 .../src/canister2/stable_map_8.ts | 0 .../src/canister2/stable_map_9.ts | 0 .../stable_structures/src/canister3/index.ts | 0 .../src/canister3/stable_map_10.ts | 0 .../src/canister3/stable_map_11.ts | 0 .../src/canister3/stable_map_12.ts | 0 .../src/canister3/stable_map_13.ts | 0 .../src/canister3/stable_map_14.ts | 0 .../src/canister3/stable_map_15.ts | 0 .../src/canister3/stable_map_16.ts | 0 .../src/canister3/stable_map_17.ts | 0 .../stable_structures/src/types.ts | 0 .../stable_structures/test/pretest.ts | 0 .../stable_structures/test/test.ts | 0 .../stable_structures/test/tests.ts | 0 .../stable_structures/tsconfig.json | 0 .../timers/.gitignore | 0 .../timers/dfx.json | 0 .../timers/jest.config.js | 0 .../timers/package-lock.json | 0 .../timers/package.json | 2 +- .../timers/src/timers.ts | 0 .../timers/test/pretest.ts | 0 .../timers/test/test.ts | 0 .../timers/test/tests.ts | 0 .../timers/tsconfig.json | 0 .../tuple_types/.gitignore | 0 .../tuple_types/dfx.json | 0 .../tuple_types/jest.config.js | 0 .../tuple_types/package-lock.json | 0 .../functional_api/tuple_types/package.json | 17 + .../tuple_types/src/index.ts | 0 .../tuple_types/test/pretest.ts | 0 .../tuple_types/test/test.ts | 0 .../tuple_types/test/tests.ts | 0 .../tuple_types/tsconfig.json | 0 .../update/.gitignore | 0 .../update/dfx.json | 0 .../update/jest.config.js | 0 .../update/package-lock.json | 0 .../update/package.json | 2 +- .../update/src/index.ts | 0 .../update/test/pretest.ts | 0 .../update/test/test.ts | 0 .../update/test/tests.ts | 0 .../update/tsconfig.json | 0 .../vanilla_js/.gitignore | 0 .../vanilla_js/dfx.json | 0 .../vanilla_js/jest.config.js | 0 .../vanilla_js/package-lock.json | 0 .../vanilla_js/package.json | 2 +- .../vanilla_js/src/index.js | 0 .../vanilla_js/src/library.js | 0 .../vanilla_js/test/pretest.ts | 0 .../vanilla_js/test/test.ts | 0 .../vanilla_js/test/tests.ts | 0 .../vanilla_js/tsconfig.json | 0 .../complex_init/package.json | 17 - .../cross_canister_calls/package.json | 18 - .../motoko_examples/counter/package.json | 17 - .../motoko_examples/factorial/package.json | 17 - .../motoko_examples/hello-world/package.json | 17 - .../persistent-storage/package.json | 17 - .../motoko_examples/quicksort/package.json | 17 - .../motoko_examples/simple-to-do/package.json | 17 - .../pre_and_post_upgrade/package.json | 17 - .../primitive_types/package.json | 17 - .../{class_syntax => class_api}/blob/dfx.json | 0 .../blob/package-lock.json | 0 .../blob/package.json | 0 .../blob/test/generate_body.ts | 6 +- .../blob/test/generate_tests.ts | 6 +- .../blob/test/test.ts | 10 +- .../blob/tsconfig.json | 0 .../{class_syntax => class_api}/bool/dfx.json | 0 .../bool/package-lock.json | 0 .../bool/package.json | 0 .../bool/test/generate_body.ts | 6 +- .../bool/test/generate_tests.ts | 6 +- .../bool/test/test.ts | 10 +- .../bool/tsconfig.json | 0 .../canister_methods/http_request/dfx.json | 0 .../http_request/package-lock.json | 0 .../http_request/package.json | 0 .../http_request/test/fletch.ts | 0 .../http_request/test/generate_body.ts | 6 +- .../http_request/test/generate_tests.ts | 8 +- .../http_request/test/test.ts | 14 +- .../http_request/tsconfig.json | 0 .../http_request_update/dfx.json | 0 .../http_request_update/package-lock.json | 0 .../http_request_update/package.json | 0 .../http_request_update/test/fletch.ts | 0 .../http_request_update/test/generate_body.ts | 6 +- .../test/generate_tests.ts | 8 +- .../http_request_update/test/test.ts | 16 +- .../http_request_update/tsconfig.json | 0 .../canister_methods/init/dfx.json | 0 .../canister_methods/init/package-lock.json | 0 .../canister_methods/init/package.json | 0 .../test/generate_callable_method_body.ts | 6 +- .../init/test/generate_init_body.ts | 8 +- .../init/test/generate_tests.ts | 8 +- .../canister_methods/init/test/test.ts | 18 +- .../canister_methods/init/tsconfig.json | 0 .../canister_methods/inspect_message/dfx.json | 0 .../inspect_message/package-lock.json | 0 .../inspect_message/package.json | 0 .../inspect_message/test/generate_tests.ts | 10 +- .../inspect_message/test/test.ts | 16 +- .../inspect_message/tsconfig.json | 0 .../canister_methods/post_upgrade/dfx.json | 0 .../post_upgrade/package-lock.json | 0 .../post_upgrade/package.json | 0 .../test/generate_callable_method_body.ts | 10 + .../test/generate_init_method_body.ts | 8 +- .../post_upgrade/test/generate_init_tests.ts | 8 +- .../test/generate_post_upgrade_method_body.ts | 8 +- .../test/generate_post_upgrade_tests.ts | 8 +- .../post_upgrade/test/global_var_name.ts | 0 .../post_upgrade/test/test.ts | 30 +- .../post_upgrade/tsconfig.json | 0 .../canister_methods/pre_upgrade/dfx.json | 0 .../pre_upgrade/package-lock.json | 0 .../canister_methods/pre_upgrade/package.json | 0 .../canister_methods/pre_upgrade/test/test.ts | 20 +- .../pre_upgrade/tsconfig.json | 0 .../canister_methods/query/dfx.json | 0 .../canister_methods/query/package-lock.json | 0 .../canister_methods/query/package.json | 0 .../query/test/generate_body.ts | 18 + .../query/test/generate_tests.ts | 10 +- .../canister_methods/query/test/test.ts | 12 +- .../canister_methods/query/tsconfig.json | 0 .../canister_methods/update/dfx.json | 0 .../canister_methods/update/package-lock.json | 0 .../canister_methods/update/package.json | 0 .../update/test/generate_body.ts | 18 + .../update/test/generate_tests.ts | 10 +- .../canister_methods/update/test/test.ts | 12 +- .../canister_methods/update/tsconfig.json | 0 .../float32/dfx.json | 0 .../float32/package-lock.json | 0 .../float32/package.json | 0 .../float32/test/generate_body.ts | 6 +- .../float32/test/generate_tests.ts | 6 +- .../float32/test/test.ts | 10 +- .../float32/tsconfig.json | 0 .../float64/dfx.json | 0 .../float64/package-lock.json | 0 .../float64/package.json | 0 .../float64/test/generate_body.ts | 6 +- .../float64/test/generate_tests.ts | 6 +- .../float64/test/test.ts | 10 +- .../float64/tsconfig.json | 0 .../{class_syntax => class_api}/func/dfx.json | 0 .../func/package-lock.json | 0 .../func/package.json | 0 .../func/test/generate_body.ts | 8 +- .../func/test/generate_tests.ts | 8 +- .../func/test/test.ts | 10 +- .../func/tsconfig.json | 0 .../{class_syntax => class_api}/int/dfx.json | 0 .../int/package-lock.json | 0 .../int/package.json | 0 .../int/test/generate_body.ts | 6 +- .../int/test/generate_tests.ts | 6 +- .../int/test/test.ts | 10 +- .../int/tsconfig.json | 0 .../int16/dfx.json | 0 .../int16/package-lock.json | 0 .../int16/package.json | 0 .../int16/test/generate_body.ts | 6 +- .../int16/test/generate_tests.ts | 6 +- .../int16/test/test.ts | 10 +- .../int16/tsconfig.json | 0 .../int32/dfx.json | 0 .../int32/package-lock.json | 0 .../int32/package.json | 0 .../int32/test/generate_body.ts | 6 +- .../int32/test/generate_tests.ts | 6 +- .../int32/test/test.ts | 10 +- .../int32/tsconfig.json | 0 .../int64/dfx.json | 0 .../int64/package-lock.json | 0 .../int64/package.json | 0 .../int64/test/generate_body.ts | 6 +- .../int64/test/generate_tests.ts | 6 +- .../int64/test/test.ts | 10 +- .../int64/tsconfig.json | 0 .../{class_syntax => class_api}/int8/dfx.json | 0 .../int8/package-lock.json | 0 .../int8/package.json | 0 .../int8/test/generate_body.ts | 6 +- .../int8/test/generate_tests.ts | 6 +- .../int8/test/test.ts | 10 +- .../int8/tsconfig.json | 0 .../{class_syntax => class_api}/nat/dfx.json | 0 .../nat/package-lock.json | 0 .../nat/package.json | 0 .../nat/test/generate_body.ts | 6 +- .../nat/test/generate_tests.ts | 6 +- .../nat/test/test.ts | 10 +- .../nat/tsconfig.json | 0 .../nat16/dfx.json | 0 .../nat16/package-lock.json | 0 .../nat16/package.json | 0 .../nat16/test/generate_body.ts | 6 +- .../nat16/test/generate_tests.ts | 6 +- .../nat16/test/test.ts | 10 +- .../nat16/tsconfig.json | 0 .../nat32/dfx.json | 0 .../nat32/package-lock.json | 0 .../nat32/package.json | 0 .../nat32/test/generate_body.ts | 6 +- .../nat32/test/generate_tests.ts | 6 +- .../nat32/test/test.ts | 10 +- .../nat32/tsconfig.json | 0 .../nat64/dfx.json | 0 .../nat64/package-lock.json | 0 .../nat64/package.json | 0 .../nat64/test/generate_body.ts | 6 +- .../nat64/test/generate_tests.ts | 6 +- .../nat64/test/test.ts | 10 +- .../nat64/tsconfig.json | 0 .../{class_syntax => class_api}/nat8/dfx.json | 0 .../nat8/package-lock.json | 0 .../nat8/package.json | 0 .../nat8/test/generate_body.ts | 6 +- .../nat8/test/generate_tests.ts | 6 +- .../nat8/test/test.ts | 10 +- .../nat8/tsconfig.json | 0 .../{class_syntax => class_api}/null/dfx.json | 0 .../null/package-lock.json | 0 .../null/package.json | 0 .../null/test/generate_body.ts | 4 +- .../null/test/generate_tests.ts | 6 +- .../null/test/test.ts | 10 +- .../null/tsconfig.json | 0 .../{class_syntax => class_api}/opt/dfx.json | 0 .../opt/package-lock.json | 0 .../opt/package.json | 0 .../opt/test/generate_body.ts | 8 +- .../opt/test/generate_tests.ts | 8 +- .../opt/test/test.ts | 10 +- .../opt/tsconfig.json | 0 .../principal/dfx.json | 0 .../principal/package-lock.json | 0 .../principal/package.json | 0 .../principal/test/generate_body.ts | 6 +- .../principal/test/generate_tests.ts | 6 +- .../principal/test/test.ts | 10 +- .../principal/tsconfig.json | 0 .../record/dfx.json | 0 .../record/package-lock.json | 0 .../record/package.json | 0 .../record/test/generate_body.ts | 8 +- .../record/test/generate_tests.ts | 8 +- .../record/test/test.ts | 10 +- .../record/tsconfig.json | 0 .../recursive/dfx.json | 0 .../recursive/package-lock.json | 0 .../recursive/package.json | 0 .../recursive/test/generate_body.ts | 8 +- .../recursive/test/generate_tests.ts | 8 +- .../recursive/test/test.ts | 12 +- .../recursive/tsconfig.json | 0 .../service/dfx.json | 0 .../service/package-lock.json | 0 .../service/package.json | 0 .../service/test/generate_body.ts | 4 +- .../service/test/generate_tests.ts | 6 +- .../service/test/test.ts | 10 +- .../service/tsconfig.json | 0 .../stable_b_tree_map/dfx.json | 0 .../stable_b_tree_map/package-lock.json | 0 .../stable_b_tree_map/package.json | 0 .../stable_b_tree_map/test/contains_key.ts | 10 +- .../stable_b_tree_map/test/get.ts | 10 +- .../stable_b_tree_map/test/insert.ts | 10 +- .../stable_b_tree_map/test/is_empty.ts | 10 +- .../stable_b_tree_map/test/items.ts | 10 +- .../stable_b_tree_map/test/keys.ts | 10 +- .../stable_b_tree_map/test/len.ts | 10 +- .../stable_b_tree_map/test/remove.ts | 10 +- .../stable_b_tree_map/test/test.ts | 8 +- .../stable_b_tree_map/test/utils.ts | 0 .../stable_b_tree_map/test/values.ts | 10 +- .../stable_b_tree_map/tsconfig.json | 0 .../{class_syntax => class_api}/text/dfx.json | 0 .../text/package-lock.json | 0 .../text/package.json | 0 .../text/test/generate_body.ts | 6 +- .../text/test/generate_tests.ts | 6 +- .../text/test/test.ts | 10 +- .../text/tsconfig.json | 0 .../tuple/dfx.json | 0 .../tuple/package-lock.json | 0 .../tuple/package.json | 0 .../tuple/test/generate_body.ts | 8 +- .../tuple/test/generate_tests.ts | 8 +- .../tuple/test/test.ts | 10 +- .../tuple/tsconfig.json | 0 .../variant/dfx.json | 0 .../variant/package-lock.json | 0 .../variant/package.json | 0 .../variant/test/generate_body.ts | 8 +- .../variant/test/generate_tests.ts | 8 +- .../variant/test/test.ts | 10 +- .../variant/tsconfig.json | 0 .../{class_syntax => class_api}/vec/dfx.json | 0 .../vec/package-lock.json | 0 .../vec/package.json | 0 .../vec/test/generate_body.ts | 6 +- .../vec/test/generate_tests.ts | 6 +- .../vec/test/test.ts | 10 +- .../vec/tsconfig.json | 0 .../test/generate_callable_method_body.ts | 10 - .../query/test/generate_body.ts | 18 - .../update/test/generate_body.ts | 18 - .../blob/dfx.json | 0 .../blob/package-lock.json | 0 .../blob/package.json | 0 .../blob/test/generate_body.ts | 6 +- .../blob/test/generate_tests.ts | 6 +- .../blob/test/test.ts | 10 +- .../blob/tsconfig.json | 0 .../bool/dfx.json | 0 .../bool/package-lock.json | 0 .../bool/package.json | 0 .../bool/test/generate_body.ts | 6 +- .../bool/test/generate_tests.ts | 6 +- .../bool/test/test.ts | 10 +- .../bool/tsconfig.json | 0 .../canister_methods/http_request/dfx.json | 0 .../http_request/package-lock.json | 0 .../http_request/package.json | 0 .../http_request/test/fletch.ts | 0 .../http_request/test/generate_body.ts | 6 +- .../http_request/test/generate_tests.ts | 8 +- .../http_request/test/test.ts | 14 +- .../http_request/tsconfig.json | 0 .../http_request_update/dfx.json | 0 .../http_request_update/package-lock.json | 0 .../http_request_update/package.json | 0 .../http_request_update/test/fletch.ts | 0 .../http_request_update/test/generate_body.ts | 6 +- .../test/generate_tests.ts | 8 +- .../http_request_update/test/test.ts | 16 +- .../http_request_update/tsconfig.json | 0 .../canister_methods/init/dfx.json | 0 .../canister_methods/init/package-lock.json | 0 .../canister_methods/init/package.json | 0 .../test/generate_callable_method_body.ts | 10 + .../init/test/generate_init_body.ts | 8 +- .../init/test/generate_tests.ts | 8 +- .../canister_methods/init/test/test.ts | 18 +- .../canister_methods/init/tsconfig.json | 0 .../canister_methods/inspect_message/dfx.json | 0 .../inspect_message/package-lock.json | 0 .../inspect_message/package.json | 0 .../inspect_message/test/generate_tests.ts | 10 +- .../inspect_message/test/test.ts | 16 +- .../inspect_message/tsconfig.json | 0 .../canister_methods/post_upgrade/dfx.json | 0 .../post_upgrade/package-lock.json | 0 .../post_upgrade/package.json | 0 .../test/generate_callable_method_body.ts | 10 + .../test/generate_init_method_body.ts | 8 +- .../post_upgrade/test/generate_init_tests.ts | 8 +- .../test/generate_post_upgrade_method_body.ts | 8 +- .../test/generate_post_upgrade_tests.ts | 8 +- .../post_upgrade/test/global_var_name.ts | 0 .../post_upgrade/test/test.ts | 30 +- .../post_upgrade/tsconfig.json | 0 .../canister_methods/pre_upgrade/dfx.json | 0 .../pre_upgrade/package-lock.json | 0 .../canister_methods/pre_upgrade/package.json | 0 .../canister_methods/pre_upgrade/test/test.ts | 20 +- .../pre_upgrade/tsconfig.json | 0 .../canister_methods/query/dfx.json | 0 .../canister_methods/query/package-lock.json | 0 .../canister_methods/query/package.json | 0 .../query/test/generate_body.ts | 18 + .../query/test/generate_tests.ts | 10 +- .../canister_methods/query/test/test.ts | 12 +- .../canister_methods/query/tsconfig.json | 0 .../canister_methods/update/dfx.json | 0 .../canister_methods/update/package-lock.json | 0 .../canister_methods/update/package.json | 0 .../update/test/generate_body.ts | 18 + .../update/test/generate_tests.ts | 10 +- .../canister_methods/update/test/test.ts | 12 +- .../canister_methods/update/tsconfig.json | 0 .../float32/dfx.json | 0 .../float32/package-lock.json | 0 .../float32/package.json | 0 .../float32/test/generate_body.ts | 6 +- .../float32/test/generate_tests.ts | 6 +- .../float32/test/test.ts | 10 +- .../float32/tsconfig.json | 0 .../float64/dfx.json | 0 .../float64/package-lock.json | 0 .../float64/package.json | 0 .../float64/test/generate_body.ts | 6 +- .../float64/test/generate_tests.ts | 6 +- .../float64/test/test.ts | 10 +- .../float64/tsconfig.json | 0 .../func/dfx.json | 0 .../func/package-lock.json | 0 .../func/package.json | 0 .../func/test/generate_body.ts | 8 +- .../func/test/generate_tests.ts | 8 +- .../func/test/test.ts | 10 +- .../func/tsconfig.json | 0 .../int/dfx.json | 0 .../int/package-lock.json | 0 .../int/package.json | 0 .../int/test/generate_body.ts | 6 +- .../int/test/generate_tests.ts | 6 +- .../int/test/test.ts | 10 +- .../int/tsconfig.json | 0 .../int16/dfx.json | 0 .../int16/package-lock.json | 0 .../int16/package.json | 0 .../int16/test/generate_body.ts | 6 +- .../int16/test/generate_tests.ts | 6 +- .../int16/test/test.ts | 10 +- .../int16/tsconfig.json | 0 .../int32/dfx.json | 0 .../int32/package-lock.json | 0 .../int32/package.json | 0 .../int32/test/generate_body.ts | 6 +- .../int32/test/generate_tests.ts | 6 +- .../int32/test/test.ts | 10 +- .../int32/tsconfig.json | 0 .../int64/dfx.json | 0 .../int64/package-lock.json | 0 .../int64/package.json | 0 .../int64/test/generate_body.ts | 6 +- .../int64/test/generate_tests.ts | 6 +- .../int64/test/test.ts | 10 +- .../int64/tsconfig.json | 0 .../int8/dfx.json | 0 .../int8/package-lock.json | 0 .../int8/package.json | 0 .../int8/test/generate_body.ts | 6 +- .../int8/test/generate_tests.ts | 6 +- .../int8/test/test.ts | 10 +- .../int8/tsconfig.json | 0 .../nat/dfx.json | 0 .../nat/package-lock.json | 0 .../nat/package.json | 0 .../nat/test/generate_body.ts | 6 +- .../nat/test/generate_tests.ts | 6 +- .../nat/test/test.ts | 10 +- .../nat/tsconfig.json | 0 .../nat16/dfx.json | 0 .../nat16/package-lock.json | 0 .../nat16/package.json | 0 .../nat16/test/generate_body.ts | 6 +- .../nat16/test/generate_tests.ts | 6 +- .../nat16/test/test.ts | 10 +- .../nat16/tsconfig.json | 0 .../nat32/dfx.json | 0 .../nat32/package-lock.json | 0 .../nat32/package.json | 0 .../nat32/test/generate_body.ts | 6 +- .../nat32/test/generate_tests.ts | 6 +- .../nat32/test/test.ts | 10 +- .../nat32/tsconfig.json | 0 .../nat64/dfx.json | 0 .../nat64/package-lock.json | 0 .../nat64/package.json | 0 .../nat64/test/generate_body.ts | 6 +- .../nat64/test/generate_tests.ts | 6 +- .../nat64/test/test.ts | 10 +- .../nat64/tsconfig.json | 0 .../nat8/dfx.json | 0 .../nat8/package-lock.json | 0 .../nat8/package.json | 0 .../nat8/test/generate_body.ts | 6 +- .../nat8/test/generate_tests.ts | 6 +- .../nat8/test/test.ts | 10 +- .../nat8/tsconfig.json | 0 .../null/dfx.json | 0 .../null/package-lock.json | 0 .../null/package.json | 0 .../null/test/generate_body.ts | 4 +- .../null/test/generate_tests.ts | 6 +- .../null/test/test.ts | 10 +- .../null/tsconfig.json | 0 .../opt/dfx.json | 0 .../opt/package-lock.json | 0 .../opt/package.json | 0 .../opt/test/generate_body.ts | 8 +- .../opt/test/generate_tests.ts | 8 +- .../opt/test/test.ts | 10 +- .../opt/tsconfig.json | 0 .../principal/dfx.json | 0 .../principal/package-lock.json | 0 .../principal/package.json | 0 .../principal/test/generate_body.ts | 6 +- .../principal/test/generate_tests.ts | 6 +- .../principal/test/test.ts | 10 +- .../principal/tsconfig.json | 0 .../record/dfx.json | 0 .../record/package-lock.json | 0 .../record/package.json | 0 .../record/test/generate_body.ts | 8 +- .../record/test/generate_tests.ts | 8 +- .../record/test/test.ts | 10 +- .../record/tsconfig.json | 0 .../recursive/dfx.json | 0 .../recursive/package-lock.json | 0 .../recursive/package.json | 0 .../recursive/test/generate_body.ts | 8 +- .../recursive/test/generate_tests.ts | 8 +- .../recursive/test/test.ts | 12 +- .../recursive/tsconfig.json | 0 .../service/dfx.json | 0 .../service/package-lock.json | 0 .../service/package.json | 0 .../service/test/generate_body.ts | 4 +- .../service/test/generate_tests.ts | 6 +- .../service/test/test.ts | 10 +- .../service/tsconfig.json | 0 .../stable_b_tree_map/dfx.json | 0 .../stable_b_tree_map/package-lock.json | 0 .../stable_b_tree_map/package.json | 0 .../stable_b_tree_map/test/contains_key.ts | 10 +- .../stable_b_tree_map/test/get.ts | 10 +- .../stable_b_tree_map/test/insert.ts | 10 +- .../stable_b_tree_map/test/is_empty.ts | 10 +- .../stable_b_tree_map/test/items.ts | 10 +- .../stable_b_tree_map/test/keys.ts | 10 +- .../stable_b_tree_map/test/len.ts | 10 +- .../stable_b_tree_map/test/remove.ts | 10 +- .../stable_b_tree_map/test/test.ts | 8 +- .../stable_b_tree_map/test/utils.ts | 0 .../stable_b_tree_map/test/values.ts | 10 +- .../stable_b_tree_map/tsconfig.json | 0 .../text/dfx.json | 0 .../text/package-lock.json | 0 .../text/package.json | 0 .../text/test/generate_body.ts | 6 +- .../text/test/generate_tests.ts | 6 +- .../text/test/test.ts | 10 +- .../text/tsconfig.json | 0 .../tuple/dfx.json | 0 .../tuple/package-lock.json | 0 .../tuple/package.json | 0 .../tuple/test/generate_body.ts | 8 +- .../tuple/test/generate_tests.ts | 8 +- .../tuple/test/test.ts | 10 +- .../tuple/tsconfig.json | 0 .../variant/dfx.json | 0 .../variant/package-lock.json | 0 .../variant/package.json | 0 .../variant/test/generate_body.ts | 8 +- .../variant/test/generate_tests.ts | 8 +- .../variant/test/test.ts | 10 +- .../variant/tsconfig.json | 0 .../vec/dfx.json | 0 .../vec/package-lock.json | 0 .../vec/package.json | 0 .../vec/test/generate_body.ts | 6 +- .../vec/test/generate_tests.ts | 6 +- .../vec/test/test.ts | 10 +- .../vec/tsconfig.json | 0 .../test/generate_callable_method_body.ts | 10 - .../test/generate_callable_method_body.ts | 10 - .../query/test/generate_body.ts | 18 - .../update/test/generate_body.ts | 18 - 2171 files changed, 2051 insertions(+), 2086 deletions(-) rename {property_tests => test/property}/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts (100%) rename {property_tests => test/property}/arbitraries/candid/candid_definition_arb/index.ts (100%) rename {property_tests => test/property}/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts (100%) rename {property_tests => test/property}/arbitraries/candid/candid_definition_arb/simple_candid_definition_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/candid_definition_arb/types.ts (97%) rename {property_tests => test/property}/arbitraries/candid/candid_return_type_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/candid_type.ts (100%) rename {property_tests => test/property}/arbitraries/candid/candid_value_and_meta_arb.ts (97%) rename {property_tests => test/property}/arbitraries/candid/candid_value_and_meta_arb_generator.ts (100%) rename {property_tests => test/property}/arbitraries/candid/candid_values_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/constructed/blob_arb/definition_arb.ts (96%) rename {property_tests => test/property}/arbitraries/candid/constructed/blob_arb/index.ts (100%) rename {property_tests => test/property}/arbitraries/candid/constructed/blob_arb/values_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/constructed/opt_arb/definition_arb.ts (98%) rename {property_tests => test/property}/arbitraries/candid/constructed/opt_arb/index.ts (100%) rename {property_tests => test/property}/arbitraries/candid/constructed/opt_arb/values_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/constructed/record_arb/definition_arb.ts (98%) rename {property_tests => test/property}/arbitraries/candid/constructed/record_arb/index.ts (100%) rename {property_tests => test/property}/arbitraries/candid/constructed/record_arb/values_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/constructed/tuple_arb/definition_arb.ts (98%) rename {property_tests => test/property}/arbitraries/candid/constructed/tuple_arb/index.ts (100%) rename {property_tests => test/property}/arbitraries/candid/constructed/tuple_arb/values_arbs.ts (100%) rename {property_tests => test/property}/arbitraries/candid/constructed/variant_arb/definition_arbs.ts (99%) rename {property_tests => test/property}/arbitraries/candid/constructed/variant_arb/index.ts (100%) rename {property_tests => test/property}/arbitraries/candid/constructed/variant_arb/values_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/constructed/vec_arb/definition_arb.ts (98%) rename {property_tests => test/property}/arbitraries/candid/constructed/vec_arb/index.ts (100%) rename {property_tests => test/property}/arbitraries/candid/constructed/vec_arb/values_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/corresponding_js_type.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/bool.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/floats/float32_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/floats/float64_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/ints/index.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/ints/int16_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/ints/int32_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/ints/int64_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/ints/int8_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/ints/int_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/nats/index.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/nats/nat16_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/nats/nat32_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/nats/nat64_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/nats/nat8_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/nats/nat_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/null.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/text.ts (100%) rename {property_tests => test/property}/arbitraries/candid/primitive/void.ts (100%) rename {property_tests => test/property}/arbitraries/candid/recursive/definition_arb.ts (98%) rename {property_tests => test/property}/arbitraries/candid/recursive/index.ts (100%) rename {property_tests => test/property}/arbitraries/candid/recursive/values_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/reference/func_arb/definition_arb.ts (97%) rename {property_tests => test/property}/arbitraries/candid/reference/func_arb/index.ts (100%) rename {property_tests => test/property}/arbitraries/candid/reference/func_arb/values_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/reference/principal_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/reference/service_arb/definition_arb.ts (98%) rename {property_tests => test/property}/arbitraries/candid/reference/service_arb/index.ts (100%) rename {property_tests => test/property}/arbitraries/candid/reference/service_arb/service_method_arb.ts (94%) rename {property_tests => test/property}/arbitraries/candid/reference/service_arb/values_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts (97%) rename {property_tests => test/property}/arbitraries/candid/simple_type_arbs/definition_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/simple_type_arbs/values_arb.ts (100%) rename {property_tests => test/property}/arbitraries/candid/to_src_literal/bigint.ts (100%) rename {property_tests => test/property}/arbitraries/candid/to_src_literal/blob.ts (100%) rename {property_tests => test/property}/arbitraries/candid/to_src_literal/boolean.ts (100%) rename {property_tests => test/property}/arbitraries/candid/to_src_literal/float.ts (100%) rename {property_tests => test/property}/arbitraries/candid/to_src_literal/null.ts (100%) rename {property_tests => test/property}/arbitraries/candid/to_src_literal/number.ts (100%) rename {property_tests => test/property}/arbitraries/candid/to_src_literal/principal.ts (100%) rename {property_tests => test/property}/arbitraries/candid/to_src_literal/string.ts (100%) rename {property_tests => test/property}/arbitraries/candid/to_src_literal/void.ts (100%) rename {property_tests => test/property}/arbitraries/canister_arb.ts (100%) rename {property_tests => test/property}/arbitraries/canister_methods/index.ts (100%) rename {property_tests => test/property}/arbitraries/canister_methods/init_method_arb.ts (100%) rename {property_tests => test/property}/arbitraries/canister_methods/inspect_message_method_arb.ts (100%) rename {property_tests => test/property}/arbitraries/canister_methods/post_upgrade_arb.ts (100%) rename {property_tests => test/property}/arbitraries/canister_methods/pre_upgrade_method_arb.ts (100%) rename {property_tests => test/property}/arbitraries/canister_methods/query_method_arb.ts (100%) rename {property_tests => test/property}/arbitraries/canister_methods/update_method_arb.ts (100%) rename {property_tests => test/property}/arbitraries/config.ts (100%) rename {property_tests => test/property}/arbitraries/http/body_arb.ts (100%) rename {property_tests => test/property}/arbitraries/http/headers_arb.ts (100%) rename {property_tests => test/property}/arbitraries/http/request_arb.ts (98%) rename {property_tests => test/property}/arbitraries/http/response_arb.ts (99%) rename {property_tests => test/property}/arbitraries/js_function_name_arb.ts (100%) rename {property_tests => test/property}/arbitraries/stable_b_tree_map_arb.ts (100%) rename {property_tests => test/property}/arbitraries/types.ts (100%) rename {property_tests => test/property}/arbitraries/unique_identifier_arb.ts (100%) rename {property_tests => test/property}/arbitraries/unique_primitive_arb.ts (100%) rename {property_tests => test/property}/are_params_correctly_ordered.ts (100%) rename {property_tests => test/property}/get_actor.ts (95%) rename {property_tests => test/property}/index.ts (100%) rename {property_tests => test/property}/set_experimental.ts (100%) rename {property_tests => test/property}/test/index.ts (99%) rename {property_tests => test/property}/tsconfig.json (100%) rename {property_tests => test/property}/visitors/LICENCE (100%) rename {property_tests => test/property}/visitors/cli-string-visitor.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/async_await/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/async_await/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/async_await/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/async_await/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/async_await/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/async_await/src/async_await.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/async_await/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/async_await/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/async_await/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/audio_recorder/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/audio_recorder/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/audio_recorder/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/audio_recorder/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/audio_recorder/package.json (75%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/audio_recorder/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/audio_recorder/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/audio_recorder/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/audio_recorder/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/.bitcoin.conf (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/package.json (87%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/scripts/deploy.sh (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/scripts/install.sh (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/test/bitcoin_cli.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/test/pretest.ts (77%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/test/setup.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/test/test.ts (89%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/test/wallets.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bitcoin/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/blob_array/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/blob_array/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/blob_array/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/blob_array/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/blob_array/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/counter => class_api/blob_array}/package.json (77%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/blob_array/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/blob_array/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/blob_array/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/blob_array/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/bytes/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/test/example_files/example_1000_kb.txt (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/test/example_files/example_100_kb.txt (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/test/example_files/example_10_kb.txt (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/test/example_files/example_1_kb.txt (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/test/example_files/example_2000_kb.txt (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/test/pretest.ts (85%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/test/test.ts (80%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/bytes/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/call_raw/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/call_raw/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/call_raw/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/call_raw/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/bytes => class_api/call_raw}/package.json (78%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/call_raw/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/call_raw/test/pretest.ts (74%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/call_raw/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/call_raw/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_encoding/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_encoding/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_encoding/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_encoding/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/complex_init => class_api/candid_encoding}/package.json (76%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_encoding/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_encoding/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_encoding/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_encoding/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_keywords/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_keywords/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_keywords/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_keywords/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_keywords/package.json (75%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_keywords/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_keywords/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_keywords/test/test.ts (93%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/candid_keywords/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/canister/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/canister/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/canister/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/canister/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/canister/package.json (77%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/canister/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/canister/src/some_canister.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/canister/src/some_canister.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/canister/test/pretest.ts (83%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/canister/test/test.ts (78%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/canister/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_init/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_init/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_init/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_init/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/cycles => class_api/complex_init}/package.json (77%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_init/src/complex_init/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_init/src/rec_init/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_init/test/pretest.ts (96%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_init/test/test.ts (91%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_init/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/func_types => class_api/complex_types}/package.json (76%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/src/candid_types.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/src/posts.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/src/reactions.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/src/state.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/src/threads.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/src/users.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/test/test.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/complex_types/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/composite_queries/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/composite_queries/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/composite_queries/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/composite_queries/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/composite_queries/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/composite_queries/src/canister1/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/composite_queries/src/canister2/index.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/composite_queries/src/canister2/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/composite_queries/src/canister3/index.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/composite_queries/src/canister3/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/composite_queries/test/pretest.ts (97%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/composite_queries/test/test.ts (93%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/composite_queries/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/counter/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/counter/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/counter/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/counter/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/date => class_api/counter}/package.json (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/counter/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/counter/test/pretest.ts (74%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/counter/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/counter/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cross_canister_calls/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cross_canister_calls/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cross_canister_calls/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cross_canister_calls/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/cross_canister_calls/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cross_canister_calls/src/canister1/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cross_canister_calls/src/canister2/index.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cross_canister_calls/src/canister2/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cross_canister_calls/src/canister2/types.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cross_canister_calls/test/pretest.ts (96%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cross_canister_calls/test/test.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cross_canister_calls/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cycles/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cycles/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cycles/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cycles/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/cycles/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cycles/src/cycles/index.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cycles/src/cycles/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cycles/src/intermediary/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cycles/test/pretest.ts (89%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cycles/test/test.ts (90%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/cycles/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/date/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/date/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/date/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/date/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/date/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/date/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/date/test/pretest.ts (84%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/date/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/date/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ethereum_json_rpc/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ethereum_json_rpc/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ethereum_json_rpc/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ethereum_json_rpc/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ethereum_json_rpc/package.json (78%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ethereum_json_rpc/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ethereum_json_rpc/test/pretest.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ethereum_json_rpc/test/test.ts (96%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ethereum_json_rpc/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/func_types/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/func_types/canisters/func_types/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/func_types/canisters/notifiers/index.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/func_types/canisters/notifiers/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/func_types/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/func_types/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/func_types/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/complex_types => class_api/func_types}/package.json (75%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/func_types/test/pretest.ts (96%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/func_types/test/test.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/func_types/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/heartbeat/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/heartbeat/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/heartbeat/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/heartbeat/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/timers => class_api/heartbeat}/package.json (78%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/heartbeat/src/heartbeat_async/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/heartbeat/src/heartbeat_sync/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/heartbeat/test/pretest.ts (77%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/heartbeat/test/test.ts (89%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/heartbeat/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ic_api/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ic_api/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ic_api/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ic_api/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/key_value_store => class_api/ic_api}/package.json (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ic_api/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ic_api/test/pretest.ts (84%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ic_api/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ic_api/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/icrc/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/icrc/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/icrc/canisters/proxy/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/icrc/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/icrc/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/icrc/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/icrc/package.json (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/icrc/params.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/icrc/test/pretest.ts (93%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/icrc/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/icrc/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/imports/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/imports/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/imports/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/imports/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/imports/package.json (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/imports/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/imports/src/library.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/imports/test/pretest.ts (74%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/imports/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/imports/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/init/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/init/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/init/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/init/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/init/package.json (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/init/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/init/test/pretest.ts (87%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/init/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/init/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/inspect_message/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/inspect_message/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/inspect_message/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/inspect_message/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/async_await => class_api/inspect_message}/package.json (76%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/inspect_message/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/inspect_message/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/inspect_message/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/inspect_message/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/key_value_store/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/key_value_store/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/key_value_store/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/key_value_store/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/manual_reply => class_api/key_value_store}/package.json (76%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/key_value_store/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/key_value_store/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/key_value_store/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/key_value_store/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ledger_canister/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ledger_canister/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ledger_canister/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ledger_canister/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/ledger_canister/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ledger_canister/src/icp_ledger/ledger.private.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ledger_canister/src/icp_ledger/ledger.public.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ledger_canister/src/ledger_canister/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ledger_canister/test/pretest.ts (98%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ledger_canister/test/test.ts (81%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/ledger_canister/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/list_of_lists/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/list_of_lists/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/list_of_lists/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/list_of_lists/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/list_of_lists/package.json (77%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/list_of_lists/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/list_of_lists/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/list_of_lists/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/list_of_lists/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/management_canister/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/management_canister/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/management_canister/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/management_canister/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/management_canister/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/management_canister/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/management_canister/src/test.wasm (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/management_canister/test/pretest.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/management_canister/test/test.ts (93%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/management_canister/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/manual_reply/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/manual_reply/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/manual_reply/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/manual_reply/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/heartbeat => class_api/manual_reply}/package.json (77%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/manual_reply/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/manual_reply/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/manual_reply/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/manual_reply/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/calc/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/calc/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/calc/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/calc/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/calc/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/blob_array => class_api/motoko_examples/calc}/package.json (76%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/calc/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/calc/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/calc/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/calc/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/counter/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/counter/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/counter/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/counter/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/counter/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/counter/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/counter/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/counter/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/counter/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/echo/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/echo/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/echo/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/echo/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/echo/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/call_raw => class_api/motoko_examples/echo}/package.json (76%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/echo/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/echo/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/echo/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/echo/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/factorial/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/factorial/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/factorial/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/factorial/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/factorial/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/candid_encoding => class_api/motoko_examples/factorial}/package.json (74%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/factorial/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/factorial/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/factorial/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/factorial/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello-world/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello-world/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello-world/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello-world/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello-world/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello-world/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello-world/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello-world/test/test.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello-world/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/NOTICE (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/package.json (92%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/src/hello/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/src/hello_assets/assets/favicon.ico (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/src/hello_assets/assets/logo.png (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/src/hello_assets/assets/main.css (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/src/hello_assets/assets/sample-asset.txt (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/src/hello_assets/src/index.html (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/src/hello_assets/src/index.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/hello/webpack.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/http_counter/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/http_counter/NOTICE (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/http_counter/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/http_counter/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/http_counter/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/http_counter/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/http_counter/package.json (83%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/http_counter/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/http_counter/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/http_counter/test/test.ts (85%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/http_counter/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/NOTICE (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/package.json (91%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/src/minimal_dapp/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/logo.png (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/main.css (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/sample-asset.txt (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.html (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/test/test.ts (93%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/minimal-counter-dapp/webpack.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/persistent-storage/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/persistent-storage/NOTICE (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/persistent-storage/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/persistent-storage/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/persistent-storage/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/persistent-storage/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/persistent-storage/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/persistent-storage/test/pretest.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/persistent-storage/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/persistent-storage/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/NOTICE (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/package.json (92%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/src/declarations/phone_book/index.d.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/src/declarations/phone_book/index.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.d.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/src/phone_book/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/src/www/assets/sample-asset.txt (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/src/www/src/index.html (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/src/www/src/index.jsx (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/test/test.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/tsconfig.webpack.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/phone-book/webpack.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/quicksort/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/quicksort/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/quicksort/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/quicksort/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/quicksort/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/quicksort/src/comparison.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/quicksort/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/quicksort/src/quicksort.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/quicksort/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/quicksort/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/quicksort/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/simple-to-do/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/simple-to-do/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/simple-to-do/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/simple-to-do/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/simple-to-do/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/simple-to-do/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/simple-to-do/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/simple-to-do/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/simple-to-do/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/NOTICE (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/package.json (91%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/src/declarations/index.d.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/src/declarations/index.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/src/declarations/superheroes.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/src/declarations/superheroes.did.d.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/src/declarations/superheroes.did.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/src/superheroes/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/src/www/components/create.jsx (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/src/www/components/delete.jsx (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/src/www/components/read.jsx (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/src/www/components/update.jsx (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/src/www/index.html (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/src/www/index.jsx (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/tsconfig.webpack.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/superheroes/webpack.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/threshold_ecdsa/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/threshold_ecdsa/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/threshold_ecdsa/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/threshold_ecdsa/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/threshold_ecdsa/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/threshold_ecdsa/package.json (73%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/threshold_ecdsa/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/threshold_ecdsa/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/threshold_ecdsa/test/test.ts (96%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/threshold_ecdsa/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/whoami/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/whoami/README.md (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/whoami/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/whoami/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/whoami/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/whoami/package.json (77%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/whoami/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/whoami/test/pretest.ts (96%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/whoami/test/test.ts (85%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/motoko_examples/whoami/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/new/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/new/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/new/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/new_candid_rpc => class_api/new}/package.json (86%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/new/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/new/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/new_candid_rpc/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/new_candid_rpc/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/new_candid_rpc/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/new => class_api/new_candid_rpc}/package.json (86%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/new_candid_rpc/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/new_candid_rpc/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/notify_raw/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/notify_raw/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/notify_raw/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/notify_raw/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/null_example => class_api/notify_raw}/package.json (77%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/notify_raw/src/canister1/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/notify_raw/src/canister2/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/notify_raw/test/pretest.ts (96%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/notify_raw/test/test.ts (96%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/notify_raw/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/null_example/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/null_example/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/null_example/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/null_example/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/recursion => class_api/null_example}/package.json (77%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/null_example/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/null_example/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/null_example/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/null_example/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/optional_types/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/optional_types/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/optional_types/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/optional_types/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/optional_types/package.json (78%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/optional_types/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/optional_types/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/optional_types/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/optional_types/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/outgoing_http_requests/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/outgoing_http_requests/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/outgoing_http_requests/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/outgoing_http_requests/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/outgoing_http_requests/package.json (76%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/outgoing_http_requests/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/outgoing_http_requests/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/outgoing_http_requests/test/test.ts (93%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/outgoing_http_requests/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/pre_and_post_upgrade/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/pre_and_post_upgrade/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/pre_and_post_upgrade/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/pre_and_post_upgrade/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/inspect_message => class_api/pre_and_post_upgrade}/package.json (74%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/pre_and_post_upgrade/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/pre_and_post_upgrade/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/pre_and_post_upgrade/test/test.ts (93%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/pre_and_post_upgrade/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/primitive_types/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/primitive_types/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/primitive_types/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/primitive_types/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/primitive_types/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/primitive_types/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/primitive_types/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/primitive_types/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/primitive_types/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/principal/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/principal/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/principal/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/principal/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax/ic_api => class_api/principal}/package.json (78%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/principal/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/principal/test/pretest.ts (74%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/principal/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/principal/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/query/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/query/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/query/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/query/package-lock.json (99%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/query/package.json (78%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/query/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/query/test/pretest.ts (84%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/query/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/query/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/randomness/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/randomness/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/randomness/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/randomness/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/randomness/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/randomness/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/randomness/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/randomness/test/test.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/randomness/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/recursion/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/recursion/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/recursion/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/recursion/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/simple_erc20 => class_api/recursion}/package.json (78%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/recursion/src/recursion/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/recursion/src/recursive_canister/index.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/recursion/src/recursive_canister/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/recursion/src/recursive_canister/types.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/recursion/test/pretest.ts (85%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/recursion/test/test.ts (92%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/recursion/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/rejections/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/rejections/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/rejections/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/rejections/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/rejections/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/rejections/src/nonexistent.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/rejections/src/rejections/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/rejections/src/some_canister/index.did (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/rejections/src/some_canister/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/rejections/test/pretest.ts (96%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/rejections/test/test.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/rejections/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_erc20/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_erc20/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_erc20/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_erc20/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/simple_erc20/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_erc20/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_erc20/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_erc20/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_erc20/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_user_accounts/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_user_accounts/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_user_accounts/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_user_accounts/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_user_accounts/package.json (75%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_user_accounts/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_user_accounts/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_user_accounts/test/test.ts (93%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/simple_user_accounts/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_b_tree_map_instruction_threshold/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_b_tree_map_instruction_threshold/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_b_tree_map_instruction_threshold/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_b_tree_map_instruction_threshold/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_b_tree_map_instruction_threshold/package.json (81%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_b_tree_map_instruction_threshold/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_b_tree_map_instruction_threshold/test/pretest.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_b_tree_map_instruction_threshold/test/test.ts (91%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_b_tree_map_instruction_threshold/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_structures/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_structures/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_structures/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_structures/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/stable_structures/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_structures/src/canister1/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_structures/src/canister2/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_structures/src/canister3/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_structures/src/types.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_structures/test/pretest.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_structures/test/test.ts (97%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/stable_structures/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/timers/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/timers/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/timers/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/timers/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/timers/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/timers/src/timers.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/timers/test/pretest.ts (84%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/timers/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/timers/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/tuple_types/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/tuple_types/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/tuple_types/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/tuple_types/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/class_api/tuple_types/package.json rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/tuple_types/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/tuple_types/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/tuple_types/test/test.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/tuple_types/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/update/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/update/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/update/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/update/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/update/package.json (78%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/update/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/update/test/pretest.ts (84%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/update/test/test.ts (79%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/update/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/vanilla_js/.gitignore (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/vanilla_js/dfx.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/vanilla_js/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/vanilla_js/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/vanilla_js/package.json (78%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/vanilla_js/src/index.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/vanilla_js/src/library.js (100%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/vanilla_js/test/pretest.ts (94%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/vanilla_js/test/test.ts (95%) rename tests/end_to_end/candid_rpc/{class_syntax => class_api}/vanilla_js/tsconfig.json (100%) delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/composite_queries/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/key_value_store/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/ledger_canister/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/management_canister/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/notify_raw/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/null_example/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/primitive_types/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/principal/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/randomness/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/rejections/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/simple_erc20/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/stable_structures/package.json delete mode 100644 tests/end_to_end/candid_rpc/class_syntax/tuple_types/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/async_await/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/async_await/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/async_await/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/async_await/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/heartbeat => functional_api/async_await}/package.json (88%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/async_await/src/async_await.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/async_await/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/async_await/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/async_await/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/async_await/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/audio_recorder/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/audio_recorder/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/audio_recorder/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/audio_recorder/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/audio_recorder/package.json (83%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/audio_recorder/src/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/audio_recorder/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/audio_recorder/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/audio_recorder/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/audio_recorder/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/audio_recorder/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/.bitcoin.conf (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/package.json (91%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/scripts/deploy.sh (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/scripts/install.sh (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/test/bitcoin_cli.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/test/setup.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/test/wallets.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bitcoin/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/blob_array/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/blob_array/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/blob_array/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/blob_array/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/blob_array/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/counter => functional_api/blob_array}/package.json (85%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/blob_array/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/blob_array/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/blob_array/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/blob_array/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/blob_array/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/date => functional_api/bytes}/package.json (85%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/test/example_files/example_1000_kb.txt (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/test/example_files/example_100_kb.txt (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/test/example_files/example_10_kb.txt (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/test/example_files/example_1_kb.txt (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/test/example_files/example_2000_kb.txt (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/bytes/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/call_raw/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/call_raw/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/call_raw/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/call_raw/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/bytes => functional_api/call_raw}/package.json (85%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/call_raw/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/call_raw/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/call_raw/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/call_raw/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/call_raw/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_encoding/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_encoding/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_encoding/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_encoding/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/blob_array => functional_api/candid_encoding}/package.json (84%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_encoding/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_encoding/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_encoding/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_encoding/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_encoding/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_keywords/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_keywords/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_keywords/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_keywords/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_keywords/package.json (83%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_keywords/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_keywords/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_keywords/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_keywords/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/candid_keywords/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/canister/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/canister/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/canister/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/canister/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/canister/package.json (88%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/canister/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/canister/src/some_canister.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/canister/src/some_canister.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/canister/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/canister/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/canister/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/canister/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/.bitcoin.conf (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/ckbtc/LICENSE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/ckbtc/ledger.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/internet_identity/LICENSE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/internet_identity/internet_identity.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/kyt/LICENSE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/kyt/kyt.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/minter/LICENSE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/minter/minter.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/package.json (97%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/scripts/deploy/all.sh (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/scripts/deploy/ckbtc.sh (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/scripts/deploy/internet_identity.sh (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/scripts/deploy/kyt.sh (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/scripts/deploy/minter.sh (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/scripts/deploy/wallet_backend.sh (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/scripts/install/all.sh (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/scripts/install/bitcoin.sh (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/backend/LICENSE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/backend/NOTICE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/backend/icrc.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/backend/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/backend/minter.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/frontend/elements/ck-app.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/frontend/index.html (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/frontend/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/frontend/package.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/index.d.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/index.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did.d.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_init/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_init/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_init/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_init/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/complex_init/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_init/src/complex_init/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_init/src/rec_init/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_init/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_init/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_init/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_init/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/package.json (83%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/src/candid_types.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/src/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/src/posts.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/src/reactions.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/src/state.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/src/threads.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/src/users.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/complex_types/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/composite_queries/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/src/canister1/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/src/canister1/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/src/canister2/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/src/canister2/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/src/canister3/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/src/canister3/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/composite_queries/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/counter/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/counter/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/counter/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/counter/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/motoko_examples/calc => functional_api/counter}/package.json (85%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/counter/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/counter/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/counter/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/counter/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/counter/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/composite_queries => functional_api/cross_canister_calls}/package.json (87%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/src/canister1/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/src/canister2/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/src/canister2/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/src/canister2/types.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cross_canister_calls/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cycles/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cycles/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cycles/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cycles/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cycles/package.json (88%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cycles/src/cycles/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cycles/src/cycles/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cycles/src/intermediary/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cycles/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cycles/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cycles/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/cycles/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/date/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/date/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/date/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/date/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/motoko_examples/echo => functional_api/date}/package.json (85%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/date/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/date/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/date/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/date/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/date/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ethereum_json_rpc/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ethereum_json_rpc/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ethereum_json_rpc/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ethereum_json_rpc/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ethereum_json_rpc/package.json (89%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ethereum_json_rpc/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ethereum_json_rpc/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ethereum_json_rpc/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ethereum_json_rpc/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ethereum_json_rpc/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/func_types/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/func_types/canisters/func_types/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/func_types/canisters/notifiers/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/func_types/canisters/notifiers/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/func_types/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/func_types/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/func_types/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/func_types/package.json (88%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/func_types/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/func_types/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/func_types/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/func_types/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/heartbeat/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/heartbeat/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/heartbeat/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/heartbeat/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/async_await => functional_api/heartbeat}/package.json (87%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/heartbeat/src/heartbeat_async/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/heartbeat/src/heartbeat_sync/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/heartbeat/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/heartbeat/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/heartbeat/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/heartbeat/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ic_api/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ic_api/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ic_api/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ic_api/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ic_api/package.json (85%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ic_api/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ic_api/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ic_api/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ic_api/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ic_api/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/canisters/proxy/LICENSE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/canisters/proxy/NOTICE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/canisters/proxy/icrc.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/canisters/proxy/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/package.json (89%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/params.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/icrc/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/imports/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/imports/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/imports/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/imports/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/imports/package.json (86%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/imports/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/imports/src/library.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/imports/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/imports/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/imports/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/imports/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/init/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/init/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/init/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/init/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/init/package.json (85%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/init/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/init/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/init/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/init/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/init/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/inspect_message/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/inspect_message/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/inspect_message/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/inspect_message/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/manual_reply => functional_api/inspect_message}/package.json (84%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/inspect_message/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/inspect_message/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/inspect_message/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/inspect_message/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/inspect_message/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/key_value_store/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/key_value_store/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/key_value_store/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/key_value_store/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/inspect_message => functional_api/key_value_store}/package.json (83%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/key_value_store/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/key_value_store/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/key_value_store/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/key_value_store/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/key_value_store/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ledger_canister/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ledger_canister/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ledger_canister/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ledger_canister/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ledger_canister/package.json (87%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ledger_canister/src/icp_ledger/ledger.private.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ledger_canister/src/icp_ledger/ledger.public.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ledger_canister/src/ledger_canister/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ledger_canister/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ledger_canister/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ledger_canister/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/ledger_canister/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/list_of_lists/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/list_of_lists/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/list_of_lists/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/list_of_lists/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/list_of_lists/package.json (85%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/list_of_lists/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/list_of_lists/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/list_of_lists/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/list_of_lists/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/list_of_lists/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/management_canister/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/management_canister/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/management_canister/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/management_canister/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/management_canister/package.json (86%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/management_canister/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/management_canister/src/test.wasm (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/management_canister/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/management_canister/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/management_canister/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/management_canister/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/manual_reply/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/manual_reply/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/manual_reply/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/manual_reply/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/principal => functional_api/manual_reply}/package.json (84%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/manual_reply/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/manual_reply/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/manual_reply/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/manual_reply/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/manual_reply/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/calc/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/calc/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/calc/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/calc/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/calc/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/calc/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/calc/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/calc/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/calc/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/calc/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/counter/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/counter/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/counter/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/counter/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/counter/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/counter/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/counter/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/counter/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/counter/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/counter/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/echo/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/echo/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/echo/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/echo/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/echo/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/echo/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/echo/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/echo/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/echo/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/echo/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/factorial/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/factorial/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/factorial/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/factorial/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/factorial/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/factorial/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/factorial/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/factorial/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/factorial/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/factorial/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello-world/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello-world/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello-world/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello-world/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello-world/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/call_raw => functional_api/motoko_examples/hello-world}/package.json (85%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello-world/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello-world/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello-world/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello-world/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello-world/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/NOTICE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/package.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/src/hello/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/src/hello_assets/assets/favicon.ico (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/src/hello_assets/assets/logo.png (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/src/hello_assets/assets/main.css (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/src/hello_assets/assets/sample-asset.txt (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/src/hello_assets/src/index.html (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/src/hello_assets/src/index.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/hello/webpack.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/NOTICE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/package.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/src/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/http_counter/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/NOTICE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/package.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/src/minimal_dapp/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/logo.png (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/main.css (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/sample-asset.txt (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.html (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/minimal-counter-dapp/webpack.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/persistent-storage/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/persistent-storage/NOTICE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/persistent-storage/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/persistent-storage/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/persistent-storage/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/persistent-storage/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/candid_encoding => functional_api/motoko_examples/persistent-storage}/package.json (83%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/persistent-storage/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/persistent-storage/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/persistent-storage/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/persistent-storage/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/persistent-storage/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/NOTICE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/package.json (95%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/src/declarations/phone_book/index.d.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/src/declarations/phone_book/index.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.d.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/src/phone_book/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/src/www/assets/sample-asset.txt (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/src/www/src/index.html (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/src/www/src/index.jsx (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/tsconfig.webpack.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/phone-book/webpack.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/quicksort/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/quicksort/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/quicksort/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/quicksort/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/quicksort/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/quicksort/src/comparison.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/quicksort/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/quicksort/src/quicksort.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/quicksort/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/quicksort/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/quicksort/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/quicksort/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/simple-to-do/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/simple-to-do/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/simple-to-do/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/simple-to-do/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/simple-to-do/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/simple-to-do/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/simple-to-do/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/simple-to-do/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/simple-to-do/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/simple-to-do/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/NOTICE (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/package.json (95%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/src/declarations/index.d.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/src/declarations/index.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/src/declarations/superheroes.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/src/declarations/superheroes.did.d.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/src/declarations/superheroes.did.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/src/superheroes/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/src/www/components/create.jsx (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/src/www/components/delete.jsx (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/src/www/components/read.jsx (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/src/www/components/update.jsx (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/src/www/index.html (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/src/www/index.jsx (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/tsconfig.webpack.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/superheroes/webpack.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/threshold_ecdsa/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/threshold_ecdsa/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/threshold_ecdsa/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/threshold_ecdsa/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/threshold_ecdsa/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/threshold_ecdsa/package.json (88%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/threshold_ecdsa/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/threshold_ecdsa/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/threshold_ecdsa/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/threshold_ecdsa/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/threshold_ecdsa/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/whoami/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/whoami/README.md (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/whoami/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/whoami/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/whoami/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/whoami/package.json (89%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/whoami/src/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/whoami/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/whoami/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/whoami/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/whoami/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/motoko_examples/whoami/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/notify_raw/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/notify_raw/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/notify_raw/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/notify_raw/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/notify_raw/package.json (84%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/notify_raw/src/canister1/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/notify_raw/src/canister2/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/notify_raw/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/notify_raw/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/notify_raw/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/notify_raw/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/null_example/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/null_example/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/null_example/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/null_example/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/randomness => functional_api/null_example}/package.json (84%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/null_example/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/null_example/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/null_example/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/null_example/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/null_example/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/optional_types/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/optional_types/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/optional_types/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/optional_types/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/optional_types/package.json (86%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/optional_types/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/optional_types/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/optional_types/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/optional_types/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/optional_types/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/outgoing_http_requests/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/outgoing_http_requests/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/outgoing_http_requests/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/outgoing_http_requests/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/outgoing_http_requests/package.json (87%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/outgoing_http_requests/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/outgoing_http_requests/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/outgoing_http_requests/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/outgoing_http_requests/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/outgoing_http_requests/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/pre_and_post_upgrade/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/pre_and_post_upgrade/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/pre_and_post_upgrade/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/pre_and_post_upgrade/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/stable_structures => functional_api/pre_and_post_upgrade}/package.json (83%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/pre_and_post_upgrade/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/pre_and_post_upgrade/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/pre_and_post_upgrade/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/pre_and_post_upgrade/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/pre_and_post_upgrade/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/primitive_types/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/primitive_types/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/primitive_types/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/primitive_types/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/primitive_types/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/primitive_types/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/primitive_types/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/primitive_types/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/primitive_types/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/primitive_types/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/principal/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/principal/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/principal/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/principal/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/principal/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/principal/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/principal/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/principal/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/principal/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/principal/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/query/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/query/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/query/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/query/package-lock.json (99%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/query/package.json (85%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/query/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/query/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/query/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/query/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/query/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/randomness/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/randomness/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/randomness/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/randomness/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax/tuple_types => functional_api/randomness}/package.json (84%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/randomness/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/randomness/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/randomness/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/randomness/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/randomness/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/recursion/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/recursion/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/recursion/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/recursion/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/recursion/package.json (88%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/recursion/src/recursion/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/recursion/src/recursive_canister/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/recursion/src/recursive_canister/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/recursion/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/recursion/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/recursion/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/recursion/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/package.json (88%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/src/nonexistent.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/src/rejections/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/src/some_canister/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/src/some_canister/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/rejections/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/package.json (83%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/azle_coverage/fruit.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/azle_coverage/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/import_coverage/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/import_coverage/types.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/ts_primitives/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/type_alias_decls/deep_alias/deeper_alias.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/type_alias_decls/deep_alias/deepest_alias.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/type_alias_decls/deep_alias/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/type_alias_decls/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/type_alias_decls/mixed_alias/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/type_alias_decls/mixed_alias/mixed_alias.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/type_alias_decls/mixed_alias/user_defined_types.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/type_alias_decls/types.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/types/deep/deeper.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/types/deep/deepest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/types/deep/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/src/types/deep/shallow.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/robust_imports/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_erc20/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_erc20/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_erc20/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_erc20/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/simple_erc20/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_erc20/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_erc20/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_erc20/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_erc20/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_erc20/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_user_accounts/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_user_accounts/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_user_accounts/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_user_accounts/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_user_accounts/package.json (83%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_user_accounts/src/index.did (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_user_accounts/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_user_accounts/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_user_accounts/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_user_accounts/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/simple_user_accounts/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map_instruction_threshold/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map_instruction_threshold/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map_instruction_threshold/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map_instruction_threshold/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map_instruction_threshold/package.json (94%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map_instruction_threshold/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map_instruction_threshold/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map_instruction_threshold/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map_instruction_threshold/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map_instruction_threshold/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/stable_structures/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister1/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister1/stable_map_0.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister1/stable_map_1.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister1/stable_map_2.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister1/stable_map_3.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister1/stable_map_4.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister2/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister2/stable_map_5.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister2/stable_map_6.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister2/stable_map_7.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister2/stable_map_8.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister2/stable_map_9.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister3/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister3/stable_map_10.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister3/stable_map_11.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister3/stable_map_12.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister3/stable_map_13.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister3/stable_map_14.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister3/stable_map_15.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister3/stable_map_16.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/canister3/stable_map_17.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/src/types.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/stable_structures/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/timers/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/timers/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/timers/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/timers/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/timers/package.json (88%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/timers/src/timers.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/timers/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/timers/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/timers/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/timers/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/tuple_types/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/tuple_types/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/tuple_types/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/tuple_types/package-lock.json (100%) create mode 100644 tests/end_to_end/candid_rpc/functional_api/tuple_types/package.json rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/tuple_types/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/tuple_types/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/tuple_types/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/tuple_types/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/tuple_types/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/update/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/update/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/update/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/update/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/update/package.json (85%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/update/src/index.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/update/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/update/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/update/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/update/tsconfig.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/vanilla_js/.gitignore (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/vanilla_js/dfx.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/vanilla_js/jest.config.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/vanilla_js/package-lock.json (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/vanilla_js/package.json (85%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/vanilla_js/src/index.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/vanilla_js/src/library.js (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/vanilla_js/test/pretest.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/vanilla_js/test/test.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/vanilla_js/test/tests.ts (100%) rename tests/end_to_end/candid_rpc/{functional_syntax => functional_api}/vanilla_js/tsconfig.json (100%) delete mode 100644 tests/end_to_end/candid_rpc/functional_syntax/complex_init/package.json delete mode 100644 tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/package.json delete mode 100644 tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/package.json delete mode 100644 tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/package.json delete mode 100644 tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/package.json delete mode 100644 tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/package.json delete mode 100644 tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/package.json delete mode 100644 tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/package.json delete mode 100644 tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/package.json delete mode 100644 tests/end_to_end/candid_rpc/functional_syntax/primitive_types/package.json rename tests/property/candid_rpc/{class_syntax => class_api}/blob/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/blob/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/blob/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/blob/test/generate_body.ts (79%) rename tests/property/candid_rpc/{class_syntax => class_api}/blob/test/generate_tests.ts (81%) rename tests/property/candid_rpc/{class_syntax => class_api}/blob/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/blob/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/bool/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/bool/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/bool/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => class_api}/bool/test/generate_body.ts (79%) rename tests/property/candid_rpc/{functional_syntax => class_api}/bool/test/generate_tests.ts (78%) rename tests/property/candid_rpc/{class_syntax => class_api}/bool/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/bool/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request/test/fletch.ts (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request/test/generate_body.ts (94%) rename tests/property/candid_rpc/{functional_syntax => class_api}/canister_methods/http_request/test/generate_tests.ts (84%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request_update/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request_update/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request_update/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request_update/test/fletch.ts (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request_update/test/generate_body.ts (94%) rename tests/property/candid_rpc/{functional_syntax => class_api}/canister_methods/http_request_update/test/generate_tests.ts (87%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request_update/test/test.ts (76%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/http_request_update/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/init/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/init/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/init/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/init/test/generate_callable_method_body.ts (63%) rename tests/property/candid_rpc/{functional_syntax => class_api}/canister_methods/init/test/generate_init_body.ts (56%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/init/test/generate_tests.ts (65%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/init/test/test.ts (83%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/init/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/inspect_message/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/inspect_message/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/inspect_message/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/inspect_message/test/generate_tests.ts (83%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/inspect_message/test/test.ts (81%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/inspect_message/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/post_upgrade/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/post_upgrade/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/post_upgrade/package.json (100%) create mode 100644 tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/post_upgrade/test/generate_init_method_body.ts (59%) rename tests/property/candid_rpc/{functional_syntax => class_api}/canister_methods/post_upgrade/test/generate_init_tests.ts (71%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts (60%) rename tests/property/candid_rpc/{functional_syntax => class_api}/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts (73%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/post_upgrade/test/global_var_name.ts (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/post_upgrade/test/test.ts (88%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/post_upgrade/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/pre_upgrade/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/pre_upgrade/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/pre_upgrade/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/pre_upgrade/test/test.ts (80%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/pre_upgrade/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/query/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/query/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/query/package.json (100%) create mode 100644 tests/property/candid_rpc/class_api/canister_methods/query/test/generate_body.ts rename tests/property/candid_rpc/{functional_syntax => class_api}/canister_methods/query/test/generate_tests.ts (63%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/query/test/test.ts (61%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/query/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/update/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/update/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/update/package.json (100%) create mode 100644 tests/property/candid_rpc/class_api/canister_methods/update/test/generate_body.ts rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/update/test/generate_tests.ts (63%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/update/test/test.ts (59%) rename tests/property/candid_rpc/{class_syntax => class_api}/canister_methods/update/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/float32/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/float32/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/float32/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => class_api}/float32/test/generate_body.ts (75%) rename tests/property/candid_rpc/{class_syntax => class_api}/float32/test/generate_tests.ts (79%) rename tests/property/candid_rpc/{class_syntax => class_api}/float32/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/float32/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/float64/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/float64/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/float64/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => class_api}/float64/test/generate_body.ts (76%) rename tests/property/candid_rpc/{functional_syntax => class_api}/float64/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{class_syntax => class_api}/float64/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/float64/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/func/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/func/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/func/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => class_api}/func/test/generate_body.ts (77%) rename tests/property/candid_rpc/{class_syntax => class_api}/func/test/generate_tests.ts (71%) rename tests/property/candid_rpc/{class_syntax => class_api}/func/test/test.ts (66%) rename tests/property/candid_rpc/{class_syntax => class_api}/func/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => class_api}/int/test/generate_body.ts (73%) rename tests/property/candid_rpc/{functional_syntax => class_api}/int/test/generate_tests.ts (78%) rename tests/property/candid_rpc/{class_syntax => class_api}/int/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/int/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int16/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int16/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int16/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int16/test/generate_body.ts (76%) rename tests/property/candid_rpc/{functional_syntax => class_api}/int16/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{class_syntax => class_api}/int16/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/int16/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int32/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int32/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int32/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int32/test/generate_body.ts (76%) rename tests/property/candid_rpc/{class_syntax => class_api}/int32/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{class_syntax => class_api}/int32/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/int32/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int64/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int64/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int64/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => class_api}/int64/test/generate_body.ts (76%) rename tests/property/candid_rpc/{functional_syntax => class_api}/int64/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{class_syntax => class_api}/int64/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/int64/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int8/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int8/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/int8/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => class_api}/int8/test/generate_body.ts (76%) rename tests/property/candid_rpc/{class_syntax => class_api}/int8/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{class_syntax => class_api}/int8/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/int8/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => class_api}/nat/test/generate_body.ts (73%) rename tests/property/candid_rpc/{functional_syntax => class_api}/nat/test/generate_tests.ts (78%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat16/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat16/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat16/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => class_api}/nat16/test/generate_body.ts (76%) rename tests/property/candid_rpc/{functional_syntax => class_api}/nat16/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat16/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat16/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat32/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat32/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat32/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat32/test/generate_body.ts (76%) rename tests/property/candid_rpc/{functional_syntax => class_api}/nat32/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat32/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat32/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat64/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat64/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat64/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat64/test/generate_body.ts (76%) rename tests/property/candid_rpc/{functional_syntax => class_api}/nat64/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat64/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat64/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat8/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat8/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat8/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat8/test/generate_body.ts (76%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat8/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat8/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/nat8/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/null/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/null/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/null/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/null/test/generate_body.ts (75%) rename tests/property/candid_rpc/{class_syntax => class_api}/null/test/generate_tests.ts (75%) rename tests/property/candid_rpc/{class_syntax => class_api}/null/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/null/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/opt/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/opt/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/opt/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/opt/test/generate_body.ts (70%) rename tests/property/candid_rpc/{class_syntax => class_api}/opt/test/generate_tests.ts (70%) rename tests/property/candid_rpc/{class_syntax => class_api}/opt/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/opt/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/principal/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/principal/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/principal/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/principal/test/generate_body.ts (77%) rename tests/property/candid_rpc/{functional_syntax => class_api}/principal/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{class_syntax => class_api}/principal/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/principal/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/record/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/record/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/record/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => class_api}/record/test/generate_body.ts (75%) rename tests/property/candid_rpc/{class_syntax => class_api}/record/test/generate_tests.ts (71%) rename tests/property/candid_rpc/{class_syntax => class_api}/record/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/record/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/recursive/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/recursive/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/recursive/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/recursive/test/generate_body.ts (55%) rename tests/property/candid_rpc/{functional_syntax => class_api}/recursive/test/generate_tests.ts (72%) rename tests/property/candid_rpc/{class_syntax => class_api}/recursive/test/test.ts (67%) rename tests/property/candid_rpc/{class_syntax => class_api}/recursive/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/service/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/service/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/service/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/service/test/generate_body.ts (83%) rename tests/property/candid_rpc/{class_syntax => class_api}/service/test/generate_tests.ts (86%) rename tests/property/candid_rpc/{class_syntax => class_api}/service/test/test.ts (70%) rename tests/property/candid_rpc/{class_syntax => class_api}/service/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/test/contains_key.ts (89%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/test/get.ts (90%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/test/insert.ts (86%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/test/is_empty.ts (83%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/test/items.ts (88%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/test/keys.ts (90%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/test/len.ts (84%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/test/remove.ts (87%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/test/test.ts (92%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/test/utils.ts (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/test/values.ts (90%) rename tests/property/candid_rpc/{class_syntax => class_api}/stable_b_tree_map/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/text/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/text/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/text/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/text/test/generate_body.ts (74%) rename tests/property/candid_rpc/{functional_syntax => class_api}/text/test/generate_tests.ts (78%) rename tests/property/candid_rpc/{class_syntax => class_api}/text/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/text/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/tuple/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/tuple/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/tuple/package.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/tuple/test/generate_body.ts (75%) rename tests/property/candid_rpc/{class_syntax => class_api}/tuple/test/generate_tests.ts (73%) rename tests/property/candid_rpc/{class_syntax => class_api}/tuple/test/test.ts (66%) rename tests/property/candid_rpc/{class_syntax => class_api}/tuple/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/variant/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/variant/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/variant/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => class_api}/variant/test/generate_body.ts (67%) rename tests/property/candid_rpc/{class_syntax => class_api}/variant/test/generate_tests.ts (71%) rename tests/property/candid_rpc/{class_syntax => class_api}/variant/test/test.ts (66%) rename tests/property/candid_rpc/{class_syntax => class_api}/variant/tsconfig.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/vec/dfx.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/vec/package-lock.json (100%) rename tests/property/candid_rpc/{class_syntax => class_api}/vec/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => class_api}/vec/test/generate_body.ts (72%) rename tests/property/candid_rpc/{class_syntax => class_api}/vec/test/generate_tests.ts (76%) rename tests/property/candid_rpc/{class_syntax => class_api}/vec/test/test.ts (64%) rename tests/property/candid_rpc/{class_syntax => class_api}/vec/tsconfig.json (100%) delete mode 100644 tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts delete mode 100644 tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_body.ts delete mode 100644 tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_body.ts rename tests/property/candid_rpc/{functional_syntax => functional_api}/blob/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/blob/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/blob/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/blob/test/generate_body.ts (79%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/blob/test/generate_tests.ts (81%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/blob/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/blob/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/bool/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/bool/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/bool/package.json (100%) rename tests/property/candid_rpc/{class_syntax => functional_api}/bool/test/generate_body.ts (79%) rename tests/property/candid_rpc/{class_syntax => functional_api}/bool/test/generate_tests.ts (78%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/bool/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/bool/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request/test/fletch.ts (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request/test/generate_body.ts (94%) rename tests/property/candid_rpc/{class_syntax => functional_api}/canister_methods/http_request/test/generate_tests.ts (84%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request_update/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request_update/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request_update/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request_update/test/fletch.ts (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request_update/test/generate_body.ts (94%) rename tests/property/candid_rpc/{class_syntax => functional_api}/canister_methods/http_request_update/test/generate_tests.ts (87%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request_update/test/test.ts (76%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/http_request_update/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/init/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/init/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/init/package.json (100%) create mode 100644 tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_callable_method_body.ts rename tests/property/candid_rpc/{class_syntax => functional_api}/canister_methods/init/test/generate_init_body.ts (56%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/init/test/generate_tests.ts (65%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/init/test/test.ts (82%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/init/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/inspect_message/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/inspect_message/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/inspect_message/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/inspect_message/test/generate_tests.ts (83%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/inspect_message/test/test.ts (81%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/inspect_message/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/post_upgrade/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/post_upgrade/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/post_upgrade/package.json (100%) create mode 100644 tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/post_upgrade/test/generate_init_method_body.ts (59%) rename tests/property/candid_rpc/{class_syntax => functional_api}/canister_methods/post_upgrade/test/generate_init_tests.ts (71%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts (60%) rename tests/property/candid_rpc/{class_syntax => functional_api}/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts (73%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/post_upgrade/test/global_var_name.ts (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/post_upgrade/test/test.ts (88%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/post_upgrade/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/pre_upgrade/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/pre_upgrade/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/pre_upgrade/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/pre_upgrade/test/test.ts (81%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/pre_upgrade/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/query/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/query/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/query/package.json (100%) create mode 100644 tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_body.ts rename tests/property/candid_rpc/{class_syntax => functional_api}/canister_methods/query/test/generate_tests.ts (63%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/query/test/test.ts (61%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/query/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/update/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/update/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/update/package.json (100%) create mode 100644 tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_body.ts rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/update/test/generate_tests.ts (63%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/update/test/test.ts (59%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/canister_methods/update/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/float32/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/float32/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/float32/package.json (100%) rename tests/property/candid_rpc/{class_syntax => functional_api}/float32/test/generate_body.ts (75%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/float32/test/generate_tests.ts (79%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/float32/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/float32/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/float64/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/float64/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/float64/package.json (100%) rename tests/property/candid_rpc/{class_syntax => functional_api}/float64/test/generate_body.ts (76%) rename tests/property/candid_rpc/{class_syntax => functional_api}/float64/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/float64/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/float64/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/func/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/func/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/func/package.json (100%) rename tests/property/candid_rpc/{class_syntax => functional_api}/func/test/generate_body.ts (77%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/func/test/generate_tests.ts (71%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/func/test/test.ts (66%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/func/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int/package.json (100%) rename tests/property/candid_rpc/{class_syntax => functional_api}/int/test/generate_body.ts (73%) rename tests/property/candid_rpc/{class_syntax => functional_api}/int/test/generate_tests.ts (78%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int16/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int16/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int16/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int16/test/generate_body.ts (76%) rename tests/property/candid_rpc/{class_syntax => functional_api}/int16/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int16/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int16/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int32/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int32/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int32/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int32/test/generate_body.ts (76%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int32/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int32/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int32/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int64/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int64/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int64/package.json (100%) rename tests/property/candid_rpc/{class_syntax => functional_api}/int64/test/generate_body.ts (76%) rename tests/property/candid_rpc/{class_syntax => functional_api}/int64/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int64/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int64/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int8/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int8/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int8/package.json (100%) rename tests/property/candid_rpc/{class_syntax => functional_api}/int8/test/generate_body.ts (76%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int8/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int8/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/int8/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat/package.json (100%) rename tests/property/candid_rpc/{class_syntax => functional_api}/nat/test/generate_body.ts (73%) rename tests/property/candid_rpc/{class_syntax => functional_api}/nat/test/generate_tests.ts (78%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat16/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat16/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat16/package.json (100%) rename tests/property/candid_rpc/{class_syntax => functional_api}/nat16/test/generate_body.ts (76%) rename tests/property/candid_rpc/{class_syntax => functional_api}/nat16/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat16/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat16/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat32/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat32/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat32/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat32/test/generate_body.ts (76%) rename tests/property/candid_rpc/{class_syntax => functional_api}/nat32/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat32/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat32/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat64/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat64/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat64/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat64/test/generate_body.ts (76%) rename tests/property/candid_rpc/{class_syntax => functional_api}/nat64/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat64/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat64/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat8/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat8/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat8/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat8/test/generate_body.ts (76%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat8/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat8/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/nat8/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/null/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/null/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/null/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/null/test/generate_body.ts (75%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/null/test/generate_tests.ts (75%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/null/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/null/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/opt/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/opt/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/opt/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/opt/test/generate_body.ts (70%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/opt/test/generate_tests.ts (70%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/opt/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/opt/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/principal/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/principal/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/principal/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/principal/test/generate_body.ts (77%) rename tests/property/candid_rpc/{class_syntax => functional_api}/principal/test/generate_tests.ts (80%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/principal/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/principal/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/record/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/record/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/record/package.json (100%) rename tests/property/candid_rpc/{class_syntax => functional_api}/record/test/generate_body.ts (75%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/record/test/generate_tests.ts (71%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/record/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/record/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/recursive/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/recursive/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/recursive/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/recursive/test/generate_body.ts (55%) rename tests/property/candid_rpc/{class_syntax => functional_api}/recursive/test/generate_tests.ts (72%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/recursive/test/test.ts (68%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/recursive/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/service/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/service/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/service/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/service/test/generate_body.ts (84%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/service/test/generate_tests.ts (86%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/service/test/test.ts (70%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/service/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/test/contains_key.ts (87%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/test/get.ts (89%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/test/insert.ts (85%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/test/is_empty.ts (83%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/test/items.ts (88%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/test/keys.ts (89%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/test/len.ts (84%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/test/remove.ts (86%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/test/test.ts (92%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/test/utils.ts (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/test/values.ts (89%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/stable_b_tree_map/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/text/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/text/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/text/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/text/test/generate_body.ts (74%) rename tests/property/candid_rpc/{class_syntax => functional_api}/text/test/generate_tests.ts (78%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/text/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/text/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/tuple/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/tuple/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/tuple/package.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/tuple/test/generate_body.ts (75%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/tuple/test/generate_tests.ts (73%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/tuple/test/test.ts (66%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/tuple/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/variant/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/variant/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/variant/package.json (100%) rename tests/property/candid_rpc/{class_syntax => functional_api}/variant/test/generate_body.ts (67%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/variant/test/generate_tests.ts (71%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/variant/test/test.ts (66%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/variant/tsconfig.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/vec/dfx.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/vec/package-lock.json (100%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/vec/package.json (100%) rename tests/property/candid_rpc/{class_syntax => functional_api}/vec/test/generate_body.ts (72%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/vec/test/generate_tests.ts (76%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/vec/test/test.ts (64%) rename tests/property/candid_rpc/{functional_syntax => functional_api}/vec/tsconfig.json (100%) delete mode 100644 tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_callable_method_body.ts delete mode 100644 tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts delete mode 100644 tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_body.ts delete mode 100644 tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_body.ts diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ba3652ef1..4995cd5440 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,10 +64,10 @@ jobs: run: | EXAMPLE_DIRECTORIES=$(cat << END [ - "tests/property/candid_rpc/class_syntax/service", - "tests/property/candid_rpc/class_syntax/stable_b_tree_map", - "tests/property/candid_rpc/functional_syntax/service", - "tests/property/candid_rpc/functional_syntax/stable_b_tree_map", + "tests/property/candid_rpc/class_api/service", + "tests/property/candid_rpc/class_api/stable_b_tree_map", + "tests/property/candid_rpc/functional_api/service", + "tests/property/candid_rpc/functional_api/stable_b_tree_map", "tests/end_to_end/http_server/ethers_base", "tests/end_to_end/http_server/http_outcall_fetch", "tests/end_to_end/http_server/ic_evm_rpc", @@ -76,200 +76,200 @@ jobs: "examples/ckbtc", "examples/hello_world", "examples/hello_world_candid_rpc", - "tests/property/candid_rpc/class_syntax/blob", - "tests/property/candid_rpc/class_syntax/bool", - "tests/property/candid_rpc/class_syntax/canister_methods/http_request", - "tests/property/candid_rpc/class_syntax/canister_methods/http_request_update", - "tests/property/candid_rpc/class_syntax/canister_methods/init", - "tests/property/candid_rpc/class_syntax/canister_methods/inspect_message", - "tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade", - "tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade", - "tests/property/candid_rpc/class_syntax/canister_methods/query", - "tests/property/candid_rpc/class_syntax/canister_methods/update", - "tests/property/candid_rpc/class_syntax/float32", - "tests/property/candid_rpc/class_syntax/float64", - "tests/property/candid_rpc/class_syntax/func", - "tests/property/candid_rpc/class_syntax/int", - "tests/property/candid_rpc/class_syntax/int16", - "tests/property/candid_rpc/class_syntax/int32", - "tests/property/candid_rpc/class_syntax/int64", - "tests/property/candid_rpc/class_syntax/int8", - "tests/property/candid_rpc/class_syntax/nat", - "tests/property/candid_rpc/class_syntax/nat16", - "tests/property/candid_rpc/class_syntax/nat32", - "tests/property/candid_rpc/class_syntax/nat64", - "tests/property/candid_rpc/class_syntax/nat8", - "tests/property/candid_rpc/class_syntax/null", - "tests/property/candid_rpc/class_syntax/opt", - "tests/property/candid_rpc/class_syntax/principal", - "tests/property/candid_rpc/class_syntax/record", - "tests/property/candid_rpc/class_syntax/recursive", - "tests/property/candid_rpc/class_syntax/text", - "tests/property/candid_rpc/class_syntax/tuple", - "tests/property/candid_rpc/class_syntax/variant", - "tests/property/candid_rpc/class_syntax/vec", - "tests/property/candid_rpc/functional_syntax/blob", - "tests/property/candid_rpc/functional_syntax/bool", - "tests/property/candid_rpc/functional_syntax/canister_methods/http_request", - "tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update", - "tests/property/candid_rpc/functional_syntax/canister_methods/init", - "tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message", - "tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade", - "tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade", - "tests/property/candid_rpc/functional_syntax/canister_methods/query", - "tests/property/candid_rpc/functional_syntax/canister_methods/update", - "tests/property/candid_rpc/functional_syntax/float32", - "tests/property/candid_rpc/functional_syntax/float64", - "tests/property/candid_rpc/functional_syntax/func", - "tests/property/candid_rpc/functional_syntax/int", - "tests/property/candid_rpc/functional_syntax/int16", - "tests/property/candid_rpc/functional_syntax/int32", - "tests/property/candid_rpc/functional_syntax/int64", - "tests/property/candid_rpc/functional_syntax/int8", - "tests/property/candid_rpc/functional_syntax/nat", - "tests/property/candid_rpc/functional_syntax/nat16", - "tests/property/candid_rpc/functional_syntax/nat32", - "tests/property/candid_rpc/functional_syntax/nat64", - "tests/property/candid_rpc/functional_syntax/nat8", - "tests/property/candid_rpc/functional_syntax/null", - "tests/property/candid_rpc/functional_syntax/opt", - "tests/property/candid_rpc/functional_syntax/principal", - "tests/property/candid_rpc/functional_syntax/record", - "tests/property/candid_rpc/functional_syntax/recursive", - "tests/property/candid_rpc/functional_syntax/text", - "tests/property/candid_rpc/functional_syntax/tuple", - "tests/property/candid_rpc/functional_syntax/variant", - "tests/property/candid_rpc/functional_syntax/vec", - "tests/end_to_end/candid_rpc/class_syntax/async_await", - "tests/end_to_end/candid_rpc/class_syntax/audio_recorder", - "tests/end_to_end/candid_rpc/class_syntax/bitcoin", - "tests/end_to_end/candid_rpc/class_syntax/blob_array", - "tests/end_to_end/candid_rpc/class_syntax/bytes", - "tests/end_to_end/candid_rpc/class_syntax/call_raw", - "tests/end_to_end/candid_rpc/class_syntax/candid_encoding", - "tests/end_to_end/candid_rpc/class_syntax/candid_keywords", - "tests/end_to_end/candid_rpc/class_syntax/canister", - "tests/end_to_end/candid_rpc/class_syntax/complex_init", - "tests/end_to_end/candid_rpc/class_syntax/complex_types", - "tests/end_to_end/candid_rpc/class_syntax/composite_queries", - "tests/end_to_end/candid_rpc/class_syntax/counter", - "tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls", - "tests/end_to_end/candid_rpc/class_syntax/cycles", - "tests/end_to_end/candid_rpc/class_syntax/date", - "tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc", - "tests/end_to_end/candid_rpc/class_syntax/func_types", - "tests/end_to_end/candid_rpc/class_syntax/heartbeat", - "tests/end_to_end/candid_rpc/class_syntax/ic_api", - "tests/end_to_end/candid_rpc/class_syntax/icrc", - "tests/end_to_end/candid_rpc/class_syntax/imports", - "tests/end_to_end/candid_rpc/class_syntax/init", - "tests/end_to_end/candid_rpc/class_syntax/inspect_message", - "tests/end_to_end/candid_rpc/class_syntax/key_value_store", - "tests/end_to_end/candid_rpc/class_syntax/ledger_canister", - "tests/end_to_end/candid_rpc/class_syntax/list_of_lists", - "tests/end_to_end/candid_rpc/class_syntax/management_canister", - "tests/end_to_end/candid_rpc/class_syntax/manual_reply", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa", - "tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami", - "tests/end_to_end/candid_rpc/class_syntax/new", - "tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc", - "tests/end_to_end/candid_rpc/class_syntax/notify_raw", - "tests/end_to_end/candid_rpc/class_syntax/null_example", - "tests/end_to_end/candid_rpc/class_syntax/optional_types", - "tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests", - "tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade", - "tests/end_to_end/candid_rpc/class_syntax/primitive_types", - "tests/end_to_end/candid_rpc/class_syntax/principal", - "tests/end_to_end/candid_rpc/class_syntax/query", - "tests/end_to_end/candid_rpc/class_syntax/randomness", - "tests/end_to_end/candid_rpc/class_syntax/recursion", - "tests/end_to_end/candid_rpc/class_syntax/rejections", - "tests/end_to_end/candid_rpc/class_syntax/simple_erc20", - "tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts", - "tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold", - "tests/end_to_end/candid_rpc/class_syntax/stable_structures", - "tests/end_to_end/candid_rpc/class_syntax/timers", - "tests/end_to_end/candid_rpc/class_syntax/tuple_types", - "tests/end_to_end/candid_rpc/class_syntax/update", - "tests/end_to_end/candid_rpc/class_syntax/vanilla_js", - "tests/end_to_end/candid_rpc/functional_syntax/async_await", - "tests/end_to_end/candid_rpc/functional_syntax/audio_recorder", - "tests/end_to_end/candid_rpc/functional_syntax/bitcoin", - "tests/end_to_end/candid_rpc/functional_syntax/blob_array", - "tests/end_to_end/candid_rpc/functional_syntax/bytes", - "tests/end_to_end/candid_rpc/functional_syntax/call_raw", - "tests/end_to_end/candid_rpc/functional_syntax/candid_encoding", - "tests/end_to_end/candid_rpc/functional_syntax/candid_keywords", - "tests/end_to_end/candid_rpc/functional_syntax/canister", - "tests/end_to_end/candid_rpc/functional_syntax/ckbtc", - "tests/end_to_end/candid_rpc/functional_syntax/complex_init", - "tests/end_to_end/candid_rpc/functional_syntax/complex_types", - "tests/end_to_end/candid_rpc/functional_syntax/composite_queries", - "tests/end_to_end/candid_rpc/functional_syntax/counter", - "tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls", - "tests/end_to_end/candid_rpc/functional_syntax/cycles", - "tests/end_to_end/candid_rpc/functional_syntax/date", - "tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc", - "tests/end_to_end/candid_rpc/functional_syntax/func_types", - "tests/end_to_end/candid_rpc/functional_syntax/heartbeat", - "tests/end_to_end/candid_rpc/functional_syntax/ic_api", - "tests/end_to_end/candid_rpc/functional_syntax/icrc", - "tests/end_to_end/candid_rpc/functional_syntax/imports", - "tests/end_to_end/candid_rpc/functional_syntax/init", - "tests/end_to_end/candid_rpc/functional_syntax/inspect_message", - "tests/end_to_end/candid_rpc/functional_syntax/key_value_store", - "tests/end_to_end/candid_rpc/functional_syntax/ledger_canister", - "tests/end_to_end/candid_rpc/functional_syntax/list_of_lists", - "tests/end_to_end/candid_rpc/functional_syntax/management_canister", - "tests/end_to_end/candid_rpc/functional_syntax/manual_reply", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa", - "tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami", - "tests/end_to_end/candid_rpc/functional_syntax/notify_raw", - "tests/end_to_end/candid_rpc/functional_syntax/null_example", - "tests/end_to_end/candid_rpc/functional_syntax/optional_types", - "tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests", - "tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade", - "tests/end_to_end/candid_rpc/functional_syntax/primitive_types", - "tests/end_to_end/candid_rpc/functional_syntax/principal", - "tests/end_to_end/candid_rpc/functional_syntax/query", - "tests/end_to_end/candid_rpc/functional_syntax/randomness", - "tests/end_to_end/candid_rpc/functional_syntax/recursion", - "tests/end_to_end/candid_rpc/functional_syntax/rejections", - "tests/end_to_end/candid_rpc/functional_syntax/robust_imports", - "tests/end_to_end/candid_rpc/functional_syntax/simple_erc20", - "tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts", - "tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold", - "tests/end_to_end/candid_rpc/functional_syntax/stable_structures", - "tests/end_to_end/candid_rpc/functional_syntax/timers", - "tests/end_to_end/candid_rpc/functional_syntax/tuple_types", - "tests/end_to_end/candid_rpc/functional_syntax/update", - "tests/end_to_end/candid_rpc/functional_syntax/vanilla_js", + "tests/property/candid_rpc/class_api/blob", + "tests/property/candid_rpc/class_api/bool", + "tests/property/candid_rpc/class_api/canister_methods/http_request", + "tests/property/candid_rpc/class_api/canister_methods/http_request_update", + "tests/property/candid_rpc/class_api/canister_methods/init", + "tests/property/candid_rpc/class_api/canister_methods/inspect_message", + "tests/property/candid_rpc/class_api/canister_methods/post_upgrade", + "tests/property/candid_rpc/class_api/canister_methods/pre_upgrade", + "tests/property/candid_rpc/class_api/canister_methods/query", + "tests/property/candid_rpc/class_api/canister_methods/update", + "tests/property/candid_rpc/class_api/float32", + "tests/property/candid_rpc/class_api/float64", + "tests/property/candid_rpc/class_api/func", + "tests/property/candid_rpc/class_api/int", + "tests/property/candid_rpc/class_api/int16", + "tests/property/candid_rpc/class_api/int32", + "tests/property/candid_rpc/class_api/int64", + "tests/property/candid_rpc/class_api/int8", + "tests/property/candid_rpc/class_api/nat", + "tests/property/candid_rpc/class_api/nat16", + "tests/property/candid_rpc/class_api/nat32", + "tests/property/candid_rpc/class_api/nat64", + "tests/property/candid_rpc/class_api/nat8", + "tests/property/candid_rpc/class_api/null", + "tests/property/candid_rpc/class_api/opt", + "tests/property/candid_rpc/class_api/principal", + "tests/property/candid_rpc/class_api/record", + "tests/property/candid_rpc/class_api/recursive", + "tests/property/candid_rpc/class_api/text", + "tests/property/candid_rpc/class_api/tuple", + "tests/property/candid_rpc/class_api/variant", + "tests/property/candid_rpc/class_api/vec", + "tests/property/candid_rpc/functional_api/blob", + "tests/property/candid_rpc/functional_api/bool", + "tests/property/candid_rpc/functional_api/canister_methods/http_request", + "tests/property/candid_rpc/functional_api/canister_methods/http_request_update", + "tests/property/candid_rpc/functional_api/canister_methods/init", + "tests/property/candid_rpc/functional_api/canister_methods/inspect_message", + "tests/property/candid_rpc/functional_api/canister_methods/post_upgrade", + "tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade", + "tests/property/candid_rpc/functional_api/canister_methods/query", + "tests/property/candid_rpc/functional_api/canister_methods/update", + "tests/property/candid_rpc/functional_api/float32", + "tests/property/candid_rpc/functional_api/float64", + "tests/property/candid_rpc/functional_api/func", + "tests/property/candid_rpc/functional_api/int", + "tests/property/candid_rpc/functional_api/int16", + "tests/property/candid_rpc/functional_api/int32", + "tests/property/candid_rpc/functional_api/int64", + "tests/property/candid_rpc/functional_api/int8", + "tests/property/candid_rpc/functional_api/nat", + "tests/property/candid_rpc/functional_api/nat16", + "tests/property/candid_rpc/functional_api/nat32", + "tests/property/candid_rpc/functional_api/nat64", + "tests/property/candid_rpc/functional_api/nat8", + "tests/property/candid_rpc/functional_api/null", + "tests/property/candid_rpc/functional_api/opt", + "tests/property/candid_rpc/functional_api/principal", + "tests/property/candid_rpc/functional_api/record", + "tests/property/candid_rpc/functional_api/recursive", + "tests/property/candid_rpc/functional_api/text", + "tests/property/candid_rpc/functional_api/tuple", + "tests/property/candid_rpc/functional_api/variant", + "tests/property/candid_rpc/functional_api/vec", + "tests/end_to_end/candid_rpc/class_api/async_await", + "tests/end_to_end/candid_rpc/class_api/audio_recorder", + "tests/end_to_end/candid_rpc/class_api/bitcoin", + "tests/end_to_end/candid_rpc/class_api/blob_array", + "tests/end_to_end/candid_rpc/class_api/bytes", + "tests/end_to_end/candid_rpc/class_api/call_raw", + "tests/end_to_end/candid_rpc/class_api/candid_encoding", + "tests/end_to_end/candid_rpc/class_api/candid_keywords", + "tests/end_to_end/candid_rpc/class_api/canister", + "tests/end_to_end/candid_rpc/class_api/complex_init", + "tests/end_to_end/candid_rpc/class_api/complex_types", + "tests/end_to_end/candid_rpc/class_api/composite_queries", + "tests/end_to_end/candid_rpc/class_api/counter", + "tests/end_to_end/candid_rpc/class_api/cross_canister_calls", + "tests/end_to_end/candid_rpc/class_api/cycles", + "tests/end_to_end/candid_rpc/class_api/date", + "tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc", + "tests/end_to_end/candid_rpc/class_api/func_types", + "tests/end_to_end/candid_rpc/class_api/heartbeat", + "tests/end_to_end/candid_rpc/class_api/ic_api", + "tests/end_to_end/candid_rpc/class_api/icrc", + "tests/end_to_end/candid_rpc/class_api/imports", + "tests/end_to_end/candid_rpc/class_api/init", + "tests/end_to_end/candid_rpc/class_api/inspect_message", + "tests/end_to_end/candid_rpc/class_api/key_value_store", + "tests/end_to_end/candid_rpc/class_api/ledger_canister", + "tests/end_to_end/candid_rpc/class_api/list_of_lists", + "tests/end_to_end/candid_rpc/class_api/management_canister", + "tests/end_to_end/candid_rpc/class_api/manual_reply", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/calc", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/counter", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/echo", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/hello", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa", + "tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami", + "tests/end_to_end/candid_rpc/class_api/new", + "tests/end_to_end/candid_rpc/class_api/new_candid_rpc", + "tests/end_to_end/candid_rpc/class_api/notify_raw", + "tests/end_to_end/candid_rpc/class_api/null_example", + "tests/end_to_end/candid_rpc/class_api/optional_types", + "tests/end_to_end/candid_rpc/class_api/outgoing_http_requests", + "tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade", + "tests/end_to_end/candid_rpc/class_api/primitive_types", + "tests/end_to_end/candid_rpc/class_api/principal", + "tests/end_to_end/candid_rpc/class_api/query", + "tests/end_to_end/candid_rpc/class_api/randomness", + "tests/end_to_end/candid_rpc/class_api/recursion", + "tests/end_to_end/candid_rpc/class_api/rejections", + "tests/end_to_end/candid_rpc/class_api/simple_erc20", + "tests/end_to_end/candid_rpc/class_api/simple_user_accounts", + "tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold", + "tests/end_to_end/candid_rpc/class_api/stable_structures", + "tests/end_to_end/candid_rpc/class_api/timers", + "tests/end_to_end/candid_rpc/class_api/tuple_types", + "tests/end_to_end/candid_rpc/class_api/update", + "tests/end_to_end/candid_rpc/class_api/vanilla_js", + "tests/end_to_end/candid_rpc/functional_api/async_await", + "tests/end_to_end/candid_rpc/functional_api/audio_recorder", + "tests/end_to_end/candid_rpc/functional_api/bitcoin", + "tests/end_to_end/candid_rpc/functional_api/blob_array", + "tests/end_to_end/candid_rpc/functional_api/bytes", + "tests/end_to_end/candid_rpc/functional_api/call_raw", + "tests/end_to_end/candid_rpc/functional_api/candid_encoding", + "tests/end_to_end/candid_rpc/functional_api/candid_keywords", + "tests/end_to_end/candid_rpc/functional_api/canister", + "tests/end_to_end/candid_rpc/functional_api/ckbtc", + "tests/end_to_end/candid_rpc/functional_api/complex_init", + "tests/end_to_end/candid_rpc/functional_api/complex_types", + "tests/end_to_end/candid_rpc/functional_api/composite_queries", + "tests/end_to_end/candid_rpc/functional_api/counter", + "tests/end_to_end/candid_rpc/functional_api/cross_canister_calls", + "tests/end_to_end/candid_rpc/functional_api/cycles", + "tests/end_to_end/candid_rpc/functional_api/date", + "tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc", + "tests/end_to_end/candid_rpc/functional_api/func_types", + "tests/end_to_end/candid_rpc/functional_api/heartbeat", + "tests/end_to_end/candid_rpc/functional_api/ic_api", + "tests/end_to_end/candid_rpc/functional_api/icrc", + "tests/end_to_end/candid_rpc/functional_api/imports", + "tests/end_to_end/candid_rpc/functional_api/init", + "tests/end_to_end/candid_rpc/functional_api/inspect_message", + "tests/end_to_end/candid_rpc/functional_api/key_value_store", + "tests/end_to_end/candid_rpc/functional_api/ledger_canister", + "tests/end_to_end/candid_rpc/functional_api/list_of_lists", + "tests/end_to_end/candid_rpc/functional_api/management_canister", + "tests/end_to_end/candid_rpc/functional_api/manual_reply", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa", + "tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami", + "tests/end_to_end/candid_rpc/functional_api/notify_raw", + "tests/end_to_end/candid_rpc/functional_api/null_example", + "tests/end_to_end/candid_rpc/functional_api/optional_types", + "tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests", + "tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade", + "tests/end_to_end/candid_rpc/functional_api/primitive_types", + "tests/end_to_end/candid_rpc/functional_api/principal", + "tests/end_to_end/candid_rpc/functional_api/query", + "tests/end_to_end/candid_rpc/functional_api/randomness", + "tests/end_to_end/candid_rpc/functional_api/recursion", + "tests/end_to_end/candid_rpc/functional_api/rejections", + "tests/end_to_end/candid_rpc/functional_api/robust_imports", + "tests/end_to_end/candid_rpc/functional_api/simple_erc20", + "tests/end_to_end/candid_rpc/functional_api/simple_user_accounts", + "tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold", + "tests/end_to_end/candid_rpc/functional_api/stable_structures", + "tests/end_to_end/candid_rpc/functional_api/timers", + "tests/end_to_end/candid_rpc/functional_api/tuple_types", + "tests/end_to_end/candid_rpc/functional_api/update", + "tests/end_to_end/candid_rpc/functional_api/vanilla_js", "tests/end_to_end/http_server/apollo_server", "tests/end_to_end/http_server/audio_and_video", "tests/end_to_end/http_server/autoreload", diff --git a/examples/ckbtc/package.json b/examples/ckbtc/package.json index 760ce696b2..fc828ade9e 100644 --- a/examples/ckbtc/package.json +++ b/examples/ckbtc/package.json @@ -28,7 +28,7 @@ "devDependencies": { "@dfinity/agent": "^0.19.2", "@dfinity/identity": "^0.19.2", - "ckbtc_end_to_end_test_functional_syntax": "file:../../tests/end_to_end/candid_rpc/functional_syntax/ckbtc", + "ckbtc_end_to_end_test_functional_api": "file:../../tests/end_to_end/candid_rpc/functional_api/ckbtc", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/examples/ckbtc/test/pretest.ts b/examples/ckbtc/test/pretest.ts index 6e66e93b8b..501a564412 100644 --- a/examples/ckbtc/test/pretest.ts +++ b/examples/ckbtc/test/pretest.ts @@ -4,7 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join('tests', 'end_to_end', 'candid_rpc', 'functional_syntax', 'ckbtc') + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'ckbtc') ); uninstall( diff --git a/examples/ckbtc/test/test.ts b/examples/ckbtc/test/test.ts index a17c3ada9d..4612b9e41a 100644 --- a/examples/ckbtc/test/test.ts +++ b/examples/ckbtc/test/test.ts @@ -4,8 +4,8 @@ import { afterAll, beforeAll, describe } from '@jest/globals'; import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; import { ChildProcessWithoutNullStreams, spawn } from 'child_process'; -import { Config } from 'ckbtc_end_to_end_test_functional_syntax/test/test'; -import { getTests } from 'ckbtc_end_to_end_test_functional_syntax/test/tests'; +import { Config } from 'ckbtc_end_to_end_test_functional_api/test/test'; +import { getTests } from 'ckbtc_end_to_end_test_functional_api/test/tests'; import { existsSync, rmSync } from 'fs-extra'; // @ts-ignore this path may not exist when these tests are imported into other test projects diff --git a/scripts/class_migration/add_example_dependency.js b/scripts/class_migration/add_example_dependency.js index 846a558842..5128a0cce2 100644 --- a/scripts/class_migration/add_example_dependency.js +++ b/scripts/class_migration/add_example_dependency.js @@ -5,8 +5,8 @@ import * as path from 'path'; const currentDirectory = path.basename(process.cwd()); // Define the new dev dependency -const newDependencyName = `${currentDirectory}_end_to_end_test_functional_syntax`; -const newDependencyPath = `file:../../functional_syntax/${currentDirectory}`; +const newDependencyName = `${currentDirectory}_end_to_end_test_functional_api`; +const newDependencyPath = `file:../../functional_api/${currentDirectory}`; // Path to the package.json file const packageJsonPath = path.join(process.cwd(), 'package.json'); diff --git a/scripts/class_migration/copy_generated_candid_from_example.js b/scripts/class_migration/copy_generated_candid_from_example.js index 319a2fc8e5..ec2006f075 100644 --- a/scripts/class_migration/copy_generated_candid_from_example.js +++ b/scripts/class_migration/copy_generated_candid_from_example.js @@ -35,7 +35,7 @@ fs.readFile(packageJsonPath, 'utf8', (err, packageData) => { // Get the current directory name const currentDirectory = path.basename(process.cwd()); - const devDependencyKey = `${currentDirectory}_end_to_end_test_functional_syntax`; + const devDependencyKey = `${currentDirectory}_end_to_end_test_functional_api`; const devDependencyPath = packageJson.devDependencies[devDependencyKey]; if (!devDependencyPath || !devDependencyPath.startsWith('file:')) { diff --git a/scripts/class_migration/modify_pretest.js b/scripts/class_migration/modify_pretest.js index f5443611a8..03d07055ae 100644 --- a/scripts/class_migration/modify_pretest.js +++ b/scripts/class_migration/modify_pretest.js @@ -13,7 +13,7 @@ const importLines = [ ]; // Line to add after function pretest(): void { -const additionalLine = ` linkAndInstallPatch(join('tests', 'end_to_end', 'candid_rpc', 'functional_syntax', '${currentDirectory}'));\n`; +const additionalLine = ` linkAndInstallPatch(join('tests', 'end_to_end', 'candid_rpc', 'functional_api', '${currentDirectory}'));\n`; // Read the pretest.ts file fs.readFile(pretestFilePath, 'utf8', (err, data) => { diff --git a/scripts/class_migration/name_package.js b/scripts/class_migration/name_package.js index 629f285ecd..34f31b7d48 100644 --- a/scripts/class_migration/name_package.js +++ b/scripts/class_migration/name_package.js @@ -5,7 +5,7 @@ import * as path from 'path'; const currentDirectory = path.basename(process.cwd()); // Define the new name for the package -const newName = `${currentDirectory}_end_to_end_test_functional_syntax`; +const newName = `${currentDirectory}_end_to_end_test_functional_api`; // Path to the package.json file const packageJsonPath = path.join(process.cwd(), 'package.json'); diff --git a/scripts/class_migration/update_test.js b/scripts/class_migration/update_test.js index 662b34c3da..f792e29439 100644 --- a/scripts/class_migration/update_test.js +++ b/scripts/class_migration/update_test.js @@ -11,7 +11,7 @@ const testFilePath = path.join(process.cwd(), 'test', 'test.ts'); const existingImportStatement = "import { getTests } from './tests';"; // New import statement to add -const newImportStatement = `import { getTests } from '${currentDirectory}_end_to_end_test_functional_syntax/test/tests';`; +const newImportStatement = `import { getTests } from '${currentDirectory}_end_to_end_test_functional_api/test/tests';`; // Read the test.ts file fs.readFile(testFilePath, 'utf8', (err, data) => { diff --git a/property_tests/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts b/test/property/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts rename to test/property/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts diff --git a/property_tests/arbitraries/candid/candid_definition_arb/index.ts b/test/property/arbitraries/candid/candid_definition_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_definition_arb/index.ts rename to test/property/arbitraries/candid/candid_definition_arb/index.ts diff --git a/property_tests/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts b/test/property/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts rename to test/property/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts diff --git a/property_tests/arbitraries/candid/candid_definition_arb/simple_candid_definition_arb.ts b/test/property/arbitraries/candid/candid_definition_arb/simple_candid_definition_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_definition_arb/simple_candid_definition_arb.ts rename to test/property/arbitraries/candid/candid_definition_arb/simple_candid_definition_arb.ts diff --git a/property_tests/arbitraries/candid/candid_definition_arb/types.ts b/test/property/arbitraries/candid/candid_definition_arb/types.ts similarity index 97% rename from property_tests/arbitraries/candid/candid_definition_arb/types.ts rename to test/property/arbitraries/candid/candid_definition_arb/types.ts index dd45587f64..e16909cac6 100644 --- a/property_tests/arbitraries/candid/candid_definition_arb/types.ts +++ b/test/property/arbitraries/candid/candid_definition_arb/types.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType as RuntimeCandidType } from '../../../../src/lib/experimental/candid/candid_type'; +import { CandidType as RuntimeCandidType } from '../../../../../src/lib/experimental/candid/candid_type'; import { Context } from '../../types'; import { CandidType } from '../candid_type'; import { RecursiveShapes } from '../recursive'; diff --git a/property_tests/arbitraries/candid/candid_return_type_arb.ts b/test/property/arbitraries/candid/candid_return_type_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_return_type_arb.ts rename to test/property/arbitraries/candid/candid_return_type_arb.ts diff --git a/property_tests/arbitraries/candid/candid_type.ts b/test/property/arbitraries/candid/candid_type.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_type.ts rename to test/property/arbitraries/candid/candid_type.ts diff --git a/property_tests/arbitraries/candid/candid_value_and_meta_arb.ts b/test/property/arbitraries/candid/candid_value_and_meta_arb.ts similarity index 97% rename from property_tests/arbitraries/candid/candid_value_and_meta_arb.ts rename to test/property/arbitraries/candid/candid_value_and_meta_arb.ts index fde309b3ea..f21396b450 100644 --- a/property_tests/arbitraries/candid/candid_value_and_meta_arb.ts +++ b/test/property/arbitraries/candid/candid_value_and_meta_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType as RuntimeCandidType } from '../../../src/lib/experimental'; +import { CandidType as RuntimeCandidType } from '../../../../src/lib/experimental'; import { Context } from '../types'; import { CandidValueConstraints } from './candid_values_arb'; import { BlobArb } from './constructed/blob_arb'; diff --git a/property_tests/arbitraries/candid/candid_value_and_meta_arb_generator.ts b/test/property/arbitraries/candid/candid_value_and_meta_arb_generator.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_value_and_meta_arb_generator.ts rename to test/property/arbitraries/candid/candid_value_and_meta_arb_generator.ts diff --git a/property_tests/arbitraries/candid/candid_values_arb.ts b/test/property/arbitraries/candid/candid_values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_values_arb.ts rename to test/property/arbitraries/candid/candid_values_arb.ts diff --git a/property_tests/arbitraries/candid/constructed/blob_arb/definition_arb.ts b/test/property/arbitraries/candid/constructed/blob_arb/definition_arb.ts similarity index 96% rename from property_tests/arbitraries/candid/constructed/blob_arb/definition_arb.ts rename to test/property/arbitraries/candid/constructed/blob_arb/definition_arb.ts index 199a079aae..b40af61920 100644 --- a/property_tests/arbitraries/candid/constructed/blob_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/constructed/blob_arb/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { blob } from '../../../../../src/lib/experimental'; +import { blob } from '../../../../../../src/lib/experimental'; import { Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/constructed/blob_arb/index.ts b/test/property/arbitraries/candid/constructed/blob_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/blob_arb/index.ts rename to test/property/arbitraries/candid/constructed/blob_arb/index.ts diff --git a/property_tests/arbitraries/candid/constructed/blob_arb/values_arb.ts b/test/property/arbitraries/candid/constructed/blob_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/blob_arb/values_arb.ts rename to test/property/arbitraries/candid/constructed/blob_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/constructed/opt_arb/definition_arb.ts b/test/property/arbitraries/candid/constructed/opt_arb/definition_arb.ts similarity index 98% rename from property_tests/arbitraries/candid/constructed/opt_arb/definition_arb.ts rename to test/property/arbitraries/candid/constructed/opt_arb/definition_arb.ts index e3c93bfddf..59bb3d2348 100644 --- a/property_tests/arbitraries/candid/constructed/opt_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/constructed/opt_arb/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType, Opt } from '../../../../../src/lib/experimental'; +import { CandidType, Opt } from '../../../../../../src/lib/experimental'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/constructed/opt_arb/index.ts b/test/property/arbitraries/candid/constructed/opt_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/opt_arb/index.ts rename to test/property/arbitraries/candid/constructed/opt_arb/index.ts diff --git a/property_tests/arbitraries/candid/constructed/opt_arb/values_arb.ts b/test/property/arbitraries/candid/constructed/opt_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/opt_arb/values_arb.ts rename to test/property/arbitraries/candid/constructed/opt_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/constructed/record_arb/definition_arb.ts b/test/property/arbitraries/candid/constructed/record_arb/definition_arb.ts similarity index 98% rename from property_tests/arbitraries/candid/constructed/record_arb/definition_arb.ts rename to test/property/arbitraries/candid/constructed/record_arb/definition_arb.ts index 2d85e57faa..07c60697b3 100644 --- a/property_tests/arbitraries/candid/constructed/record_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/constructed/record_arb/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType, Record } from '../../../../../src/lib/experimental'; +import { CandidType, Record } from '../../../../../../src/lib/experimental'; import { JsFunctionNameArb } from '../../../js_function_name_arb'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; diff --git a/property_tests/arbitraries/candid/constructed/record_arb/index.ts b/test/property/arbitraries/candid/constructed/record_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/record_arb/index.ts rename to test/property/arbitraries/candid/constructed/record_arb/index.ts diff --git a/property_tests/arbitraries/candid/constructed/record_arb/values_arb.ts b/test/property/arbitraries/candid/constructed/record_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/record_arb/values_arb.ts rename to test/property/arbitraries/candid/constructed/record_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/constructed/tuple_arb/definition_arb.ts b/test/property/arbitraries/candid/constructed/tuple_arb/definition_arb.ts similarity index 98% rename from property_tests/arbitraries/candid/constructed/tuple_arb/definition_arb.ts rename to test/property/arbitraries/candid/constructed/tuple_arb/definition_arb.ts index 461c114dc0..97bd1ebd24 100644 --- a/property_tests/arbitraries/candid/constructed/tuple_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/constructed/tuple_arb/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType, Tuple } from '../../../../../src/lib/experimental'; +import { CandidType, Tuple } from '../../../../../../src/lib/experimental'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/constructed/tuple_arb/index.ts b/test/property/arbitraries/candid/constructed/tuple_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/tuple_arb/index.ts rename to test/property/arbitraries/candid/constructed/tuple_arb/index.ts diff --git a/property_tests/arbitraries/candid/constructed/tuple_arb/values_arbs.ts b/test/property/arbitraries/candid/constructed/tuple_arb/values_arbs.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/tuple_arb/values_arbs.ts rename to test/property/arbitraries/candid/constructed/tuple_arb/values_arbs.ts diff --git a/property_tests/arbitraries/candid/constructed/variant_arb/definition_arbs.ts b/test/property/arbitraries/candid/constructed/variant_arb/definition_arbs.ts similarity index 99% rename from property_tests/arbitraries/candid/constructed/variant_arb/definition_arbs.ts rename to test/property/arbitraries/candid/constructed/variant_arb/definition_arbs.ts index c102c46236..c7061c4342 100644 --- a/property_tests/arbitraries/candid/constructed/variant_arb/definition_arbs.ts +++ b/test/property/arbitraries/candid/constructed/variant_arb/definition_arbs.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType, Variant } from '../../../../../src/lib/experimental'; +import { CandidType, Variant } from '../../../../../../src/lib/experimental'; import { JsFunctionNameArb } from '../../../js_function_name_arb'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; diff --git a/property_tests/arbitraries/candid/constructed/variant_arb/index.ts b/test/property/arbitraries/candid/constructed/variant_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/variant_arb/index.ts rename to test/property/arbitraries/candid/constructed/variant_arb/index.ts diff --git a/property_tests/arbitraries/candid/constructed/variant_arb/values_arb.ts b/test/property/arbitraries/candid/constructed/variant_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/variant_arb/values_arb.ts rename to test/property/arbitraries/candid/constructed/variant_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/constructed/vec_arb/definition_arb.ts b/test/property/arbitraries/candid/constructed/vec_arb/definition_arb.ts similarity index 98% rename from property_tests/arbitraries/candid/constructed/vec_arb/definition_arb.ts rename to test/property/arbitraries/candid/constructed/vec_arb/definition_arb.ts index c679cabfd6..a736eb0ed9 100644 --- a/property_tests/arbitraries/candid/constructed/vec_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/constructed/vec_arb/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType, Vec } from '../../../../../src/lib/experimental'; +import { CandidType, Vec } from '../../../../../../src/lib/experimental'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/constructed/vec_arb/index.ts b/test/property/arbitraries/candid/constructed/vec_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/vec_arb/index.ts rename to test/property/arbitraries/candid/constructed/vec_arb/index.ts diff --git a/property_tests/arbitraries/candid/constructed/vec_arb/values_arb.ts b/test/property/arbitraries/candid/constructed/vec_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/vec_arb/values_arb.ts rename to test/property/arbitraries/candid/constructed/vec_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/corresponding_js_type.ts b/test/property/arbitraries/candid/corresponding_js_type.ts similarity index 100% rename from property_tests/arbitraries/candid/corresponding_js_type.ts rename to test/property/arbitraries/candid/corresponding_js_type.ts diff --git a/property_tests/arbitraries/candid/primitive/bool.ts b/test/property/arbitraries/candid/primitive/bool.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/bool.ts rename to test/property/arbitraries/candid/primitive/bool.ts diff --git a/property_tests/arbitraries/candid/primitive/floats/float32_arb.ts b/test/property/arbitraries/candid/primitive/floats/float32_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/floats/float32_arb.ts rename to test/property/arbitraries/candid/primitive/floats/float32_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/floats/float64_arb.ts b/test/property/arbitraries/candid/primitive/floats/float64_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/floats/float64_arb.ts rename to test/property/arbitraries/candid/primitive/floats/float64_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/ints/index.ts b/test/property/arbitraries/candid/primitive/ints/index.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/ints/index.ts rename to test/property/arbitraries/candid/primitive/ints/index.ts diff --git a/property_tests/arbitraries/candid/primitive/ints/int16_arb.ts b/test/property/arbitraries/candid/primitive/ints/int16_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/ints/int16_arb.ts rename to test/property/arbitraries/candid/primitive/ints/int16_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/ints/int32_arb.ts b/test/property/arbitraries/candid/primitive/ints/int32_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/ints/int32_arb.ts rename to test/property/arbitraries/candid/primitive/ints/int32_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/ints/int64_arb.ts b/test/property/arbitraries/candid/primitive/ints/int64_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/ints/int64_arb.ts rename to test/property/arbitraries/candid/primitive/ints/int64_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/ints/int8_arb.ts b/test/property/arbitraries/candid/primitive/ints/int8_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/ints/int8_arb.ts rename to test/property/arbitraries/candid/primitive/ints/int8_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/ints/int_arb.ts b/test/property/arbitraries/candid/primitive/ints/int_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/ints/int_arb.ts rename to test/property/arbitraries/candid/primitive/ints/int_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/nats/index.ts b/test/property/arbitraries/candid/primitive/nats/index.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/nats/index.ts rename to test/property/arbitraries/candid/primitive/nats/index.ts diff --git a/property_tests/arbitraries/candid/primitive/nats/nat16_arb.ts b/test/property/arbitraries/candid/primitive/nats/nat16_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/nats/nat16_arb.ts rename to test/property/arbitraries/candid/primitive/nats/nat16_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/nats/nat32_arb.ts b/test/property/arbitraries/candid/primitive/nats/nat32_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/nats/nat32_arb.ts rename to test/property/arbitraries/candid/primitive/nats/nat32_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/nats/nat64_arb.ts b/test/property/arbitraries/candid/primitive/nats/nat64_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/nats/nat64_arb.ts rename to test/property/arbitraries/candid/primitive/nats/nat64_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/nats/nat8_arb.ts b/test/property/arbitraries/candid/primitive/nats/nat8_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/nats/nat8_arb.ts rename to test/property/arbitraries/candid/primitive/nats/nat8_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/nats/nat_arb.ts b/test/property/arbitraries/candid/primitive/nats/nat_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/nats/nat_arb.ts rename to test/property/arbitraries/candid/primitive/nats/nat_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/null.ts b/test/property/arbitraries/candid/primitive/null.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/null.ts rename to test/property/arbitraries/candid/primitive/null.ts diff --git a/property_tests/arbitraries/candid/primitive/text.ts b/test/property/arbitraries/candid/primitive/text.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/text.ts rename to test/property/arbitraries/candid/primitive/text.ts diff --git a/property_tests/arbitraries/candid/primitive/void.ts b/test/property/arbitraries/candid/primitive/void.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/void.ts rename to test/property/arbitraries/candid/primitive/void.ts diff --git a/property_tests/arbitraries/candid/recursive/definition_arb.ts b/test/property/arbitraries/candid/recursive/definition_arb.ts similarity index 98% rename from property_tests/arbitraries/candid/recursive/definition_arb.ts rename to test/property/arbitraries/candid/recursive/definition_arb.ts index 570a174898..26121c0678 100644 --- a/property_tests/arbitraries/candid/recursive/definition_arb.ts +++ b/test/property/arbitraries/candid/recursive/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType, Recursive } from '../../../../src/lib/experimental'; +import { CandidType, Recursive } from '../../../../../src/lib/experimental'; import { Api, Context } from '../../types'; import { UniqueIdentifierArb } from '../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/recursive/index.ts b/test/property/arbitraries/candid/recursive/index.ts similarity index 100% rename from property_tests/arbitraries/candid/recursive/index.ts rename to test/property/arbitraries/candid/recursive/index.ts diff --git a/property_tests/arbitraries/candid/recursive/values_arb.ts b/test/property/arbitraries/candid/recursive/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/recursive/values_arb.ts rename to test/property/arbitraries/candid/recursive/values_arb.ts diff --git a/property_tests/arbitraries/candid/reference/func_arb/definition_arb.ts b/test/property/arbitraries/candid/reference/func_arb/definition_arb.ts similarity index 97% rename from property_tests/arbitraries/candid/reference/func_arb/definition_arb.ts rename to test/property/arbitraries/candid/reference/func_arb/definition_arb.ts index 12b34e2e56..eff4465cc3 100644 --- a/property_tests/arbitraries/candid/reference/func_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/reference/func_arb/definition_arb.ts @@ -1,7 +1,7 @@ import fc from 'fast-check'; -import { CandidType } from '../../../../../src/lib/experimental/candid/candid_type'; -import { Func } from '../../../../../src/lib/experimental/candid/types/reference/func'; +import { CandidType } from '../../../../../../src/lib/experimental/candid/candid_type'; +import { Func } from '../../../../../../src/lib/experimental/candid/types/reference/func'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/reference/func_arb/index.ts b/test/property/arbitraries/candid/reference/func_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/reference/func_arb/index.ts rename to test/property/arbitraries/candid/reference/func_arb/index.ts diff --git a/property_tests/arbitraries/candid/reference/func_arb/values_arb.ts b/test/property/arbitraries/candid/reference/func_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/reference/func_arb/values_arb.ts rename to test/property/arbitraries/candid/reference/func_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/reference/principal_arb.ts b/test/property/arbitraries/candid/reference/principal_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/reference/principal_arb.ts rename to test/property/arbitraries/candid/reference/principal_arb.ts diff --git a/property_tests/arbitraries/candid/reference/service_arb/definition_arb.ts b/test/property/arbitraries/candid/reference/service_arb/definition_arb.ts similarity index 98% rename from property_tests/arbitraries/candid/reference/service_arb/definition_arb.ts rename to test/property/arbitraries/candid/reference/service_arb/definition_arb.ts index 1d580ed254..d5e4ba838b 100644 --- a/property_tests/arbitraries/candid/reference/service_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/reference/service_arb/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { Canister } from '../../../../../src/lib/experimental/candid/types/reference/service'; +import { Canister } from '../../../../../../src/lib/experimental/candid/types/reference/service'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/reference/service_arb/index.ts b/test/property/arbitraries/candid/reference/service_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/reference/service_arb/index.ts rename to test/property/arbitraries/candid/reference/service_arb/index.ts diff --git a/property_tests/arbitraries/candid/reference/service_arb/service_method_arb.ts b/test/property/arbitraries/candid/reference/service_arb/service_method_arb.ts similarity index 94% rename from property_tests/arbitraries/candid/reference/service_arb/service_method_arb.ts rename to test/property/arbitraries/candid/reference/service_arb/service_method_arb.ts index c3a86f77ef..7b8d35c42a 100644 --- a/property_tests/arbitraries/candid/reference/service_arb/service_method_arb.ts +++ b/test/property/arbitraries/candid/reference/service_arb/service_method_arb.ts @@ -3,8 +3,8 @@ import fc from 'fast-check'; import { query, update -} from '../../../../../src/lib/experimental/canister_methods/methods/'; -import { CanisterMethodInfo } from '../../../../../src/lib/experimental/canister_methods/types/canister_method_info'; +} from '../../../../../../src/lib/experimental/canister_methods/methods/'; +import { CanisterMethodInfo } from '../../../../../../src/lib/experimental/canister_methods/types/canister_method_info'; import { JsFunctionNameArb } from '../../../js_function_name_arb'; import { Context } from '../../../types'; import { diff --git a/property_tests/arbitraries/candid/reference/service_arb/values_arb.ts b/test/property/arbitraries/candid/reference/service_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/reference/service_arb/values_arb.ts rename to test/property/arbitraries/candid/reference/service_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts b/test/property/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts similarity index 97% rename from property_tests/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts rename to test/property/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts index fa94f88caa..3e421b6cb3 100644 --- a/property_tests/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts +++ b/test/property/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts @@ -18,7 +18,7 @@ import { Principal, text, Void -} from '../../../../src/lib/experimental'; +} from '../../../../../src/lib/experimental'; import { SimpleCandidType } from '../candid_type'; export function candidTypeToRuntimeTypeObject( diff --git a/property_tests/arbitraries/candid/simple_type_arbs/definition_arb.ts b/test/property/arbitraries/candid/simple_type_arbs/definition_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/simple_type_arbs/definition_arb.ts rename to test/property/arbitraries/candid/simple_type_arbs/definition_arb.ts diff --git a/property_tests/arbitraries/candid/simple_type_arbs/values_arb.ts b/test/property/arbitraries/candid/simple_type_arbs/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/simple_type_arbs/values_arb.ts rename to test/property/arbitraries/candid/simple_type_arbs/values_arb.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/bigint.ts b/test/property/arbitraries/candid/to_src_literal/bigint.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/bigint.ts rename to test/property/arbitraries/candid/to_src_literal/bigint.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/blob.ts b/test/property/arbitraries/candid/to_src_literal/blob.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/blob.ts rename to test/property/arbitraries/candid/to_src_literal/blob.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/boolean.ts b/test/property/arbitraries/candid/to_src_literal/boolean.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/boolean.ts rename to test/property/arbitraries/candid/to_src_literal/boolean.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/float.ts b/test/property/arbitraries/candid/to_src_literal/float.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/float.ts rename to test/property/arbitraries/candid/to_src_literal/float.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/null.ts b/test/property/arbitraries/candid/to_src_literal/null.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/null.ts rename to test/property/arbitraries/candid/to_src_literal/null.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/number.ts b/test/property/arbitraries/candid/to_src_literal/number.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/number.ts rename to test/property/arbitraries/candid/to_src_literal/number.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/principal.ts b/test/property/arbitraries/candid/to_src_literal/principal.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/principal.ts rename to test/property/arbitraries/candid/to_src_literal/principal.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/string.ts b/test/property/arbitraries/candid/to_src_literal/string.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/string.ts rename to test/property/arbitraries/candid/to_src_literal/string.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/void.ts b/test/property/arbitraries/candid/to_src_literal/void.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/void.ts rename to test/property/arbitraries/candid/to_src_literal/void.ts diff --git a/property_tests/arbitraries/canister_arb.ts b/test/property/arbitraries/canister_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_arb.ts rename to test/property/arbitraries/canister_arb.ts diff --git a/property_tests/arbitraries/canister_methods/index.ts b/test/property/arbitraries/canister_methods/index.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/index.ts rename to test/property/arbitraries/canister_methods/index.ts diff --git a/property_tests/arbitraries/canister_methods/init_method_arb.ts b/test/property/arbitraries/canister_methods/init_method_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/init_method_arb.ts rename to test/property/arbitraries/canister_methods/init_method_arb.ts diff --git a/property_tests/arbitraries/canister_methods/inspect_message_method_arb.ts b/test/property/arbitraries/canister_methods/inspect_message_method_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/inspect_message_method_arb.ts rename to test/property/arbitraries/canister_methods/inspect_message_method_arb.ts diff --git a/property_tests/arbitraries/canister_methods/post_upgrade_arb.ts b/test/property/arbitraries/canister_methods/post_upgrade_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/post_upgrade_arb.ts rename to test/property/arbitraries/canister_methods/post_upgrade_arb.ts diff --git a/property_tests/arbitraries/canister_methods/pre_upgrade_method_arb.ts b/test/property/arbitraries/canister_methods/pre_upgrade_method_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/pre_upgrade_method_arb.ts rename to test/property/arbitraries/canister_methods/pre_upgrade_method_arb.ts diff --git a/property_tests/arbitraries/canister_methods/query_method_arb.ts b/test/property/arbitraries/canister_methods/query_method_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/query_method_arb.ts rename to test/property/arbitraries/canister_methods/query_method_arb.ts diff --git a/property_tests/arbitraries/canister_methods/update_method_arb.ts b/test/property/arbitraries/canister_methods/update_method_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/update_method_arb.ts rename to test/property/arbitraries/canister_methods/update_method_arb.ts diff --git a/property_tests/arbitraries/config.ts b/test/property/arbitraries/config.ts similarity index 100% rename from property_tests/arbitraries/config.ts rename to test/property/arbitraries/config.ts diff --git a/property_tests/arbitraries/http/body_arb.ts b/test/property/arbitraries/http/body_arb.ts similarity index 100% rename from property_tests/arbitraries/http/body_arb.ts rename to test/property/arbitraries/http/body_arb.ts diff --git a/property_tests/arbitraries/http/headers_arb.ts b/test/property/arbitraries/http/headers_arb.ts similarity index 100% rename from property_tests/arbitraries/http/headers_arb.ts rename to test/property/arbitraries/http/headers_arb.ts diff --git a/property_tests/arbitraries/http/request_arb.ts b/test/property/arbitraries/http/request_arb.ts similarity index 98% rename from property_tests/arbitraries/http/request_arb.ts rename to test/property/arbitraries/http/request_arb.ts index 34668ec3cf..24a9611542 100644 --- a/property_tests/arbitraries/http/request_arb.ts +++ b/test/property/arbitraries/http/request_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { HttpRequest, None, Some } from '../../../src/lib/experimental'; +import { HttpRequest, None, Some } from '../../../../src/lib/experimental'; import { CandidValueAndMeta } from '../candid/candid_value_and_meta_arb'; import { blobToSrcLiteral } from '../candid/to_src_literal/blob'; import { stringToSrcLiteral } from '../candid/to_src_literal/string'; diff --git a/property_tests/arbitraries/http/response_arb.ts b/test/property/arbitraries/http/response_arb.ts similarity index 99% rename from property_tests/arbitraries/http/response_arb.ts rename to test/property/arbitraries/http/response_arb.ts index 137fda8b20..e4bfc32f64 100644 --- a/property_tests/arbitraries/http/response_arb.ts +++ b/test/property/arbitraries/http/response_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { HttpResponse, None } from '../../../src/lib/experimental'; +import { HttpResponse, None } from '../../../../src/lib/experimental'; import { CandidValueAndMeta } from '../candid/candid_value_and_meta_arb'; import { CorrespondingJSType } from '../candid/corresponding_js_type'; import { blobToSrcLiteral } from '../candid/to_src_literal/blob'; diff --git a/property_tests/arbitraries/js_function_name_arb.ts b/test/property/arbitraries/js_function_name_arb.ts similarity index 100% rename from property_tests/arbitraries/js_function_name_arb.ts rename to test/property/arbitraries/js_function_name_arb.ts diff --git a/property_tests/arbitraries/stable_b_tree_map_arb.ts b/test/property/arbitraries/stable_b_tree_map_arb.ts similarity index 100% rename from property_tests/arbitraries/stable_b_tree_map_arb.ts rename to test/property/arbitraries/stable_b_tree_map_arb.ts diff --git a/property_tests/arbitraries/types.ts b/test/property/arbitraries/types.ts similarity index 100% rename from property_tests/arbitraries/types.ts rename to test/property/arbitraries/types.ts diff --git a/property_tests/arbitraries/unique_identifier_arb.ts b/test/property/arbitraries/unique_identifier_arb.ts similarity index 100% rename from property_tests/arbitraries/unique_identifier_arb.ts rename to test/property/arbitraries/unique_identifier_arb.ts diff --git a/property_tests/arbitraries/unique_primitive_arb.ts b/test/property/arbitraries/unique_primitive_arb.ts similarity index 100% rename from property_tests/arbitraries/unique_primitive_arb.ts rename to test/property/arbitraries/unique_primitive_arb.ts diff --git a/property_tests/are_params_correctly_ordered.ts b/test/property/are_params_correctly_ordered.ts similarity index 100% rename from property_tests/are_params_correctly_ordered.ts rename to test/property/are_params_correctly_ordered.ts diff --git a/property_tests/get_actor.ts b/test/property/get_actor.ts similarity index 95% rename from property_tests/get_actor.ts rename to test/property/get_actor.ts index 69f700e358..cc575b28c2 100644 --- a/property_tests/get_actor.ts +++ b/test/property/get_actor.ts @@ -1,6 +1,6 @@ import { Agent, HttpAgent } from '@dfinity/agent'; -import { getCanisterId } from '../dfx'; +import { getCanisterId } from '../../dfx'; export function getActor(parentDir: string, agent?: Agent): any { const resolvedPathIndex = require.resolve( diff --git a/property_tests/index.ts b/test/property/index.ts similarity index 100% rename from property_tests/index.ts rename to test/property/index.ts diff --git a/property_tests/set_experimental.ts b/test/property/set_experimental.ts similarity index 100% rename from property_tests/set_experimental.ts rename to test/property/set_experimental.ts diff --git a/property_tests/test/index.ts b/test/property/test/index.ts similarity index 99% rename from property_tests/test/index.ts rename to test/property/test/index.ts index 5b599f0a8e..add82832a1 100644 --- a/property_tests/test/index.ts +++ b/test/property/test/index.ts @@ -4,7 +4,7 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires const deepEqual = require('deep-is'); -import { jsonStringify } from '../../src/lib/experimental/json'; +import { jsonStringify } from '../../../src/lib/experimental/json'; export type Test<> = { name: string; diff --git a/property_tests/tsconfig.json b/test/property/tsconfig.json similarity index 100% rename from property_tests/tsconfig.json rename to test/property/tsconfig.json diff --git a/property_tests/visitors/LICENCE b/test/property/visitors/LICENCE similarity index 100% rename from property_tests/visitors/LICENCE rename to test/property/visitors/LICENCE diff --git a/property_tests/visitors/cli-string-visitor.ts b/test/property/visitors/cli-string-visitor.ts similarity index 100% rename from property_tests/visitors/cli-string-visitor.ts rename to test/property/visitors/cli-string-visitor.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/async_await/.gitignore b/tests/end_to_end/candid_rpc/class_api/async_await/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/async_await/.gitignore rename to tests/end_to_end/candid_rpc/class_api/async_await/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/async_await/dfx.json b/tests/end_to_end/candid_rpc/class_api/async_await/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/async_await/dfx.json rename to tests/end_to_end/candid_rpc/class_api/async_await/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/async_await/jest.config.js b/tests/end_to_end/candid_rpc/class_api/async_await/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/async_await/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/async_await/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/async_await/package-lock.json b/tests/end_to_end/candid_rpc/class_api/async_await/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/async_await/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/async_await/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/async_await/package.json b/tests/end_to_end/candid_rpc/class_api/async_await/package.json new file mode 100644 index 0000000000..d6a8860a87 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/async_await/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "async_await_end_to_end_test_functional_api": "file:../../functional_api/async_await", + "jest": "^29.7.0", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/async_await/src/async_await.ts b/tests/end_to_end/candid_rpc/class_api/async_await/src/async_await.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/async_await/src/async_await.ts rename to tests/end_to_end/candid_rpc/class_api/async_await/src/async_await.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/async_await/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/async_await/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/async_await/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/async_await/test/pretest.ts index 7d66d43f53..8ad676c501 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/async_await/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/async_await/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'async_await' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/async_await/test/test.ts b/tests/end_to_end/candid_rpc/class_api/async_await/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/async_await/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/async_await/test/test.ts index 3c6ce55058..12300e90a4 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/async_await/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/async_await/test/test.ts @@ -1,4 +1,4 @@ -import { getTests } from 'async_await_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'async_await_end_to_end_test_functional_api/test/tests'; import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/async_await/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/async_await/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/async_await/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/async_await/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/.gitignore b/tests/end_to_end/candid_rpc/class_api/audio_recorder/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/audio_recorder/.gitignore rename to tests/end_to_end/candid_rpc/class_api/audio_recorder/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/dfx.json b/tests/end_to_end/candid_rpc/class_api/audio_recorder/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/audio_recorder/dfx.json rename to tests/end_to_end/candid_rpc/class_api/audio_recorder/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/jest.config.js b/tests/end_to_end/candid_rpc/class_api/audio_recorder/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/audio_recorder/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/audio_recorder/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/package-lock.json b/tests/end_to_end/candid_rpc/class_api/audio_recorder/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/audio_recorder/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/audio_recorder/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/package.json b/tests/end_to_end/candid_rpc/class_api/audio_recorder/package.json similarity index 75% rename from tests/end_to_end/candid_rpc/class_syntax/audio_recorder/package.json rename to tests/end_to_end/candid_rpc/class_api/audio_recorder/package.json index 2f2400b100..1df1dd2333 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/package.json +++ b/tests/end_to_end/candid_rpc/class_api/audio_recorder/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.3", - "audio_recorder_end_to_end_test_functional_syntax": "file:../../functional_syntax/audio_recorder", + "audio_recorder_end_to_end_test_functional_api": "file:../../functional_api/audio_recorder", "jest": "^29.7.0", "ts-jest": "^29.1.5", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/src/index.ts b/tests/end_to_end/candid_rpc/class_api/audio_recorder/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/audio_recorder/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/audio_recorder/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/audio_recorder/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/audio_recorder/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/audio_recorder/test/pretest.ts index c7987c1c80..be2dfb4ca3 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/audio_recorder/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'audio_recorder' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/test/test.ts b/tests/end_to_end/candid_rpc/class_api/audio_recorder/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/audio_recorder/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/audio_recorder/test/test.ts index 6debc7c140..16327efb66 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/audio_recorder/test/test.ts @@ -1,4 +1,4 @@ -import { getTests } from 'audio_recorder_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'audio_recorder_end_to_end_test_functional_api/test/tests'; import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/audio_recorder/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/audio_recorder/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/audio_recorder/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/.bitcoin.conf b/tests/end_to_end/candid_rpc/class_api/bitcoin/.bitcoin.conf similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/.bitcoin.conf rename to tests/end_to_end/candid_rpc/class_api/bitcoin/.bitcoin.conf diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/.gitignore b/tests/end_to_end/candid_rpc/class_api/bitcoin/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/.gitignore rename to tests/end_to_end/candid_rpc/class_api/bitcoin/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/README.md b/tests/end_to_end/candid_rpc/class_api/bitcoin/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/README.md rename to tests/end_to_end/candid_rpc/class_api/bitcoin/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/dfx.json b/tests/end_to_end/candid_rpc/class_api/bitcoin/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/dfx.json rename to tests/end_to_end/candid_rpc/class_api/bitcoin/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/jest.config.js b/tests/end_to_end/candid_rpc/class_api/bitcoin/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/bitcoin/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/package-lock.json b/tests/end_to_end/candid_rpc/class_api/bitcoin/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/bitcoin/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/package.json b/tests/end_to_end/candid_rpc/class_api/bitcoin/package.json similarity index 87% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/package.json rename to tests/end_to_end/candid_rpc/class_api/bitcoin/package.json index f7a096eaf6..e1a074ec15 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/package.json +++ b/tests/end_to_end/candid_rpc/class_api/bitcoin/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@dfinity/agent": "0.11.1", - "bitcoin_end_to_end_test_functional_syntax": "file:../../functional_syntax/bitcoin", + "bitcoin_end_to_end_test_functional_api": "file:../../functional_api/bitcoin", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/scripts/deploy.sh b/tests/end_to_end/candid_rpc/class_api/bitcoin/scripts/deploy.sh similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/scripts/deploy.sh rename to tests/end_to_end/candid_rpc/class_api/bitcoin/scripts/deploy.sh diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/scripts/install.sh b/tests/end_to_end/candid_rpc/class_api/bitcoin/scripts/install.sh similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/scripts/install.sh rename to tests/end_to_end/candid_rpc/class_api/bitcoin/scripts/install.sh diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/src/index.ts b/tests/end_to_end/candid_rpc/class_api/bitcoin/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/bitcoin/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/bitcoin_cli.ts b/tests/end_to_end/candid_rpc/class_api/bitcoin/test/bitcoin_cli.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/bitcoin_cli.ts rename to tests/end_to_end/candid_rpc/class_api/bitcoin/test/bitcoin_cli.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/bitcoin/test/pretest.ts similarity index 77% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/bitcoin/test/pretest.ts index 97a86a8f96..0a86df0701 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/bitcoin/test/pretest.ts @@ -4,13 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join( - 'tests', - 'end_to_end', - 'candid_rpc', - 'functional_syntax', - 'bitcoin' - ) + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'bitcoin') ); execSync(`rm -rf .bitcoin/data/regtest`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/setup.ts b/tests/end_to_end/candid_rpc/class_api/bitcoin/test/setup.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/setup.ts rename to tests/end_to_end/candid_rpc/class_api/bitcoin/test/setup.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/test.ts b/tests/end_to_end/candid_rpc/class_api/bitcoin/test/test.ts similarity index 89% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/bitcoin/test/test.ts index 2c3edeb39e..0a2be1992b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/bitcoin/test/test.ts @@ -1,7 +1,7 @@ import { afterAll, beforeAll, describe } from '@jest/globals'; import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'bitcoin_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'bitcoin_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/bitcoin'; import { BitcoinDaemon, startBitcoinDaemon } from './setup'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/wallets.ts b/tests/end_to_end/candid_rpc/class_api/bitcoin/test/wallets.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/wallets.ts rename to tests/end_to_end/candid_rpc/class_api/bitcoin/test/wallets.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/bitcoin/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bitcoin/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/bitcoin/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/blob_array/.gitignore b/tests/end_to_end/candid_rpc/class_api/blob_array/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/blob_array/.gitignore rename to tests/end_to_end/candid_rpc/class_api/blob_array/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/blob_array/README.md b/tests/end_to_end/candid_rpc/class_api/blob_array/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/blob_array/README.md rename to tests/end_to_end/candid_rpc/class_api/blob_array/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/blob_array/dfx.json b/tests/end_to_end/candid_rpc/class_api/blob_array/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/blob_array/dfx.json rename to tests/end_to_end/candid_rpc/class_api/blob_array/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/blob_array/jest.config.js b/tests/end_to_end/candid_rpc/class_api/blob_array/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/blob_array/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/blob_array/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/blob_array/package-lock.json b/tests/end_to_end/candid_rpc/class_api/blob_array/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/blob_array/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/blob_array/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/counter/package.json b/tests/end_to_end/candid_rpc/class_api/blob_array/package.json similarity index 77% rename from tests/end_to_end/candid_rpc/class_syntax/counter/package.json rename to tests/end_to_end/candid_rpc/class_api/blob_array/package.json index 3e2767a0db..fa08868436 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/counter/package.json +++ b/tests/end_to_end/candid_rpc/class_api/blob_array/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "counter_end_to_end_test_functional_syntax": "file:../../functional_syntax/counter", + "blob_array_end_to_end_test_functional_api": "file:../../functional_api/blob_array", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/blob_array/src/index.ts b/tests/end_to_end/candid_rpc/class_api/blob_array/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/blob_array/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/blob_array/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/blob_array/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/blob_array/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/blob_array/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/blob_array/test/pretest.ts index f6a1e808c7..704f7e06b6 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/blob_array/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/blob_array/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'blob_array' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/blob_array/test/test.ts b/tests/end_to_end/candid_rpc/class_api/blob_array/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/blob_array/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/blob_array/test/test.ts index a12355db8b..170e922ea6 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/blob_array/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/blob_array/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'blob_array_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'blob_array_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/blob_array'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/blob_array/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/blob_array/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/blob_array/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/blob_array/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/.gitignore b/tests/end_to_end/candid_rpc/class_api/bytes/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/.gitignore rename to tests/end_to_end/candid_rpc/class_api/bytes/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/dfx.json b/tests/end_to_end/candid_rpc/class_api/bytes/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/dfx.json rename to tests/end_to_end/candid_rpc/class_api/bytes/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/jest.config.js b/tests/end_to_end/candid_rpc/class_api/bytes/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/bytes/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/package-lock.json b/tests/end_to_end/candid_rpc/class_api/bytes/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/bytes/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/bytes/package.json b/tests/end_to_end/candid_rpc/class_api/bytes/package.json new file mode 100644 index 0000000000..c7b375094c --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/bytes/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "bytes_end_to_end_test_functional_api": "file:../../functional_api/bytes", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/src/index.ts b/tests/end_to_end/candid_rpc/class_api/bytes/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/bytes/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/test/example_files/example_1000_kb.txt b/tests/end_to_end/candid_rpc/class_api/bytes/test/example_files/example_1000_kb.txt similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/test/example_files/example_1000_kb.txt rename to tests/end_to_end/candid_rpc/class_api/bytes/test/example_files/example_1000_kb.txt diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/test/example_files/example_100_kb.txt b/tests/end_to_end/candid_rpc/class_api/bytes/test/example_files/example_100_kb.txt similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/test/example_files/example_100_kb.txt rename to tests/end_to_end/candid_rpc/class_api/bytes/test/example_files/example_100_kb.txt diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/test/example_files/example_10_kb.txt b/tests/end_to_end/candid_rpc/class_api/bytes/test/example_files/example_10_kb.txt similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/test/example_files/example_10_kb.txt rename to tests/end_to_end/candid_rpc/class_api/bytes/test/example_files/example_10_kb.txt diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/test/example_files/example_1_kb.txt b/tests/end_to_end/candid_rpc/class_api/bytes/test/example_files/example_1_kb.txt similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/test/example_files/example_1_kb.txt rename to tests/end_to_end/candid_rpc/class_api/bytes/test/example_files/example_1_kb.txt diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/test/example_files/example_2000_kb.txt b/tests/end_to_end/candid_rpc/class_api/bytes/test/example_files/example_2000_kb.txt similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/test/example_files/example_2000_kb.txt rename to tests/end_to_end/candid_rpc/class_api/bytes/test/example_files/example_2000_kb.txt diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/bytes/test/pretest.ts similarity index 85% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/bytes/test/pretest.ts index 32e6f31335..7eb3e29fa8 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/bytes/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/bytes/test/pretest.ts @@ -4,7 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join('tests', 'end_to_end', 'candid_rpc', 'functional_syntax', 'bytes') + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'bytes') ); execSync(`dfx canister uninstall-code bytes_canister || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/test/test.ts b/tests/end_to_end/candid_rpc/class_api/bytes/test/test.ts similarity index 80% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/bytes/test/test.ts index 1b1ab707ef..8722106c9d 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/bytes/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/bytes/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'bytes_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'bytes_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/bytes_canister'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/bytes/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/bytes/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/.gitignore b/tests/end_to_end/candid_rpc/class_api/call_raw/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/call_raw/.gitignore rename to tests/end_to_end/candid_rpc/class_api/call_raw/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/dfx.json b/tests/end_to_end/candid_rpc/class_api/call_raw/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/call_raw/dfx.json rename to tests/end_to_end/candid_rpc/class_api/call_raw/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/jest.config.js b/tests/end_to_end/candid_rpc/class_api/call_raw/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/call_raw/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/call_raw/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/package-lock.json b/tests/end_to_end/candid_rpc/class_api/call_raw/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/call_raw/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/call_raw/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/package.json b/tests/end_to_end/candid_rpc/class_api/call_raw/package.json similarity index 78% rename from tests/end_to_end/candid_rpc/class_syntax/bytes/package.json rename to tests/end_to_end/candid_rpc/class_api/call_raw/package.json index 463ce6578a..4bbab222c0 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/bytes/package.json +++ b/tests/end_to_end/candid_rpc/class_api/call_raw/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "bytes_end_to_end_test_functional_syntax": "file:../../functional_syntax/bytes", + "call_raw_end_to_end_test_functional_api": "file:../../functional_api/call_raw", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/src/index.ts b/tests/end_to_end/candid_rpc/class_api/call_raw/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/call_raw/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/call_raw/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/call_raw/test/pretest.ts similarity index 74% rename from tests/end_to_end/candid_rpc/class_syntax/call_raw/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/call_raw/test/pretest.ts index b4a816b254..85e6ef7e70 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/call_raw/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/call_raw/test/pretest.ts @@ -4,13 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join( - 'tests', - 'end_to_end', - 'candid_rpc', - 'functional_syntax', - 'call_raw' - ) + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'call_raw') ); execSync(`dfx canister uninstall-code call_raw || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/test/test.ts b/tests/end_to_end/candid_rpc/class_api/call_raw/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/call_raw/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/call_raw/test/test.ts index 0874c11212..15cd53c64a 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/call_raw/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/call_raw/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'call_raw_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'call_raw_end_to_end_test_functional_api/test/tests'; import { createActor } from '../test/dfx_generated/call_raw'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/call_raw/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/call_raw/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/call_raw/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/.gitignore b/tests/end_to_end/candid_rpc/class_api/candid_encoding/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/candid_encoding/.gitignore rename to tests/end_to_end/candid_rpc/class_api/candid_encoding/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/dfx.json b/tests/end_to_end/candid_rpc/class_api/candid_encoding/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/candid_encoding/dfx.json rename to tests/end_to_end/candid_rpc/class_api/candid_encoding/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/jest.config.js b/tests/end_to_end/candid_rpc/class_api/candid_encoding/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/candid_encoding/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/candid_encoding/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/package-lock.json b/tests/end_to_end/candid_rpc/class_api/candid_encoding/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/candid_encoding/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/candid_encoding/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_init/package.json b/tests/end_to_end/candid_rpc/class_api/candid_encoding/package.json similarity index 76% rename from tests/end_to_end/candid_rpc/class_syntax/complex_init/package.json rename to tests/end_to_end/candid_rpc/class_api/candid_encoding/package.json index e593324f0d..045a0f4781 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/complex_init/package.json +++ b/tests/end_to_end/candid_rpc/class_api/candid_encoding/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "complex_init_end_to_end_test_functional_syntax": "file:../../functional_syntax/complex_init", + "candid_encoding_end_to_end_test_functional_api": "file:../../functional_api/candid_encoding", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/src/index.ts b/tests/end_to_end/candid_rpc/class_api/candid_encoding/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/candid_encoding/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/candid_encoding/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/candid_encoding/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/candid_encoding/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/candid_encoding/test/pretest.ts index 5e4bad3bfa..45edf111f4 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/candid_encoding/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'candid_encoding' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/test/test.ts b/tests/end_to_end/candid_rpc/class_api/candid_encoding/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/candid_encoding/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/candid_encoding/test/test.ts index 2207a63591..1700f247c5 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/candid_encoding/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'candid_encoding_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'candid_encoding_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/candid_encoding'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/candid_encoding/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/candid_encoding/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/candid_encoding/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/.gitignore b/tests/end_to_end/candid_rpc/class_api/candid_keywords/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/candid_keywords/.gitignore rename to tests/end_to_end/candid_rpc/class_api/candid_keywords/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/dfx.json b/tests/end_to_end/candid_rpc/class_api/candid_keywords/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/candid_keywords/dfx.json rename to tests/end_to_end/candid_rpc/class_api/candid_keywords/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/jest.config.js b/tests/end_to_end/candid_rpc/class_api/candid_keywords/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/candid_keywords/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/candid_keywords/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/package-lock.json b/tests/end_to_end/candid_rpc/class_api/candid_keywords/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/candid_keywords/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/candid_keywords/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/package.json b/tests/end_to_end/candid_rpc/class_api/candid_keywords/package.json similarity index 75% rename from tests/end_to_end/candid_rpc/class_syntax/candid_keywords/package.json rename to tests/end_to_end/candid_rpc/class_api/candid_keywords/package.json index 039f0b9310..4f8ba10162 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/package.json +++ b/tests/end_to_end/candid_rpc/class_api/candid_keywords/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "0.19.2", - "candid_keywords_end_to_end_test_functional_syntax": "file:../../functional_syntax/candid_keywords", + "candid_keywords_end_to_end_test_functional_api": "file:../../functional_api/candid_keywords", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/src/index.ts b/tests/end_to_end/candid_rpc/class_api/candid_keywords/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/candid_keywords/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/candid_keywords/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/candid_keywords/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/candid_keywords/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/candid_keywords/test/pretest.ts index 8abc67ae58..4d2139d493 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/candid_keywords/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'candid_keywords' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/test/test.ts b/tests/end_to_end/candid_rpc/class_api/candid_keywords/test/test.ts similarity index 93% rename from tests/end_to_end/candid_rpc/class_syntax/candid_keywords/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/candid_keywords/test/test.ts index 4af6a9a099..60fbae3c95 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/candid_keywords/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'candid_keywords_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'candid_keywords_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/candid_keywords'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/candid_keywords/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/candid_keywords/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/candid_keywords/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/.gitignore b/tests/end_to_end/candid_rpc/class_api/canister/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/canister/.gitignore rename to tests/end_to_end/candid_rpc/class_api/canister/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/dfx.json b/tests/end_to_end/candid_rpc/class_api/canister/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/canister/dfx.json rename to tests/end_to_end/candid_rpc/class_api/canister/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/jest.config.js b/tests/end_to_end/candid_rpc/class_api/canister/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/canister/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/canister/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/package-lock.json b/tests/end_to_end/candid_rpc/class_api/canister/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/canister/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/canister/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/package.json b/tests/end_to_end/candid_rpc/class_api/canister/package.json similarity index 77% rename from tests/end_to_end/candid_rpc/class_syntax/canister/package.json rename to tests/end_to_end/candid_rpc/class_api/canister/package.json index 95329b5df4..226db65734 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/canister/package.json +++ b/tests/end_to_end/candid_rpc/class_api/canister/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.21.4", - "canister_end_to_end_test_functional_syntax": "file:../../functional_syntax/canister", + "canister_end_to_end_test_functional_api": "file:../../functional_api/canister", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/src/index.ts b/tests/end_to_end/candid_rpc/class_api/canister/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/canister/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/canister/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/src/some_canister.did b/tests/end_to_end/candid_rpc/class_api/canister/src/some_canister.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/canister/src/some_canister.did rename to tests/end_to_end/candid_rpc/class_api/canister/src/some_canister.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/src/some_canister.ts b/tests/end_to_end/candid_rpc/class_api/canister/src/some_canister.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/canister/src/some_canister.ts rename to tests/end_to_end/candid_rpc/class_api/canister/src/some_canister.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/canister/test/pretest.ts similarity index 83% rename from tests/end_to_end/candid_rpc/class_syntax/canister/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/canister/test/pretest.ts index 947d581c10..bdf13b84c1 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/canister/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/canister/test/pretest.ts @@ -5,13 +5,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join( - 'tests', - 'end_to_end', - 'candid_rpc', - 'functional_syntax', - 'canister' - ) + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'canister') ); execSync(`dfx canister uninstall-code canister || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/test/test.ts b/tests/end_to_end/candid_rpc/class_api/canister/test/test.ts similarity index 78% rename from tests/end_to_end/candid_rpc/class_syntax/canister/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/canister/test/test.ts index 5922535b93..529cf6b95d 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/canister/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/canister/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'canister_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'canister_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/canister'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/canister/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/canister/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/canister/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_init/.gitignore b/tests/end_to_end/candid_rpc/class_api/complex_init/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_init/.gitignore rename to tests/end_to_end/candid_rpc/class_api/complex_init/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_init/dfx.json b/tests/end_to_end/candid_rpc/class_api/complex_init/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_init/dfx.json rename to tests/end_to_end/candid_rpc/class_api/complex_init/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_init/jest.config.js b/tests/end_to_end/candid_rpc/class_api/complex_init/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_init/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/complex_init/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_init/package-lock.json b/tests/end_to_end/candid_rpc/class_api/complex_init/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_init/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/complex_init/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/package.json b/tests/end_to_end/candid_rpc/class_api/complex_init/package.json similarity index 77% rename from tests/end_to_end/candid_rpc/class_syntax/cycles/package.json rename to tests/end_to_end/candid_rpc/class_api/complex_init/package.json index 38df65ecf1..b5ab08f7cb 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/cycles/package.json +++ b/tests/end_to_end/candid_rpc/class_api/complex_init/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "cycles_end_to_end_test_functional_syntax": "file:../../functional_syntax/cycles", + "complex_init_end_to_end_test_functional_api": "file:../../functional_api/complex_init", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_init/src/complex_init/index.ts b/tests/end_to_end/candid_rpc/class_api/complex_init/src/complex_init/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_init/src/complex_init/index.ts rename to tests/end_to_end/candid_rpc/class_api/complex_init/src/complex_init/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_init/src/rec_init/index.ts b/tests/end_to_end/candid_rpc/class_api/complex_init/src/rec_init/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_init/src/rec_init/index.ts rename to tests/end_to_end/candid_rpc/class_api/complex_init/src/rec_init/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_init/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/complex_init/test/pretest.ts similarity index 96% rename from tests/end_to_end/candid_rpc/class_syntax/complex_init/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/complex_init/test/pretest.ts index 59822c07a8..27678e4186 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/complex_init/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/complex_init/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'complex_init' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_init/test/test.ts b/tests/end_to_end/candid_rpc/class_api/complex_init/test/test.ts similarity index 91% rename from tests/end_to_end/candid_rpc/class_syntax/complex_init/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/complex_init/test/test.ts index 277fbf3431..3f9dff812b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/complex_init/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/complex_init/test/test.ts @@ -4,7 +4,7 @@ import { runTests } from 'azle/test'; import { getRecTests, getTests -} from 'complex_init_end_to_end_test_functional_syntax/test/tests'; +} from 'complex_init_end_to_end_test_functional_api/test/tests'; import { createActor as createComplexActor } from './dfx_generated/complex_init'; // @ts-ignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_init/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/complex_init/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_init/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/complex_init/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/.gitignore b/tests/end_to_end/candid_rpc/class_api/complex_types/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/.gitignore rename to tests/end_to_end/candid_rpc/class_api/complex_types/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/dfx.json b/tests/end_to_end/candid_rpc/class_api/complex_types/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/dfx.json rename to tests/end_to_end/candid_rpc/class_api/complex_types/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/jest.config.js b/tests/end_to_end/candid_rpc/class_api/complex_types/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/complex_types/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/package-lock.json b/tests/end_to_end/candid_rpc/class_api/complex_types/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/complex_types/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/package.json b/tests/end_to_end/candid_rpc/class_api/complex_types/package.json similarity index 76% rename from tests/end_to_end/candid_rpc/class_syntax/func_types/package.json rename to tests/end_to_end/candid_rpc/class_api/complex_types/package.json index 6881e5cd2f..973e6c1958 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/func_types/package.json +++ b/tests/end_to_end/candid_rpc/class_api/complex_types/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "0.11.1", - "func_types_end_to_end_test_functional_syntax": "file:../../functional_syntax/func_types", + "complex_types_end_to_end_test_functional_api": "file:../../functional_api/complex_types", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/src/candid_types.ts b/tests/end_to_end/candid_rpc/class_api/complex_types/src/candid_types.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/src/candid_types.ts rename to tests/end_to_end/candid_rpc/class_api/complex_types/src/candid_types.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/src/index.ts b/tests/end_to_end/candid_rpc/class_api/complex_types/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/complex_types/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/src/posts.ts b/tests/end_to_end/candid_rpc/class_api/complex_types/src/posts.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/src/posts.ts rename to tests/end_to_end/candid_rpc/class_api/complex_types/src/posts.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/src/reactions.ts b/tests/end_to_end/candid_rpc/class_api/complex_types/src/reactions.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/src/reactions.ts rename to tests/end_to_end/candid_rpc/class_api/complex_types/src/reactions.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/src/state.ts b/tests/end_to_end/candid_rpc/class_api/complex_types/src/state.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/src/state.ts rename to tests/end_to_end/candid_rpc/class_api/complex_types/src/state.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/src/threads.ts b/tests/end_to_end/candid_rpc/class_api/complex_types/src/threads.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/src/threads.ts rename to tests/end_to_end/candid_rpc/class_api/complex_types/src/threads.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/src/users.ts b/tests/end_to_end/candid_rpc/class_api/complex_types/src/users.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/src/users.ts rename to tests/end_to_end/candid_rpc/class_api/complex_types/src/users.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/complex_types/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/complex_types/test/pretest.ts index aaa2014957..1337b869c2 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/complex_types/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/complex_types/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'complex_types' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/test/test.ts b/tests/end_to_end/candid_rpc/class_api/complex_types/test/test.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/complex_types/test/test.ts index 279ca72b21..a951855c24 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/complex_types/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/complex_types/test/test.ts @@ -2,7 +2,7 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'complex_types_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'complex_types_end_to_end_test_functional_api/test/tests'; import { createActor } from '../test/dfx_generated/complex_types'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/complex_types/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/complex_types/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/.gitignore b/tests/end_to_end/candid_rpc/class_api/composite_queries/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/composite_queries/.gitignore rename to tests/end_to_end/candid_rpc/class_api/composite_queries/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/dfx.json b/tests/end_to_end/candid_rpc/class_api/composite_queries/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/composite_queries/dfx.json rename to tests/end_to_end/candid_rpc/class_api/composite_queries/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/jest.config.js b/tests/end_to_end/candid_rpc/class_api/composite_queries/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/composite_queries/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/composite_queries/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/package-lock.json b/tests/end_to_end/candid_rpc/class_api/composite_queries/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/composite_queries/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/composite_queries/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/composite_queries/package.json b/tests/end_to_end/candid_rpc/class_api/composite_queries/package.json new file mode 100644 index 0000000000..08d706a1d3 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/composite_queries/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "composite_queries_end_to_end_test_functional_api": "file:../../functional_api/composite_queries", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/src/canister1/index.ts b/tests/end_to_end/candid_rpc/class_api/composite_queries/src/canister1/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/composite_queries/src/canister1/index.ts rename to tests/end_to_end/candid_rpc/class_api/composite_queries/src/canister1/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/src/canister2/index.did b/tests/end_to_end/candid_rpc/class_api/composite_queries/src/canister2/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/composite_queries/src/canister2/index.did rename to tests/end_to_end/candid_rpc/class_api/composite_queries/src/canister2/index.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/src/canister2/index.ts b/tests/end_to_end/candid_rpc/class_api/composite_queries/src/canister2/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/composite_queries/src/canister2/index.ts rename to tests/end_to_end/candid_rpc/class_api/composite_queries/src/canister2/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/src/canister3/index.did b/tests/end_to_end/candid_rpc/class_api/composite_queries/src/canister3/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/composite_queries/src/canister3/index.did rename to tests/end_to_end/candid_rpc/class_api/composite_queries/src/canister3/index.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/src/canister3/index.ts b/tests/end_to_end/candid_rpc/class_api/composite_queries/src/canister3/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/composite_queries/src/canister3/index.ts rename to tests/end_to_end/candid_rpc/class_api/composite_queries/src/canister3/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/composite_queries/test/pretest.ts similarity index 97% rename from tests/end_to_end/candid_rpc/class_syntax/composite_queries/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/composite_queries/test/pretest.ts index 5ddb331d53..c452b290cd 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/composite_queries/test/pretest.ts @@ -9,7 +9,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'composite_queries' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/test/test.ts b/tests/end_to_end/candid_rpc/class_api/composite_queries/test/test.ts similarity index 93% rename from tests/end_to_end/candid_rpc/class_syntax/composite_queries/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/composite_queries/test/test.ts index 39ef994e34..43425bb088 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/composite_queries/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'composite_queries_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'composite_queries_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/canister1'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/composite_queries/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/composite_queries/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/composite_queries/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/counter/.gitignore b/tests/end_to_end/candid_rpc/class_api/counter/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/counter/.gitignore rename to tests/end_to_end/candid_rpc/class_api/counter/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/counter/dfx.json b/tests/end_to_end/candid_rpc/class_api/counter/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/counter/dfx.json rename to tests/end_to_end/candid_rpc/class_api/counter/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/counter/jest.config.js b/tests/end_to_end/candid_rpc/class_api/counter/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/counter/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/counter/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/counter/package-lock.json b/tests/end_to_end/candid_rpc/class_api/counter/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/counter/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/counter/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/date/package.json b/tests/end_to_end/candid_rpc/class_api/counter/package.json similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/date/package.json rename to tests/end_to_end/candid_rpc/class_api/counter/package.json index a5ed20166d..4af13b39a2 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/date/package.json +++ b/tests/end_to_end/candid_rpc/class_api/counter/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "date_end_to_end_test_functional_syntax": "file:../../functional_syntax/date", + "counter_end_to_end_test_functional_api": "file:../../functional_api/counter", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/counter/src/index.ts b/tests/end_to_end/candid_rpc/class_api/counter/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/counter/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/counter/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/counter/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/counter/test/pretest.ts similarity index 74% rename from tests/end_to_end/candid_rpc/class_syntax/counter/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/counter/test/pretest.ts index 4493041bc7..e471c4cae6 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/counter/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/counter/test/pretest.ts @@ -4,13 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join( - 'tests', - 'end_to_end', - 'candid_rpc', - 'functional_syntax', - 'counter' - ) + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'counter') ); execSync(`dfx canister uninstall-code counter || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/counter/test/test.ts b/tests/end_to_end/candid_rpc/class_api/counter/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/counter/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/counter/test/test.ts index ede495bd89..382825353b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/counter/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/counter/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'counter_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'counter_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/counter'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/counter/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/counter/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/counter/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/counter/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/.gitignore b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/.gitignore rename to tests/end_to_end/candid_rpc/class_api/cross_canister_calls/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/dfx.json b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/dfx.json rename to tests/end_to_end/candid_rpc/class_api/cross_canister_calls/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/jest.config.js b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/cross_canister_calls/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/package-lock.json b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/cross_canister_calls/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/package.json b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/package.json new file mode 100644 index 0000000000..d5d948a66c --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "cross_canister_calls_end_to_end_test_functional_api": "file:../../functional_api/cross_canister_calls", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/src/canister1/index.ts b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/src/canister1/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/src/canister1/index.ts rename to tests/end_to_end/candid_rpc/class_api/cross_canister_calls/src/canister1/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/src/canister2/index.did b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/src/canister2/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/src/canister2/index.did rename to tests/end_to_end/candid_rpc/class_api/cross_canister_calls/src/canister2/index.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/src/canister2/index.ts b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/src/canister2/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/src/canister2/index.ts rename to tests/end_to_end/candid_rpc/class_api/cross_canister_calls/src/canister2/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/src/canister2/types.ts b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/src/canister2/types.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/src/canister2/types.ts rename to tests/end_to_end/candid_rpc/class_api/cross_canister_calls/src/canister2/types.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/test/pretest.ts similarity index 96% rename from tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/cross_canister_calls/test/pretest.ts index abae7c231f..56caa7cf60 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/test/pretest.ts @@ -9,7 +9,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'cross_canister_calls' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/test/test.ts b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/test/test.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/cross_canister_calls/test/test.ts index 27fe423e64..0ac7274130 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'cross_canister_calls_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'cross_canister_calls_end_to_end_test_functional_api/test/tests'; import { createActor as createActorCanister1 } from './dfx_generated/canister1'; import { createActor as createActorCanister2 } from './dfx_generated/canister2'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/cross_canister_calls/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/cross_canister_calls/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/.gitignore b/tests/end_to_end/candid_rpc/class_api/cycles/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cycles/.gitignore rename to tests/end_to_end/candid_rpc/class_api/cycles/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/dfx.json b/tests/end_to_end/candid_rpc/class_api/cycles/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cycles/dfx.json rename to tests/end_to_end/candid_rpc/class_api/cycles/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/jest.config.js b/tests/end_to_end/candid_rpc/class_api/cycles/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cycles/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/cycles/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/package-lock.json b/tests/end_to_end/candid_rpc/class_api/cycles/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cycles/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/cycles/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/cycles/package.json b/tests/end_to_end/candid_rpc/class_api/cycles/package.json new file mode 100644 index 0000000000..122fb1892c --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/cycles/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "cycles_end_to_end_test_functional_api": "file:../../functional_api/cycles", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/src/cycles/index.did b/tests/end_to_end/candid_rpc/class_api/cycles/src/cycles/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cycles/src/cycles/index.did rename to tests/end_to_end/candid_rpc/class_api/cycles/src/cycles/index.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/src/cycles/index.ts b/tests/end_to_end/candid_rpc/class_api/cycles/src/cycles/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cycles/src/cycles/index.ts rename to tests/end_to_end/candid_rpc/class_api/cycles/src/cycles/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/src/intermediary/index.ts b/tests/end_to_end/candid_rpc/class_api/cycles/src/intermediary/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cycles/src/intermediary/index.ts rename to tests/end_to_end/candid_rpc/class_api/cycles/src/intermediary/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/cycles/test/pretest.ts similarity index 89% rename from tests/end_to_end/candid_rpc/class_syntax/cycles/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/cycles/test/pretest.ts index 146b42d6ad..cb39b1348d 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/cycles/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/cycles/test/pretest.ts @@ -5,7 +5,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join('tests', 'end_to_end', 'candid_rpc', 'functional_syntax', 'cycles') + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'cycles') ); execSync(`dfx canister uninstall-code cycles || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/test/test.ts b/tests/end_to_end/candid_rpc/class_api/cycles/test/test.ts similarity index 90% rename from tests/end_to_end/candid_rpc/class_syntax/cycles/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/cycles/test/test.ts index 900088be06..e61e7e4e5c 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/cycles/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/cycles/test/test.ts @@ -2,7 +2,7 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'cycles_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'cycles_end_to_end_test_functional_api/test/tests'; import { createActor as createCyclesActor } from './dfx_generated/cycles'; import { createActor as createIntermediaryActor } from './dfx_generated/intermediary'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/cycles/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/cycles/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/cycles/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/date/.gitignore b/tests/end_to_end/candid_rpc/class_api/date/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/date/.gitignore rename to tests/end_to_end/candid_rpc/class_api/date/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/date/dfx.json b/tests/end_to_end/candid_rpc/class_api/date/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/date/dfx.json rename to tests/end_to_end/candid_rpc/class_api/date/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/date/jest.config.js b/tests/end_to_end/candid_rpc/class_api/date/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/date/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/date/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/date/package-lock.json b/tests/end_to_end/candid_rpc/class_api/date/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/date/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/date/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/date/package.json b/tests/end_to_end/candid_rpc/class_api/date/package.json new file mode 100644 index 0000000000..c3df3194e6 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/date/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "date_end_to_end_test_functional_api": "file:../../functional_api/date", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/date/src/index.ts b/tests/end_to_end/candid_rpc/class_api/date/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/date/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/date/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/date/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/date/test/pretest.ts similarity index 84% rename from tests/end_to_end/candid_rpc/class_syntax/date/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/date/test/pretest.ts index 6dd008821c..76a456de7a 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/date/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/date/test/pretest.ts @@ -4,7 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join('tests', 'end_to_end', 'candid_rpc', 'functional_syntax', 'date') + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'date') ); execSync(`dfx canister uninstall-code date || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/date/test/test.ts b/tests/end_to_end/candid_rpc/class_api/date/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/date/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/date/test/test.ts index e87c0ceae4..8047871df1 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/date/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/date/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'date_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'date_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/date'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/date/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/date/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/date/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/date/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/.gitignore b/tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/.gitignore rename to tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/dfx.json b/tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/dfx.json rename to tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/jest.config.js b/tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/package-lock.json b/tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/package.json b/tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/package.json similarity index 78% rename from tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/package.json rename to tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/package.json index f67024ec19..ef19420c6d 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/package.json +++ b/tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "ethereum_json_rpc_end_to_end_test_functional_syntax": "file:../../functional_syntax/ethereum_json_rpc", + "ethereum_json_rpc_end_to_end_test_functional_api": "file:../../functional_api/ethereum_json_rpc", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/src/index.ts b/tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/test/pretest.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/test/pretest.ts index 2c58c02dbe..d3ebdf9c5f 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'ethereum_json_rpc' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/test/test.ts b/tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/test/test.ts similarity index 96% rename from tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/test/test.ts index 24ebd60c2f..326bfb711e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/test/test.ts @@ -2,7 +2,7 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'ethereum_json_rpc_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'ethereum_json_rpc_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/ethereum_json_rpc'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/ethereum_json_rpc/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/.gitignore b/tests/end_to_end/candid_rpc/class_api/func_types/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/func_types/.gitignore rename to tests/end_to_end/candid_rpc/class_api/func_types/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/canisters/func_types/index.ts b/tests/end_to_end/candid_rpc/class_api/func_types/canisters/func_types/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/func_types/canisters/func_types/index.ts rename to tests/end_to_end/candid_rpc/class_api/func_types/canisters/func_types/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/canisters/notifiers/index.did b/tests/end_to_end/candid_rpc/class_api/func_types/canisters/notifiers/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/func_types/canisters/notifiers/index.did rename to tests/end_to_end/candid_rpc/class_api/func_types/canisters/notifiers/index.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/canisters/notifiers/index.ts b/tests/end_to_end/candid_rpc/class_api/func_types/canisters/notifiers/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/func_types/canisters/notifiers/index.ts rename to tests/end_to_end/candid_rpc/class_api/func_types/canisters/notifiers/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/dfx.json b/tests/end_to_end/candid_rpc/class_api/func_types/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/func_types/dfx.json rename to tests/end_to_end/candid_rpc/class_api/func_types/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/jest.config.js b/tests/end_to_end/candid_rpc/class_api/func_types/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/func_types/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/func_types/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/package-lock.json b/tests/end_to_end/candid_rpc/class_api/func_types/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/func_types/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/func_types/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/package.json b/tests/end_to_end/candid_rpc/class_api/func_types/package.json similarity index 75% rename from tests/end_to_end/candid_rpc/class_syntax/complex_types/package.json rename to tests/end_to_end/candid_rpc/class_api/func_types/package.json index 243d4b72d4..712f0286d1 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/complex_types/package.json +++ b/tests/end_to_end/candid_rpc/class_api/func_types/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "0.11.1", - "complex_types_end_to_end_test_functional_syntax": "file:../../functional_syntax/complex_types", + "func_types_end_to_end_test_functional_api": "file:../../functional_api/func_types", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/func_types/test/pretest.ts similarity index 96% rename from tests/end_to_end/candid_rpc/class_syntax/func_types/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/func_types/test/pretest.ts index afaf0200a9..2290d34259 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/func_types/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/func_types/test/pretest.ts @@ -9,7 +9,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'func_types' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/test/test.ts b/tests/end_to_end/candid_rpc/class_api/func_types/test/test.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/func_types/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/func_types/test/test.ts index 4e8af58ed7..d1eeedf159 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/func_types/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/func_types/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'func_types_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'func_types_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/func_types'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/func_types/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/func_types/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/func_types/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/.gitignore b/tests/end_to_end/candid_rpc/class_api/heartbeat/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/heartbeat/.gitignore rename to tests/end_to_end/candid_rpc/class_api/heartbeat/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/dfx.json b/tests/end_to_end/candid_rpc/class_api/heartbeat/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/heartbeat/dfx.json rename to tests/end_to_end/candid_rpc/class_api/heartbeat/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/jest.config.js b/tests/end_to_end/candid_rpc/class_api/heartbeat/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/heartbeat/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/heartbeat/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/package-lock.json b/tests/end_to_end/candid_rpc/class_api/heartbeat/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/heartbeat/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/heartbeat/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/timers/package.json b/tests/end_to_end/candid_rpc/class_api/heartbeat/package.json similarity index 78% rename from tests/end_to_end/candid_rpc/class_syntax/timers/package.json rename to tests/end_to_end/candid_rpc/class_api/heartbeat/package.json index 6fc239c4e0..e551966d4b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/timers/package.json +++ b/tests/end_to_end/candid_rpc/class_api/heartbeat/package.json @@ -8,8 +8,8 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "heartbeat_end_to_end_test_functional_api": "file:../../functional_api/heartbeat", "jest": "^29.7.0", - "timers_end_to_end_test_functional_syntax": "file:../../functional_syntax/timers", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/src/heartbeat_async/index.ts b/tests/end_to_end/candid_rpc/class_api/heartbeat/src/heartbeat_async/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/heartbeat/src/heartbeat_async/index.ts rename to tests/end_to_end/candid_rpc/class_api/heartbeat/src/heartbeat_async/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/src/heartbeat_sync/index.ts b/tests/end_to_end/candid_rpc/class_api/heartbeat/src/heartbeat_sync/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/heartbeat/src/heartbeat_sync/index.ts rename to tests/end_to_end/candid_rpc/class_api/heartbeat/src/heartbeat_sync/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/heartbeat/test/pretest.ts similarity index 77% rename from tests/end_to_end/candid_rpc/class_syntax/heartbeat/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/heartbeat/test/pretest.ts index d644ff5404..2ac126099d 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/heartbeat/test/pretest.ts @@ -4,13 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join( - 'tests', - 'end_to_end', - 'candid_rpc', - 'functional_syntax', - 'heartbeat' - ) + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'heartbeat') ); execSync(`dfx canister uninstall-code heartbeat_async || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/test/test.ts b/tests/end_to_end/candid_rpc/class_api/heartbeat/test/test.ts similarity index 89% rename from tests/end_to_end/candid_rpc/class_syntax/heartbeat/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/heartbeat/test/test.ts index 6680b29950..41d967feb5 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/heartbeat/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'heartbeat_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'heartbeat_end_to_end_test_functional_api/test/tests'; import { createActor as createActorHeartbeatAsync } from './dfx_generated/heartbeat_async'; import { createActor as createActorHeartbeatSync } from './dfx_generated/heartbeat_sync'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/heartbeat/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/heartbeat/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/heartbeat/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/ic_api/.gitignore b/tests/end_to_end/candid_rpc/class_api/ic_api/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ic_api/.gitignore rename to tests/end_to_end/candid_rpc/class_api/ic_api/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/ic_api/dfx.json b/tests/end_to_end/candid_rpc/class_api/ic_api/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ic_api/dfx.json rename to tests/end_to_end/candid_rpc/class_api/ic_api/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/ic_api/jest.config.js b/tests/end_to_end/candid_rpc/class_api/ic_api/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ic_api/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/ic_api/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/ic_api/package-lock.json b/tests/end_to_end/candid_rpc/class_api/ic_api/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ic_api/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/ic_api/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/package.json b/tests/end_to_end/candid_rpc/class_api/ic_api/package.json similarity index 79% rename from tests/end_to_end/candid_rpc/functional_syntax/key_value_store/package.json rename to tests/end_to_end/candid_rpc/class_api/ic_api/package.json index 2dc66eaec6..dec1e1321c 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/package.json +++ b/tests/end_to_end/candid_rpc/class_api/ic_api/package.json @@ -1,5 +1,4 @@ { - "name": "key_value_store_end_to_end_test_functional_syntax", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" @@ -9,6 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "ic_api_end_to_end_test_functional_api": "file:../../functional_api/ic_api", "jest": "^29.7.0", "ts-jest": "^29.1.5", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/ic_api/src/index.ts b/tests/end_to_end/candid_rpc/class_api/ic_api/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ic_api/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/ic_api/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/ic_api/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/ic_api/test/pretest.ts similarity index 84% rename from tests/end_to_end/candid_rpc/class_syntax/ic_api/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/ic_api/test/pretest.ts index 308f3004c0..6c17843dab 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ic_api/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/ic_api/test/pretest.ts @@ -4,7 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join('tests', 'end_to_end', 'candid_rpc', 'functional_syntax', 'ic_api') + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'ic_api') ); execSync(`dfx canister uninstall-code ic_api || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/ic_api/test/test.ts b/tests/end_to_end/candid_rpc/class_api/ic_api/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/ic_api/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/ic_api/test/test.ts index 40bf30e43f..8222e979e0 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ic_api/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/ic_api/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'ic_api_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'ic_api_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/ic_api'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/ic_api/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/ic_api/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ic_api/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/ic_api/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/.gitignore b/tests/end_to_end/candid_rpc/class_api/icrc/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/icrc/.gitignore rename to tests/end_to_end/candid_rpc/class_api/icrc/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/README.md b/tests/end_to_end/candid_rpc/class_api/icrc/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/icrc/README.md rename to tests/end_to_end/candid_rpc/class_api/icrc/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/canisters/proxy/index.ts b/tests/end_to_end/candid_rpc/class_api/icrc/canisters/proxy/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/icrc/canisters/proxy/index.ts rename to tests/end_to_end/candid_rpc/class_api/icrc/canisters/proxy/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/dfx.json b/tests/end_to_end/candid_rpc/class_api/icrc/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/icrc/dfx.json rename to tests/end_to_end/candid_rpc/class_api/icrc/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/jest.config.js b/tests/end_to_end/candid_rpc/class_api/icrc/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/icrc/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/icrc/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/package-lock.json b/tests/end_to_end/candid_rpc/class_api/icrc/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/icrc/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/icrc/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/package.json b/tests/end_to_end/candid_rpc/class_api/icrc/package.json similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/icrc/package.json rename to tests/end_to_end/candid_rpc/class_api/icrc/package.json index a238e84160..35189e3f82 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/icrc/package.json +++ b/tests/end_to_end/candid_rpc/class_api/icrc/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "0.14.1", - "icrc_end_to_end_test_functional_syntax": "file:../../functional_syntax/icrc", + "icrc_end_to_end_test_functional_api": "file:../../functional_api/icrc", "jest": "^29.7.0", "ts-jest": "^29.1.5", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/params.did b/tests/end_to_end/candid_rpc/class_api/icrc/params.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/icrc/params.did rename to tests/end_to_end/candid_rpc/class_api/icrc/params.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/icrc/test/pretest.ts similarity index 93% rename from tests/end_to_end/candid_rpc/class_syntax/icrc/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/icrc/test/pretest.ts index b98609ebe3..f70853138f 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/icrc/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/icrc/test/pretest.ts @@ -4,7 +4,7 @@ import { join } from 'path'; function pretest(icrcPath: string): void { linkAndInstallPatch( - join('tests', 'end_to_end', 'candid_rpc', 'functional_syntax', 'icrc') + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'icrc') ); execSync(`dfx canister uninstall-code proxy || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/test/test.ts b/tests/end_to_end/candid_rpc/class_api/icrc/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/icrc/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/icrc/test/test.ts index 57026140cd..f25e4acc98 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/icrc/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/icrc/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'icrc_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'icrc_end_to_end_test_functional_api/test/tests'; import { createActor } from '../test/dfx_generated/proxy'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/icrc/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/icrc/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/icrc/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/imports/.gitignore b/tests/end_to_end/candid_rpc/class_api/imports/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/imports/.gitignore rename to tests/end_to_end/candid_rpc/class_api/imports/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/imports/dfx.json b/tests/end_to_end/candid_rpc/class_api/imports/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/imports/dfx.json rename to tests/end_to_end/candid_rpc/class_api/imports/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/imports/jest.config.js b/tests/end_to_end/candid_rpc/class_api/imports/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/imports/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/imports/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/imports/package-lock.json b/tests/end_to_end/candid_rpc/class_api/imports/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/imports/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/imports/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/imports/package.json b/tests/end_to_end/candid_rpc/class_api/imports/package.json similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/imports/package.json rename to tests/end_to_end/candid_rpc/class_api/imports/package.json index 7bfeaa27a5..92d86ab41b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/imports/package.json +++ b/tests/end_to_end/candid_rpc/class_api/imports/package.json @@ -9,7 +9,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "imports_end_to_end_test_functional_syntax": "file:../../functional_syntax/imports", + "imports_end_to_end_test_functional_api": "file:../../functional_api/imports", "jest": "^29.7.0", "ts-jest": "^29.1.5", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/imports/src/index.ts b/tests/end_to_end/candid_rpc/class_api/imports/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/imports/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/imports/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/imports/src/library.ts b/tests/end_to_end/candid_rpc/class_api/imports/src/library.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/imports/src/library.ts rename to tests/end_to_end/candid_rpc/class_api/imports/src/library.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/imports/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/imports/test/pretest.ts similarity index 74% rename from tests/end_to_end/candid_rpc/class_syntax/imports/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/imports/test/pretest.ts index 58547b58db..da9a2d0fab 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/imports/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/imports/test/pretest.ts @@ -4,13 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join( - 'tests', - 'end_to_end', - 'candid_rpc', - 'functional_syntax', - 'imports' - ) + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'imports') ); execSync(`dfx canister uninstall-code imports || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/imports/test/test.ts b/tests/end_to_end/candid_rpc/class_api/imports/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/imports/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/imports/test/test.ts index 7a2fced99a..f730008503 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/imports/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/imports/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'imports_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'imports_end_to_end_test_functional_api/test/tests'; import { createActor } from '../test/dfx_generated/imports'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/imports/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/imports/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/imports/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/imports/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/init/.gitignore b/tests/end_to_end/candid_rpc/class_api/init/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/init/.gitignore rename to tests/end_to_end/candid_rpc/class_api/init/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/init/dfx.json b/tests/end_to_end/candid_rpc/class_api/init/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/init/dfx.json rename to tests/end_to_end/candid_rpc/class_api/init/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/init/jest.config.js b/tests/end_to_end/candid_rpc/class_api/init/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/init/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/init/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/init/package-lock.json b/tests/end_to_end/candid_rpc/class_api/init/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/init/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/init/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/init/package.json b/tests/end_to_end/candid_rpc/class_api/init/package.json similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/init/package.json rename to tests/end_to_end/candid_rpc/class_api/init/package.json index 5747bb8763..a7a3de8867 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/init/package.json +++ b/tests/end_to_end/candid_rpc/class_api/init/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^1.4.0", - "init_end_to_end_test_functional_syntax": "file:../../functional_syntax/init", + "init_end_to_end_test_functional_api": "file:../../functional_api/init", "jest": "^29.7.0", "ts-jest": "^29.1.5", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/init/src/index.ts b/tests/end_to_end/candid_rpc/class_api/init/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/init/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/init/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/init/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/init/test/pretest.ts similarity index 87% rename from tests/end_to_end/candid_rpc/class_syntax/init/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/init/test/pretest.ts index c77e2c923a..2fef146176 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/init/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/init/test/pretest.ts @@ -4,7 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join('tests', 'end_to_end', 'candid_rpc', 'functional_syntax', 'init') + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'init') ); execSync(`dfx canister uninstall-code init || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/init/test/test.ts b/tests/end_to_end/candid_rpc/class_api/init/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/init/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/init/test/test.ts index a31a392466..f8c34b8849 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/init/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/init/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'init_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'init_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/init'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/init/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/init/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/init/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/init/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/.gitignore b/tests/end_to_end/candid_rpc/class_api/inspect_message/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/inspect_message/.gitignore rename to tests/end_to_end/candid_rpc/class_api/inspect_message/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/dfx.json b/tests/end_to_end/candid_rpc/class_api/inspect_message/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/inspect_message/dfx.json rename to tests/end_to_end/candid_rpc/class_api/inspect_message/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/jest.config.js b/tests/end_to_end/candid_rpc/class_api/inspect_message/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/inspect_message/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/inspect_message/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/package-lock.json b/tests/end_to_end/candid_rpc/class_api/inspect_message/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/inspect_message/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/inspect_message/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/async_await/package.json b/tests/end_to_end/candid_rpc/class_api/inspect_message/package.json similarity index 76% rename from tests/end_to_end/candid_rpc/class_syntax/async_await/package.json rename to tests/end_to_end/candid_rpc/class_api/inspect_message/package.json index 823118717e..5ab64c71e4 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/async_await/package.json +++ b/tests/end_to_end/candid_rpc/class_api/inspect_message/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "async_await_end_to_end_test_functional_syntax": "file:../../functional_syntax/async_await", + "inspect_message_end_to_end_test_functional_api": "file:../../functional_api/inspect_message", "jest": "^29.7.0", "ts-jest": "^29.1.5", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/src/index.ts b/tests/end_to_end/candid_rpc/class_api/inspect_message/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/inspect_message/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/inspect_message/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/inspect_message/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/inspect_message/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/inspect_message/test/pretest.ts index cd21397d54..1c23bd4fca 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/inspect_message/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'inspect_message' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/test/test.ts b/tests/end_to_end/candid_rpc/class_api/inspect_message/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/inspect_message/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/inspect_message/test/test.ts index 3ea68d2476..008e4e4851 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/inspect_message/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'inspect_message_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'inspect_message_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/inspect_message'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/inspect_message/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/inspect_message/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/inspect_message/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/.gitignore b/tests/end_to_end/candid_rpc/class_api/key_value_store/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/key_value_store/.gitignore rename to tests/end_to_end/candid_rpc/class_api/key_value_store/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/dfx.json b/tests/end_to_end/candid_rpc/class_api/key_value_store/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/key_value_store/dfx.json rename to tests/end_to_end/candid_rpc/class_api/key_value_store/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/jest.config.js b/tests/end_to_end/candid_rpc/class_api/key_value_store/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/key_value_store/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/key_value_store/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/package-lock.json b/tests/end_to_end/candid_rpc/class_api/key_value_store/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/key_value_store/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/key_value_store/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/package.json b/tests/end_to_end/candid_rpc/class_api/key_value_store/package.json similarity index 76% rename from tests/end_to_end/candid_rpc/class_syntax/manual_reply/package.json rename to tests/end_to_end/candid_rpc/class_api/key_value_store/package.json index 4c877817f3..fdd0b96eec 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/package.json +++ b/tests/end_to_end/candid_rpc/class_api/key_value_store/package.json @@ -9,7 +9,7 @@ "devDependencies": { "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", - "manual_reply_end_to_end_test_functional_syntax": "file:../../functional_syntax/manual_reply", + "key_value_store_end_to_end_test_functional_api": "file:../../functional_api/key_value_store", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/src/index.ts b/tests/end_to_end/candid_rpc/class_api/key_value_store/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/key_value_store/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/key_value_store/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/key_value_store/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/key_value_store/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/key_value_store/test/pretest.ts index d52444ebf5..0663f8a69c 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/key_value_store/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'key_value_store' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/test/test.ts b/tests/end_to_end/candid_rpc/class_api/key_value_store/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/key_value_store/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/key_value_store/test/test.ts index 00f8c2af3a..bd81480015 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/key_value_store/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'key_value_store_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'key_value_store_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/key_value_store'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/key_value_store/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/key_value_store/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/key_value_store/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/.gitignore b/tests/end_to_end/candid_rpc/class_api/ledger_canister/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ledger_canister/.gitignore rename to tests/end_to_end/candid_rpc/class_api/ledger_canister/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/dfx.json b/tests/end_to_end/candid_rpc/class_api/ledger_canister/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ledger_canister/dfx.json rename to tests/end_to_end/candid_rpc/class_api/ledger_canister/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/jest.config.js b/tests/end_to_end/candid_rpc/class_api/ledger_canister/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ledger_canister/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/ledger_canister/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/package-lock.json b/tests/end_to_end/candid_rpc/class_api/ledger_canister/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ledger_canister/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/ledger_canister/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/ledger_canister/package.json b/tests/end_to_end/candid_rpc/class_api/ledger_canister/package.json new file mode 100644 index 0000000000..e3edc66781 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/ledger_canister/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "ledger_canister_end_to_end_test_functional_api": "file:../../functional_api/ledger_canister", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/src/icp_ledger/ledger.private.did b/tests/end_to_end/candid_rpc/class_api/ledger_canister/src/icp_ledger/ledger.private.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ledger_canister/src/icp_ledger/ledger.private.did rename to tests/end_to_end/candid_rpc/class_api/ledger_canister/src/icp_ledger/ledger.private.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/src/icp_ledger/ledger.public.did b/tests/end_to_end/candid_rpc/class_api/ledger_canister/src/icp_ledger/ledger.public.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ledger_canister/src/icp_ledger/ledger.public.did rename to tests/end_to_end/candid_rpc/class_api/ledger_canister/src/icp_ledger/ledger.public.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/src/ledger_canister/index.ts b/tests/end_to_end/candid_rpc/class_api/ledger_canister/src/ledger_canister/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ledger_canister/src/ledger_canister/index.ts rename to tests/end_to_end/candid_rpc/class_api/ledger_canister/src/ledger_canister/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/ledger_canister/test/pretest.ts similarity index 98% rename from tests/end_to_end/candid_rpc/class_syntax/ledger_canister/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/ledger_canister/test/pretest.ts index 1610f4343c..e8e81f7d93 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/ledger_canister/test/pretest.ts @@ -9,7 +9,7 @@ function pretest(icp_ledger_path: string): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'ledger_canister' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/test/test.ts b/tests/end_to_end/candid_rpc/class_api/ledger_canister/test/test.ts similarity index 81% rename from tests/end_to_end/candid_rpc/class_syntax/ledger_canister/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/ledger_canister/test/test.ts index 88da2a398b..8b80bf0785 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/ledger_canister/test/test.ts @@ -3,9 +3,9 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'ledger_canister_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'ledger_canister_end_to_end_test_functional_api/test/tests'; -import { createActor } from '../test/dfx_generated/ledger_canister'; +import { createActor } from './dfx_generated/ledger_canister'; const ledgerCanister = createActor(getCanisterId('ledger_canister'), { agentOptions: { diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/ledger_canister/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/ledger_canister/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/ledger_canister/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/.gitignore b/tests/end_to_end/candid_rpc/class_api/list_of_lists/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/list_of_lists/.gitignore rename to tests/end_to_end/candid_rpc/class_api/list_of_lists/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/dfx.json b/tests/end_to_end/candid_rpc/class_api/list_of_lists/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/list_of_lists/dfx.json rename to tests/end_to_end/candid_rpc/class_api/list_of_lists/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/jest.config.js b/tests/end_to_end/candid_rpc/class_api/list_of_lists/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/list_of_lists/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/list_of_lists/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/package-lock.json b/tests/end_to_end/candid_rpc/class_api/list_of_lists/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/list_of_lists/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/list_of_lists/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/package.json b/tests/end_to_end/candid_rpc/class_api/list_of_lists/package.json similarity index 77% rename from tests/end_to_end/candid_rpc/class_syntax/list_of_lists/package.json rename to tests/end_to_end/candid_rpc/class_api/list_of_lists/package.json index de637f1f1b..e80a7b8e47 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/package.json +++ b/tests/end_to_end/candid_rpc/class_api/list_of_lists/package.json @@ -10,7 +10,7 @@ "@dfinity/agent": "^0.19.2", "fast-equals": "^5.0.1", "jest": "^29.7.0", - "list_of_lists_end_to_end_test_functional_syntax": "file:../../functional_syntax/list_of_lists", + "list_of_lists_end_to_end_test_functional_api": "file:../../functional_api/list_of_lists", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/src/index.ts b/tests/end_to_end/candid_rpc/class_api/list_of_lists/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/list_of_lists/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/list_of_lists/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/list_of_lists/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/list_of_lists/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/list_of_lists/test/pretest.ts index 4d83a92e0c..a02f728a81 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/list_of_lists/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'list_of_lists' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/test/test.ts b/tests/end_to_end/candid_rpc/class_api/list_of_lists/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/list_of_lists/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/list_of_lists/test/test.ts index 73e38536ae..3488ef974c 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/list_of_lists/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'list_of_lists_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'list_of_lists_end_to_end_test_functional_api/test/tests'; import { createActor } from '../dfx_generated/list_of_lists'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/list_of_lists/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/list_of_lists/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/list_of_lists/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/management_canister/.gitignore b/tests/end_to_end/candid_rpc/class_api/management_canister/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/management_canister/.gitignore rename to tests/end_to_end/candid_rpc/class_api/management_canister/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/management_canister/dfx.json b/tests/end_to_end/candid_rpc/class_api/management_canister/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/management_canister/dfx.json rename to tests/end_to_end/candid_rpc/class_api/management_canister/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/management_canister/jest.config.js b/tests/end_to_end/candid_rpc/class_api/management_canister/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/management_canister/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/management_canister/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/management_canister/package-lock.json b/tests/end_to_end/candid_rpc/class_api/management_canister/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/management_canister/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/management_canister/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/management_canister/package.json b/tests/end_to_end/candid_rpc/class_api/management_canister/package.json new file mode 100644 index 0000000000..69b05244eb --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/management_canister/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "management_canister_end_to_end_test_functional_api": "file:../../functional_api/management_canister", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/management_canister/src/index.ts b/tests/end_to_end/candid_rpc/class_api/management_canister/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/management_canister/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/management_canister/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/management_canister/src/test.wasm b/tests/end_to_end/candid_rpc/class_api/management_canister/src/test.wasm similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/management_canister/src/test.wasm rename to tests/end_to_end/candid_rpc/class_api/management_canister/src/test.wasm diff --git a/tests/end_to_end/candid_rpc/class_syntax/management_canister/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/management_canister/test/pretest.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/management_canister/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/management_canister/test/pretest.ts index 3cd7bd163b..a85114a56e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/management_canister/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/management_canister/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'management_canister' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/management_canister/test/test.ts b/tests/end_to_end/candid_rpc/class_api/management_canister/test/test.ts similarity index 93% rename from tests/end_to_end/candid_rpc/class_syntax/management_canister/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/management_canister/test/test.ts index 0db22d9b55..49996d6cc4 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/management_canister/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/management_canister/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'management_canister_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'management_canister_end_to_end_test_functional_api/test/tests'; import { createActor } from '../test/dfx_generated/management_canister'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/management_canister/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/management_canister/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/management_canister/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/management_canister/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/.gitignore b/tests/end_to_end/candid_rpc/class_api/manual_reply/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/manual_reply/.gitignore rename to tests/end_to_end/candid_rpc/class_api/manual_reply/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/dfx.json b/tests/end_to_end/candid_rpc/class_api/manual_reply/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/manual_reply/dfx.json rename to tests/end_to_end/candid_rpc/class_api/manual_reply/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/jest.config.js b/tests/end_to_end/candid_rpc/class_api/manual_reply/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/manual_reply/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/manual_reply/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/package-lock.json b/tests/end_to_end/candid_rpc/class_api/manual_reply/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/manual_reply/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/manual_reply/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/package.json b/tests/end_to_end/candid_rpc/class_api/manual_reply/package.json similarity index 77% rename from tests/end_to_end/candid_rpc/class_syntax/heartbeat/package.json rename to tests/end_to_end/candid_rpc/class_api/manual_reply/package.json index 4db362463b..5181c56182 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/package.json +++ b/tests/end_to_end/candid_rpc/class_api/manual_reply/package.json @@ -8,8 +8,8 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "heartbeat_end_to_end_test_functional_syntax": "file:../../functional_syntax/heartbeat", "jest": "^29.7.0", + "manual_reply_end_to_end_test_functional_api": "file:../../functional_api/manual_reply", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/src/index.ts b/tests/end_to_end/candid_rpc/class_api/manual_reply/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/manual_reply/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/manual_reply/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/manual_reply/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/manual_reply/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/manual_reply/test/pretest.ts index c92669a271..6249f44c3e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/manual_reply/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'manual_reply' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/test/test.ts b/tests/end_to_end/candid_rpc/class_api/manual_reply/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/manual_reply/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/manual_reply/test/test.ts index 6664eb4b18..9c4d906ea3 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/manual_reply/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'manual_reply_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'manual_reply_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/manual_reply'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/manual_reply/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/manual_reply/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/manual_reply/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/blob_array/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/package.json similarity index 76% rename from tests/end_to_end/candid_rpc/class_syntax/blob_array/package.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/package.json index f7b506e2dc..7546ed8c61 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/blob_array/package.json +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "blob_array_end_to_end_test_functional_syntax": "file:../../functional_syntax/blob_array", + "calc_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/calc", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/src/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/test/pretest.ts index d2c9f68534..aadb3fac58 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'calc' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/test/test.ts index 5a9514548a..21609c4cd8 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'calc_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'calc_end_to_end_test_functional_api/test/tests'; // @ts-ignore import { createActor } from './dfx_generated/calc'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/calc/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/package.json new file mode 100644 index 0000000000..5c0ae092f8 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "counter_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/counter", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/src/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/test/pretest.ts index 7fcaf336cf..13a647d5d2 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'counter' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/test/test.ts index 22201eea63..dfabc6edb3 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'counter_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'counter_end_to_end_test_functional_api/test/tests'; // @ts-ignore import { createActor } from './dfx_generated/counter'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/counter/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/package.json similarity index 76% rename from tests/end_to_end/candid_rpc/class_syntax/call_raw/package.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/package.json index a9979f690f..57e936c5f4 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/call_raw/package.json +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "call_raw_end_to_end_test_functional_syntax": "file:../../functional_syntax/call_raw", + "echo_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/echo", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/src/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/test/pretest.ts index 2b2b3a7f18..ffb196fc11 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'echo' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/test/test.ts index 5a23046d68..ea8b5fc547 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'echo_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'echo_end_to_end_test_functional_api/test/tests'; // @ts-ignore import { createActor } from './dfx_generated/echo'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/echo/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/package.json similarity index 74% rename from tests/end_to_end/candid_rpc/class_syntax/candid_encoding/package.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/package.json index 68cea2e6f9..80c7b35deb 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/package.json +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "candid_encoding_end_to_end_test_functional_syntax": "file:../../functional_syntax/candid_encoding", + "factorial_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/factorial", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/src/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/test/pretest.ts index cfd7616f28..17fc797936 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'factorial' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/test/test.ts index 13b2144c60..4b200b507c 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'factorial_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'factorial_end_to_end_test_functional_api/test/tests'; // @ts-ignore import { createActor } from './dfx_generated/factorial'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/factorial/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/package.json new file mode 100644 index 0000000000..f748d678d8 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "hello-world_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/hello-world", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/src/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/test/pretest.ts index 75656f3dde..10ab983f4c 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'hello-world' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/test/test.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/test/test.ts index 9bd2b45606..ac76f5c82b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'hello-world_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'hello-world_end_to_end_test_functional_api/test/tests'; // @ts-ignore import { createActor } from './dfx_generated/hello_world'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello-world/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/NOTICE b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/NOTICE rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/NOTICE diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/package.json similarity index 92% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/package.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/package.json index 2161574997..8c1b312fe5 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/package.json +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/package.json @@ -27,7 +27,7 @@ "buffer": "^6.0.3", "copy-webpack-plugin": "^11.0.0", "events": "^3.3.0", - "hello_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/hello", + "hello_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/hello", "html-webpack-plugin": "^5.5.0", "jest": "^29.7.0", "process": "^0.11.10", diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello_assets/assets/favicon.ico b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello_assets/assets/favicon.ico similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello_assets/assets/favicon.ico rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello_assets/assets/favicon.ico diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello_assets/assets/logo.png b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello_assets/assets/logo.png similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello_assets/assets/logo.png rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello_assets/assets/logo.png diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello_assets/assets/main.css b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello_assets/assets/main.css similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello_assets/assets/main.css rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello_assets/assets/main.css diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello_assets/assets/sample-asset.txt b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello_assets/assets/sample-asset.txt similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello_assets/assets/sample-asset.txt rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello_assets/assets/sample-asset.txt diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello_assets/src/index.html b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello_assets/src/index.html similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello_assets/src/index.html rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello_assets/src/index.html diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello_assets/src/index.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello_assets/src/index.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/src/hello_assets/src/index.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/src/hello_assets/src/index.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/test/pretest.ts index 4366fce8a1..6c57e8e162 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'hello' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/test/test.ts index 282acb79d6..48a4dbce34 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'hello_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'hello_end_to_end_test_functional_api/test/tests'; // @ts-ignore import { createActor } from '../dfx_generated/hello'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/webpack.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/webpack.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/webpack.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/hello/webpack.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/NOTICE b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/NOTICE rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/NOTICE diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/package.json similarity index 83% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/package.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/package.json index 9620cd4c86..ec16a80063 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/package.json +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/package.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.0", - "http_counter_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/http_counter", + "http_counter_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/http_counter", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/src/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/test/pretest.ts index c380ee591e..8cbe4bbabd 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'http_counter' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/test/test.ts similarity index 85% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/test/test.ts index 3e90b5936f..a1691884c4 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/test/test.ts @@ -1,4 +1,4 @@ import { runTests } from 'azle/test'; -import { getTests } from 'http_counter_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'http_counter_end_to_end_test_functional_api/test/tests'; runTests(getTests()); diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/http_counter/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/NOTICE b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/NOTICE rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/NOTICE diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/package.json similarity index 91% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/package.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/package.json index ed819a39e6..be166b56cb 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/package.json +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/package.json @@ -28,7 +28,7 @@ "events": "^3.3.0", "html-webpack-plugin": "^5.5.0", "jest": "^29.7.0", - "minimal-counter-dapp_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/minimal-counter-dapp", + "minimal-counter-dapp_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/minimal-counter-dapp", "process": "^0.11.10", "stream-browserify": "^3.0.0", "terser-webpack-plugin": "^5.3.0", diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/logo.png b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/logo.png similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/logo.png rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/logo.png diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/main.css b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/main.css similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/main.css rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/main.css diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/sample-asset.txt b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/sample-asset.txt similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/sample-asset.txt rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/sample-asset.txt diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.html b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.html similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.html rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.html diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/test/pretest.ts index 406fe18a7f..e75efe6bf5 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'minimal-counter-dapp' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/test/test.ts similarity index 93% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/test/test.ts index ab57459241..3039433283 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'minimal-counter-dapp_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'minimal-counter-dapp_end_to_end_test_functional_api/test/tests'; // @ts-ignore import { createActor } from '../src/declarations/minimal_dapp'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/webpack.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/webpack.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/webpack.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/minimal-counter-dapp/webpack.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/NOTICE b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/NOTICE rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/NOTICE diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/package.json new file mode 100644 index 0000000000..c0288b99c0 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "persistent-storage_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/persistent-storage", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/src/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/test/pretest.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/test/pretest.ts index 83e09861fb..10d064ad6e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'persistent-storage' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/test/test.ts index e704300eec..fa92ebfc6a 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'persistent-storage_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'persistent-storage_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/persistent_storage'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/persistent-storage/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/NOTICE b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/NOTICE rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/NOTICE diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/package.json similarity index 92% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/package.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/package.json index be8d42634e..7bbb21a96f 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/package.json +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/package.json @@ -19,7 +19,7 @@ "events": "^3.3.0", "html-webpack-plugin": "^5.5.0", "jest": "^29.7.0", - "phone-book_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/phone-book", + "phone-book_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/phone-book", "process": "^0.11.10", "stream-browserify": "^3.0.0", "style-loader": "^3.3.0", diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/declarations/phone_book/index.d.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/declarations/phone_book/index.d.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/declarations/phone_book/index.d.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/declarations/phone_book/index.d.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/declarations/phone_book/index.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/declarations/phone_book/index.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/declarations/phone_book/index.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/declarations/phone_book/index.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.d.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.d.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.d.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.d.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/phone_book/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/phone_book/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/phone_book/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/phone_book/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/www/assets/sample-asset.txt b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/www/assets/sample-asset.txt similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/www/assets/sample-asset.txt rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/www/assets/sample-asset.txt diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/www/src/index.html b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/www/src/index.html similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/www/src/index.html rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/www/src/index.html diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/www/src/index.jsx b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/www/src/index.jsx similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/src/www/src/index.jsx rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/src/www/src/index.jsx diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/test/pretest.ts index 01a84bce45..4e5ccf4027 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'phone-book' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/test/test.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/test/test.ts index ebbfbf78fb..8c2a37d44f 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'phone-book_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'phone-book_end_to_end_test_functional_api/test/tests'; import { createActor } from '../src/declarations/phone_book'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/tsconfig.webpack.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/tsconfig.webpack.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/tsconfig.webpack.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/tsconfig.webpack.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/webpack.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/webpack.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/webpack.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/phone-book/webpack.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/package.json new file mode 100644 index 0000000000..61e0381020 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "quicksort_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/quicksort", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/src/comparison.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/src/comparison.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/src/comparison.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/src/comparison.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/src/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/src/quicksort.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/src/quicksort.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/src/quicksort.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/src/quicksort.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/test/pretest.ts index 1f2614f33b..e01355b5e5 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'quicksort' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/test/test.ts index 7251839aa4..374012c283 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'quicksort_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'quicksort_end_to_end_test_functional_api/test/tests'; // @ts-ignore import { createActor } from './dfx_generated/quicksort'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/quicksort/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/package.json new file mode 100644 index 0000000000..c4d2fdfd33 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "simple-to-do_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/simple-to-do", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/src/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/test/pretest.ts index 9acb3630e3..6ccebb70f4 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'simple-to-do' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/test/test.ts index 8604ae8f62..bd0a144178 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'simple-to-do_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'simple-to-do_end_to_end_test_functional_api/test/tests'; // @ts-ignore import { createActor } from './dfx_generated/simple_to_do'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/simple-to-do/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/NOTICE b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/NOTICE rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/NOTICE diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/package.json similarity index 91% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/package.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/package.json index e346c03a78..478b0e7d1d 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/package.json +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/package.json @@ -22,7 +22,7 @@ "process": "^0.11.10", "stream-browserify": "^3.0.0", "style-loader": "^3.3.0", - "superheroes_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/superheroes", + "superheroes_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/superheroes", "terser-webpack-plugin": "^5.3.0", "ts-jest": "^29.1.4", "ts-loader": "^9.4.0", diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/declarations/index.d.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/declarations/index.d.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/declarations/index.d.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/declarations/index.d.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/declarations/index.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/declarations/index.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/declarations/index.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/declarations/index.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/declarations/superheroes.did b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/declarations/superheroes.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/declarations/superheroes.did rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/declarations/superheroes.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/declarations/superheroes.did.d.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/declarations/superheroes.did.d.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/declarations/superheroes.did.d.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/declarations/superheroes.did.d.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/declarations/superheroes.did.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/declarations/superheroes.did.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/declarations/superheroes.did.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/declarations/superheroes.did.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/superheroes/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/superheroes/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/superheroes/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/superheroes/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/www/components/create.jsx b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/www/components/create.jsx similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/www/components/create.jsx rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/www/components/create.jsx diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/www/components/delete.jsx b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/www/components/delete.jsx similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/www/components/delete.jsx rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/www/components/delete.jsx diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/www/components/read.jsx b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/www/components/read.jsx similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/www/components/read.jsx rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/www/components/read.jsx diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/www/components/update.jsx b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/www/components/update.jsx similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/www/components/update.jsx rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/www/components/update.jsx diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/www/index.html b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/www/index.html similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/www/index.html rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/www/index.html diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/www/index.jsx b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/www/index.jsx similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/src/www/index.jsx rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/src/www/index.jsx diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/test/pretest.ts index f8124d9afe..dc6e6a9ebe 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'superheroes' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/test/test.ts index 7d30819963..6c6f1e7b17 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'superheroes_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'superheroes_end_to_end_test_functional_api/test/tests'; import { createActor } from '../src/declarations'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/tsconfig.webpack.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/tsconfig.webpack.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/tsconfig.webpack.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/tsconfig.webpack.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/webpack.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/webpack.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/webpack.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/superheroes/webpack.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/package.json similarity index 73% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/package.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/package.json index 557d243375..5a9210417f 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/package.json +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/package.json @@ -10,7 +10,7 @@ "devDependencies": { "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", - "threshold_ecdsa_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/threshold_ecdsa", + "threshold_ecdsa_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/threshold_ecdsa", "ts-jest": "^29.1.4", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/src/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/test/pretest.ts index 373d1fa9b0..5d94d0d187 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'threshold_ecdsa' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/test/test.ts similarity index 96% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/test/test.ts index 5feb248604..26cf00f412 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'threshold_ecdsa_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'threshold_ecdsa_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/threshold_ecdsa'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/threshold_ecdsa/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/.gitignore b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/.gitignore rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/README.md b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/README.md rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/README.md diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/dfx.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/dfx.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/jest.config.js b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/package-lock.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/package.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/package.json similarity index 77% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/package.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/package.json index 7abaea0f4e..f14f314030 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/package.json +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/package.json @@ -13,6 +13,6 @@ "ts-jest": "^29.1.4", "tsx": "^4.15.7", "typescript": "^5.2.2", - "whoami_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/whoami" + "whoami_end_to_end_test_functional_api": "file:../../../functional_api/motoko_examples/whoami" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/src/index.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/test/pretest.ts similarity index 96% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/test/pretest.ts index 2bbf29126f..f69c763516 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/test/pretest.ts @@ -13,7 +13,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'motoko_examples', 'whoami' ) diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/test/test.ts b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/test/test.ts similarity index 85% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/test/test.ts index 3a58c58d2e..a71cc44b96 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/test/test.ts @@ -3,7 +3,7 @@ import { callingIdentity, canisterId, getTests -} from 'whoami_end_to_end_test_functional_syntax/test/tests'; +} from 'whoami_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/whoami'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/motoko_examples/whoami/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/new/.gitignore b/tests/end_to_end/candid_rpc/class_api/new/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/new/.gitignore rename to tests/end_to_end/candid_rpc/class_api/new/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/new/jest.config.js b/tests/end_to_end/candid_rpc/class_api/new/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/new/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/new/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/new/package-lock.json b/tests/end_to_end/candid_rpc/class_api/new/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/new/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/new/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/package.json b/tests/end_to_end/candid_rpc/class_api/new/package.json similarity index 86% rename from tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/package.json rename to tests/end_to_end/candid_rpc/class_api/new/package.json index 6141803118..59cb826316 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/package.json +++ b/tests/end_to_end/candid_rpc/class_api/new/package.json @@ -1,5 +1,5 @@ { - "name": "new_end_to_end_test_functional_syntax", + "name": "new_end_to_end_test_functional_api", "scripts": { "test": "if [ \"$AZLE_TEST_RUN_ON_RELEASE\" == \"true\" ]; then tsx test/test.ts; else echo 'Skipping pretests'; fi" }, diff --git a/tests/end_to_end/candid_rpc/class_syntax/new/test/test.ts b/tests/end_to_end/candid_rpc/class_api/new/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/new/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/new/test/test.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/new/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/new/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/new/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/new/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/.gitignore b/tests/end_to_end/candid_rpc/class_api/new_candid_rpc/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/.gitignore rename to tests/end_to_end/candid_rpc/class_api/new_candid_rpc/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/jest.config.js b/tests/end_to_end/candid_rpc/class_api/new_candid_rpc/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/new_candid_rpc/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/package-lock.json b/tests/end_to_end/candid_rpc/class_api/new_candid_rpc/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/new_candid_rpc/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/new/package.json b/tests/end_to_end/candid_rpc/class_api/new_candid_rpc/package.json similarity index 86% rename from tests/end_to_end/candid_rpc/class_syntax/new/package.json rename to tests/end_to_end/candid_rpc/class_api/new_candid_rpc/package.json index 6141803118..59cb826316 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/new/package.json +++ b/tests/end_to_end/candid_rpc/class_api/new_candid_rpc/package.json @@ -1,5 +1,5 @@ { - "name": "new_end_to_end_test_functional_syntax", + "name": "new_end_to_end_test_functional_api", "scripts": { "test": "if [ \"$AZLE_TEST_RUN_ON_RELEASE\" == \"true\" ]; then tsx test/test.ts; else echo 'Skipping pretests'; fi" }, diff --git a/tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/test/test.ts b/tests/end_to_end/candid_rpc/class_api/new_candid_rpc/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/new_candid_rpc/test/test.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/new_candid_rpc/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/new_candid_rpc/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/.gitignore b/tests/end_to_end/candid_rpc/class_api/notify_raw/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/notify_raw/.gitignore rename to tests/end_to_end/candid_rpc/class_api/notify_raw/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/dfx.json b/tests/end_to_end/candid_rpc/class_api/notify_raw/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/notify_raw/dfx.json rename to tests/end_to_end/candid_rpc/class_api/notify_raw/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/jest.config.js b/tests/end_to_end/candid_rpc/class_api/notify_raw/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/notify_raw/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/notify_raw/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/package-lock.json b/tests/end_to_end/candid_rpc/class_api/notify_raw/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/notify_raw/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/notify_raw/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/null_example/package.json b/tests/end_to_end/candid_rpc/class_api/notify_raw/package.json similarity index 77% rename from tests/end_to_end/candid_rpc/functional_syntax/null_example/package.json rename to tests/end_to_end/candid_rpc/class_api/notify_raw/package.json index d2cd5d4bf3..2b5c2a3c12 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/null_example/package.json +++ b/tests/end_to_end/candid_rpc/class_api/notify_raw/package.json @@ -1,5 +1,4 @@ { - "name": "null_example_end_to_end_test_functional_syntax", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" @@ -10,6 +9,7 @@ "devDependencies": { "@dfinity/agent": "0.11.1", "jest": "^29.7.0", + "notify_raw_end_to_end_test_functional_api": "file:../../functional_api/notify_raw", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/src/canister1/index.ts b/tests/end_to_end/candid_rpc/class_api/notify_raw/src/canister1/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/notify_raw/src/canister1/index.ts rename to tests/end_to_end/candid_rpc/class_api/notify_raw/src/canister1/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/src/canister2/index.ts b/tests/end_to_end/candid_rpc/class_api/notify_raw/src/canister2/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/notify_raw/src/canister2/index.ts rename to tests/end_to_end/candid_rpc/class_api/notify_raw/src/canister2/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/notify_raw/test/pretest.ts similarity index 96% rename from tests/end_to_end/candid_rpc/class_syntax/notify_raw/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/notify_raw/test/pretest.ts index 8f59bdd6e0..4da4529fac 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/notify_raw/test/pretest.ts @@ -9,7 +9,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'notify_raw' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/test/test.ts b/tests/end_to_end/candid_rpc/class_api/notify_raw/test/test.ts similarity index 96% rename from tests/end_to_end/candid_rpc/class_syntax/notify_raw/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/notify_raw/test/test.ts index 7b94bd256c..42bd34ffbd 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/notify_raw/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'notify_raw_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'notify_raw_end_to_end_test_functional_api/test/tests'; import { createActor as createActorCanister1 } from './dfx_generated/canister1'; import { createActor as createActorCanister2 } from './dfx_generated/canister2'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/notify_raw/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/notify_raw/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/notify_raw/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/null_example/.gitignore b/tests/end_to_end/candid_rpc/class_api/null_example/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/null_example/.gitignore rename to tests/end_to_end/candid_rpc/class_api/null_example/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/null_example/dfx.json b/tests/end_to_end/candid_rpc/class_api/null_example/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/null_example/dfx.json rename to tests/end_to_end/candid_rpc/class_api/null_example/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/null_example/jest.config.js b/tests/end_to_end/candid_rpc/class_api/null_example/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/null_example/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/null_example/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/null_example/package-lock.json b/tests/end_to_end/candid_rpc/class_api/null_example/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/null_example/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/null_example/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/package.json b/tests/end_to_end/candid_rpc/class_api/null_example/package.json similarity index 77% rename from tests/end_to_end/candid_rpc/class_syntax/recursion/package.json rename to tests/end_to_end/candid_rpc/class_api/null_example/package.json index c59ef3fa12..3d6e474f63 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/recursion/package.json +++ b/tests/end_to_end/candid_rpc/class_api/null_example/package.json @@ -9,7 +9,7 @@ "devDependencies": { "@dfinity/agent": "0.11.1", "jest": "^29.7.0", - "recursion_end_to_end_test_functional_syntax": "file:../../functional_syntax/recursion", + "null_example_end_to_end_test_functional_api": "file:../../functional_api/null_example", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/null_example/src/index.ts b/tests/end_to_end/candid_rpc/class_api/null_example/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/null_example/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/null_example/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/null_example/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/null_example/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/null_example/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/null_example/test/pretest.ts index efc6908da2..1bb5250939 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/null_example/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/null_example/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'null_example' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/null_example/test/test.ts b/tests/end_to_end/candid_rpc/class_api/null_example/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/null_example/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/null_example/test/test.ts index 9b1806e1b8..0aaeb16204 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/null_example/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/null_example/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'null_example_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'null_example_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/null_example'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/null_example/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/null_example/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/null_example/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/null_example/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/optional_types/.gitignore b/tests/end_to_end/candid_rpc/class_api/optional_types/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/optional_types/.gitignore rename to tests/end_to_end/candid_rpc/class_api/optional_types/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/optional_types/dfx.json b/tests/end_to_end/candid_rpc/class_api/optional_types/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/optional_types/dfx.json rename to tests/end_to_end/candid_rpc/class_api/optional_types/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/optional_types/jest.config.js b/tests/end_to_end/candid_rpc/class_api/optional_types/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/optional_types/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/optional_types/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/optional_types/package-lock.json b/tests/end_to_end/candid_rpc/class_api/optional_types/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/optional_types/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/optional_types/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/optional_types/package.json b/tests/end_to_end/candid_rpc/class_api/optional_types/package.json similarity index 78% rename from tests/end_to_end/candid_rpc/class_syntax/optional_types/package.json rename to tests/end_to_end/candid_rpc/class_api/optional_types/package.json index a9d6d3b530..9c960932e9 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/optional_types/package.json +++ b/tests/end_to_end/candid_rpc/class_api/optional_types/package.json @@ -11,7 +11,7 @@ "@types/node-fetch": "2.6.1", "jest": "^29.7.0", "node-fetch": "2.6.7", - "optional_types_end_to_end_test_functional_syntax": "file:../../functional_syntax/optional_types", + "optional_types_end_to_end_test_functional_api": "file:../../functional_api/optional_types", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/optional_types/src/index.ts b/tests/end_to_end/candid_rpc/class_api/optional_types/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/optional_types/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/optional_types/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/optional_types/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/optional_types/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/optional_types/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/optional_types/test/pretest.ts index 4045a3e065..828c87769e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/optional_types/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/optional_types/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'optional_types' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/optional_types/test/test.ts b/tests/end_to_end/candid_rpc/class_api/optional_types/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/optional_types/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/optional_types/test/test.ts index 2ec6370b7a..9bfab98964 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/optional_types/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/optional_types/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'optional_types_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'optional_types_end_to_end_test_functional_api/test/tests'; import { createActor } from '../test/dfx_generated/optional_types'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/optional_types/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/optional_types/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/optional_types/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/optional_types/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/.gitignore b/tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/.gitignore rename to tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/dfx.json b/tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/dfx.json rename to tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/jest.config.js b/tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/package-lock.json b/tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/package.json b/tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/package.json similarity index 76% rename from tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/package.json rename to tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/package.json index 2982fe9b14..40fb483fab 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/package.json +++ b/tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/package.json @@ -10,7 +10,7 @@ "@dfinity/agent": "0.11.1", "decode-utf8": "1.0.1", "jest": "^29.7.0", - "outgoing_http_requests_end_to_end_test_functional_syntax": "file:../../functional_syntax/outgoing_http_requests", + "outgoing_http_requests_end_to_end_test_functional_api": "file:../../functional_api/outgoing_http_requests", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2", diff --git a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/src/index.ts b/tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/test/pretest.ts index ef62921e39..adc14c40c3 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'outgoing_http_requests' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/test/test.ts b/tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/test/test.ts similarity index 93% rename from tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/test/test.ts index 09b5b4a328..b358d2692e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'outgoing_http_requests_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'outgoing_http_requests_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/outgoing_http_requests'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/outgoing_http_requests/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/.gitignore b/tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/.gitignore rename to tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/dfx.json b/tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/dfx.json rename to tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/jest.config.js b/tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/package-lock.json b/tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/package.json b/tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/package.json similarity index 74% rename from tests/end_to_end/candid_rpc/class_syntax/inspect_message/package.json rename to tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/package.json index 6e7f69ab1f..5d70c5bc82 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/package.json +++ b/tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/package.json @@ -8,8 +8,8 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "inspect_message_end_to_end_test_functional_syntax": "file:../../functional_syntax/inspect_message", "jest": "^29.7.0", + "pre_and_post_upgrade_end_to_end_test_functional_api": "file:../../functional_api/pre_and_post_upgrade", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/src/index.ts b/tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/test/pretest.ts index a2323ff5fe..19c9b06a68 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'pre_and_post_upgrade' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/test/test.ts b/tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/test/test.ts similarity index 93% rename from tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/test/test.ts index db56311ca0..66468bccea 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'pre_and_post_upgrade_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'pre_and_post_upgrade_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/pre_and_post_upgrade'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/pre_and_post_upgrade/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/.gitignore b/tests/end_to_end/candid_rpc/class_api/primitive_types/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/primitive_types/.gitignore rename to tests/end_to_end/candid_rpc/class_api/primitive_types/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/dfx.json b/tests/end_to_end/candid_rpc/class_api/primitive_types/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/primitive_types/dfx.json rename to tests/end_to_end/candid_rpc/class_api/primitive_types/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/jest.config.js b/tests/end_to_end/candid_rpc/class_api/primitive_types/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/primitive_types/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/primitive_types/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/package-lock.json b/tests/end_to_end/candid_rpc/class_api/primitive_types/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/primitive_types/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/primitive_types/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/primitive_types/package.json b/tests/end_to_end/candid_rpc/class_api/primitive_types/package.json new file mode 100644 index 0000000000..f7b18b483a --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/primitive_types/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "primitive_types_end_to_end_test_functional_api": "file:../../functional_api/primitive_types", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/src/index.ts b/tests/end_to_end/candid_rpc/class_api/primitive_types/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/primitive_types/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/primitive_types/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/primitive_types/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/primitive_types/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/primitive_types/test/pretest.ts index d14cc9e0be..018ef3e522 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/primitive_types/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'primitive_types' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/test/test.ts b/tests/end_to_end/candid_rpc/class_api/primitive_types/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/primitive_types/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/primitive_types/test/test.ts index 5bda6eeb3c..a0a198bdb2 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/primitive_types/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'primitive_types_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'primitive_types_end_to_end_test_functional_api/test/tests'; import { createActor } from '../test/dfx_generated/primitive_types'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/primitive_types/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/primitive_types/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/primitive_types/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/principal/.gitignore b/tests/end_to_end/candid_rpc/class_api/principal/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/principal/.gitignore rename to tests/end_to_end/candid_rpc/class_api/principal/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/principal/dfx.json b/tests/end_to_end/candid_rpc/class_api/principal/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/principal/dfx.json rename to tests/end_to_end/candid_rpc/class_api/principal/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/principal/jest.config.js b/tests/end_to_end/candid_rpc/class_api/principal/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/principal/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/principal/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/principal/package-lock.json b/tests/end_to_end/candid_rpc/class_api/principal/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/principal/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/principal/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/ic_api/package.json b/tests/end_to_end/candid_rpc/class_api/principal/package.json similarity index 78% rename from tests/end_to_end/candid_rpc/class_syntax/ic_api/package.json rename to tests/end_to_end/candid_rpc/class_api/principal/package.json index a982fd242a..c731cc064e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ic_api/package.json +++ b/tests/end_to_end/candid_rpc/class_api/principal/package.json @@ -8,8 +8,8 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "ic_api_end_to_end_test_functional_syntax": "file:../../functional_syntax/ic_api", "jest": "^29.7.0", + "principal_end_to_end_test_functional_api": "file:../../functional_api/principal", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/principal/src/index.ts b/tests/end_to_end/candid_rpc/class_api/principal/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/principal/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/principal/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/principal/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/principal/test/pretest.ts similarity index 74% rename from tests/end_to_end/candid_rpc/class_syntax/principal/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/principal/test/pretest.ts index a4bc1495d4..f0a2aa61a5 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/principal/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/principal/test/pretest.ts @@ -4,13 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join( - 'tests', - 'end_to_end', - 'candid_rpc', - 'functional_syntax', - 'principal' - ) + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'principal') ); execSync(`dfx canister uninstall-code principal || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/principal/test/test.ts b/tests/end_to_end/candid_rpc/class_api/principal/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/principal/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/principal/test/test.ts index 20acf1d867..d58564ebb6 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/principal/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/principal/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'principal_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'principal_end_to_end_test_functional_api/test/tests'; import { createActor } from '../test/dfx_generated/principal'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/principal/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/principal/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/principal/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/principal/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/query/.gitignore b/tests/end_to_end/candid_rpc/class_api/query/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/query/.gitignore rename to tests/end_to_end/candid_rpc/class_api/query/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/query/dfx.json b/tests/end_to_end/candid_rpc/class_api/query/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/query/dfx.json rename to tests/end_to_end/candid_rpc/class_api/query/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/query/jest.config.js b/tests/end_to_end/candid_rpc/class_api/query/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/query/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/query/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/query/package-lock.json b/tests/end_to_end/candid_rpc/class_api/query/package-lock.json similarity index 99% rename from tests/end_to_end/candid_rpc/class_syntax/query/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/query/package-lock.json index f82a49ad54..463fe10015 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/query/package-lock.json +++ b/tests/end_to_end/candid_rpc/class_api/query/package-lock.json @@ -10,7 +10,7 @@ "devDependencies": { "@dfinity/agent": "0.19.2", "jest": "^29.7.0", - "query_end_to_end_test_functional_syntax": "file:../../functional_syntax/query", + "query_end_to_end_test_functional_api": "file:../../functional_api/query", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" @@ -42,9 +42,22 @@ "typescript": "5.2.2" } }, + "../../functional_api/query": { + "dev": true, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "0.19.2", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } + }, "../../functional_syntax/query": { "name": "query_end_to_end_test_functional_syntax", - "dev": true, + "extraneous": true, "dependencies": { "azle": "0.22.0" }, @@ -5210,8 +5223,8 @@ "node": ">=6.0.0" } }, - "node_modules/query_end_to_end_test_functional_syntax": { - "resolved": "../../functional_syntax/query", + "node_modules/query_end_to_end_test_functional_api": { + "resolved": "../../functional_api/query", "link": true }, "node_modules/randombytes": { @@ -10291,11 +10304,11 @@ "resolved": "https://registry.npmjs.org/pvutils/-/pvutils-1.1.3.tgz", "integrity": "sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ==" }, - "query_end_to_end_test_functional_syntax": { - "version": "file:../../functional_syntax/query", + "query_end_to_end_test_functional_api": { + "version": "file:../../functional_api/query", "requires": { "@dfinity/agent": "0.19.2", - "azle": "0.22.0", + "azle": "0.23.0", "jest": "^29.7.0", "ts-jest": "^29.1.4", "tsx": "^4.15.7", diff --git a/tests/end_to_end/candid_rpc/class_syntax/query/package.json b/tests/end_to_end/candid_rpc/class_api/query/package.json similarity index 78% rename from tests/end_to_end/candid_rpc/class_syntax/query/package.json rename to tests/end_to_end/candid_rpc/class_api/query/package.json index 3a6f5b3743..8df9558cd6 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/query/package.json +++ b/tests/end_to_end/candid_rpc/class_api/query/package.json @@ -9,7 +9,7 @@ "devDependencies": { "@dfinity/agent": "0.19.2", "jest": "^29.7.0", - "query_end_to_end_test_functional_syntax": "file:../../functional_syntax/query", + "query_end_to_end_test_functional_api": "file:../../functional_api/query", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/query/src/index.ts b/tests/end_to_end/candid_rpc/class_api/query/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/query/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/query/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/query/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/query/test/pretest.ts similarity index 84% rename from tests/end_to_end/candid_rpc/class_syntax/query/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/query/test/pretest.ts index 51347b9001..50d1d83bc6 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/query/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/query/test/pretest.ts @@ -4,7 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join('tests', 'end_to_end', 'candid_rpc', 'functional_syntax', 'query') + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'query') ); execSync(`dfx canister uninstall-code query || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/query/test/test.ts b/tests/end_to_end/candid_rpc/class_api/query/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/query/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/query/test/test.ts index bb5b49d66b..abbc999a60 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/query/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/query/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'query_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'query_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/query'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/query/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/query/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/query/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/query/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/randomness/.gitignore b/tests/end_to_end/candid_rpc/class_api/randomness/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/randomness/.gitignore rename to tests/end_to_end/candid_rpc/class_api/randomness/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/randomness/dfx.json b/tests/end_to_end/candid_rpc/class_api/randomness/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/randomness/dfx.json rename to tests/end_to_end/candid_rpc/class_api/randomness/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/randomness/jest.config.js b/tests/end_to_end/candid_rpc/class_api/randomness/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/randomness/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/randomness/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/randomness/package-lock.json b/tests/end_to_end/candid_rpc/class_api/randomness/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/randomness/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/randomness/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/randomness/package.json b/tests/end_to_end/candid_rpc/class_api/randomness/package.json new file mode 100644 index 0000000000..0807bb6e05 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/randomness/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "0.11.1", + "jest": "^29.7.0", + "randomness_end_to_end_test_functional_api": "file:../../functional_api/randomness", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/randomness/src/index.ts b/tests/end_to_end/candid_rpc/class_api/randomness/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/randomness/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/randomness/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/randomness/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/randomness/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/randomness/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/randomness/test/pretest.ts index d25bec3e71..dad4030803 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/randomness/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/randomness/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'randomness' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/randomness/test/test.ts b/tests/end_to_end/candid_rpc/class_api/randomness/test/test.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/randomness/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/randomness/test/test.ts index c06f5c80fb..e3ae2c5d12 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/randomness/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/randomness/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'randomness_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'randomness_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/randomness'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/randomness/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/randomness/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/randomness/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/randomness/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/.gitignore b/tests/end_to_end/candid_rpc/class_api/recursion/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/recursion/.gitignore rename to tests/end_to_end/candid_rpc/class_api/recursion/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/dfx.json b/tests/end_to_end/candid_rpc/class_api/recursion/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/recursion/dfx.json rename to tests/end_to_end/candid_rpc/class_api/recursion/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/jest.config.js b/tests/end_to_end/candid_rpc/class_api/recursion/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/recursion/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/recursion/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/package-lock.json b/tests/end_to_end/candid_rpc/class_api/recursion/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/recursion/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/recursion/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/package.json b/tests/end_to_end/candid_rpc/class_api/recursion/package.json similarity index 78% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/package.json rename to tests/end_to_end/candid_rpc/class_api/recursion/package.json index d0bc47fb29..e30e781c35 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/package.json +++ b/tests/end_to_end/candid_rpc/class_api/recursion/package.json @@ -1,5 +1,4 @@ { - "name": "simple_erc20_end_to_end_test_functional_syntax", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" @@ -10,6 +9,7 @@ "devDependencies": { "@dfinity/agent": "0.11.1", "jest": "^29.7.0", + "recursion_end_to_end_test_functional_api": "file:../../functional_api/recursion", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/src/recursion/index.ts b/tests/end_to_end/candid_rpc/class_api/recursion/src/recursion/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/recursion/src/recursion/index.ts rename to tests/end_to_end/candid_rpc/class_api/recursion/src/recursion/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/src/recursive_canister/index.did b/tests/end_to_end/candid_rpc/class_api/recursion/src/recursive_canister/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/recursion/src/recursive_canister/index.did rename to tests/end_to_end/candid_rpc/class_api/recursion/src/recursive_canister/index.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/src/recursive_canister/index.ts b/tests/end_to_end/candid_rpc/class_api/recursion/src/recursive_canister/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/recursion/src/recursive_canister/index.ts rename to tests/end_to_end/candid_rpc/class_api/recursion/src/recursive_canister/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/src/recursive_canister/types.ts b/tests/end_to_end/candid_rpc/class_api/recursion/src/recursive_canister/types.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/recursion/src/recursive_canister/types.ts rename to tests/end_to_end/candid_rpc/class_api/recursion/src/recursive_canister/types.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/recursion/test/pretest.ts similarity index 85% rename from tests/end_to_end/candid_rpc/class_syntax/recursion/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/recursion/test/pretest.ts index 78c3814b29..a3af9b8dd1 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/recursion/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/recursion/test/pretest.ts @@ -5,13 +5,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join( - 'tests', - 'end_to_end', - 'candid_rpc', - 'functional_syntax', - 'recursion' - ) + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'recursion') ); execSync(`dfx canister uninstall-code recursive_canister || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/test/test.ts b/tests/end_to_end/candid_rpc/class_api/recursion/test/test.ts similarity index 92% rename from tests/end_to_end/candid_rpc/class_syntax/recursion/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/recursion/test/test.ts index 5daa289376..e5c63c3603 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/recursion/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/recursion/test/test.ts @@ -4,7 +4,7 @@ import { runTests } from 'azle/test'; import { getRecursiveCanisterTests, getTests -} from 'recursion_end_to_end_test_functional_syntax/test/tests'; +} from 'recursion_end_to_end_test_functional_api/test/tests'; // @ts-ignore import { createActor } from './dfx_generated/recursion'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/recursion/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/recursion/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/recursion/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/.gitignore b/tests/end_to_end/candid_rpc/class_api/rejections/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/rejections/.gitignore rename to tests/end_to_end/candid_rpc/class_api/rejections/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/dfx.json b/tests/end_to_end/candid_rpc/class_api/rejections/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/rejections/dfx.json rename to tests/end_to_end/candid_rpc/class_api/rejections/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/jest.config.js b/tests/end_to_end/candid_rpc/class_api/rejections/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/rejections/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/rejections/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/package-lock.json b/tests/end_to_end/candid_rpc/class_api/rejections/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/rejections/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/rejections/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/rejections/package.json b/tests/end_to_end/candid_rpc/class_api/rejections/package.json new file mode 100644 index 0000000000..db8c3891b8 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/rejections/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "0.11.1", + "jest": "^29.7.0", + "rejections_end_to_end_test_functional_api": "file:../../functional_api/rejections", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/src/nonexistent.did b/tests/end_to_end/candid_rpc/class_api/rejections/src/nonexistent.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/rejections/src/nonexistent.did rename to tests/end_to_end/candid_rpc/class_api/rejections/src/nonexistent.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/src/rejections/index.ts b/tests/end_to_end/candid_rpc/class_api/rejections/src/rejections/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/rejections/src/rejections/index.ts rename to tests/end_to_end/candid_rpc/class_api/rejections/src/rejections/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/src/some_canister/index.did b/tests/end_to_end/candid_rpc/class_api/rejections/src/some_canister/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/rejections/src/some_canister/index.did rename to tests/end_to_end/candid_rpc/class_api/rejections/src/some_canister/index.did diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/src/some_canister/index.ts b/tests/end_to_end/candid_rpc/class_api/rejections/src/some_canister/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/rejections/src/some_canister/index.ts rename to tests/end_to_end/candid_rpc/class_api/rejections/src/some_canister/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/rejections/test/pretest.ts similarity index 96% rename from tests/end_to_end/candid_rpc/class_syntax/rejections/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/rejections/test/pretest.ts index a998f195cc..970f21bbf5 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/rejections/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/rejections/test/pretest.ts @@ -9,7 +9,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'rejections' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/test/test.ts b/tests/end_to_end/candid_rpc/class_api/rejections/test/test.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/rejections/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/rejections/test/test.ts index 3092846bc8..bc986c4c8d 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/rejections/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/rejections/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'rejections_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'rejections_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/rejections'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/rejections/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/rejections/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/rejections/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/.gitignore b/tests/end_to_end/candid_rpc/class_api/simple_erc20/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/simple_erc20/.gitignore rename to tests/end_to_end/candid_rpc/class_api/simple_erc20/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/dfx.json b/tests/end_to_end/candid_rpc/class_api/simple_erc20/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/simple_erc20/dfx.json rename to tests/end_to_end/candid_rpc/class_api/simple_erc20/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/jest.config.js b/tests/end_to_end/candid_rpc/class_api/simple_erc20/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/simple_erc20/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/simple_erc20/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/package-lock.json b/tests/end_to_end/candid_rpc/class_api/simple_erc20/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/simple_erc20/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/simple_erc20/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/simple_erc20/package.json b/tests/end_to_end/candid_rpc/class_api/simple_erc20/package.json new file mode 100644 index 0000000000..04dfc66667 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/simple_erc20/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "0.11.1", + "jest": "^29.7.0", + "simple_erc20_end_to_end_test_functional_api": "file:../../functional_api/simple_erc20", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/src/index.ts b/tests/end_to_end/candid_rpc/class_api/simple_erc20/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/simple_erc20/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/simple_erc20/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/simple_erc20/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/simple_erc20/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/simple_erc20/test/pretest.ts index 6167aa98a1..5232a7ed06 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/simple_erc20/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'simple_erc20' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/test/test.ts b/tests/end_to_end/candid_rpc/class_api/simple_erc20/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/simple_erc20/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/simple_erc20/test/test.ts index 2a702b3192..d6ee34587b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/simple_erc20/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'simple_erc20_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'simple_erc20_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/simple_erc20'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/simple_erc20/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/simple_erc20/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/simple_erc20/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/.gitignore b/tests/end_to_end/candid_rpc/class_api/simple_user_accounts/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/.gitignore rename to tests/end_to_end/candid_rpc/class_api/simple_user_accounts/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/dfx.json b/tests/end_to_end/candid_rpc/class_api/simple_user_accounts/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/dfx.json rename to tests/end_to_end/candid_rpc/class_api/simple_user_accounts/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/jest.config.js b/tests/end_to_end/candid_rpc/class_api/simple_user_accounts/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/simple_user_accounts/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/package-lock.json b/tests/end_to_end/candid_rpc/class_api/simple_user_accounts/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/simple_user_accounts/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/package.json b/tests/end_to_end/candid_rpc/class_api/simple_user_accounts/package.json similarity index 75% rename from tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/package.json rename to tests/end_to_end/candid_rpc/class_api/simple_user_accounts/package.json index 16b4a2072b..2e88f4ab58 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/package.json +++ b/tests/end_to_end/candid_rpc/class_api/simple_user_accounts/package.json @@ -10,7 +10,7 @@ "devDependencies": { "@dfinity/agent": "0.11.1", "jest": "^29.7.0", - "simple_user_accounts_end_to_end_test_functional_syntax": "file:../../functional_syntax/simple_user_accounts", + "simple_user_accounts_end_to_end_test_functional_api": "file:../../functional_api/simple_user_accounts", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/src/index.ts b/tests/end_to_end/candid_rpc/class_api/simple_user_accounts/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/simple_user_accounts/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/simple_user_accounts/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/simple_user_accounts/test/pretest.ts index 1e8367304a..aa527fc53b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/simple_user_accounts/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'simple_user_accounts' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/test/test.ts b/tests/end_to_end/candid_rpc/class_api/simple_user_accounts/test/test.ts similarity index 93% rename from tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/simple_user_accounts/test/test.ts index 205ef36c8b..b23e810a5a 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/simple_user_accounts/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'simple_user_accounts_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'simple_user_accounts_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/simple_user_accounts'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/simple_user_accounts/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/simple_user_accounts/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/.gitignore b/tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/.gitignore rename to tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/dfx.json b/tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/dfx.json rename to tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/jest.config.js b/tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/package-lock.json b/tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/package.json b/tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/package.json similarity index 81% rename from tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/package.json rename to tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/package.json index 428ea68d36..5dd8f0d781 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/package.json +++ b/tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/package.json @@ -10,7 +10,7 @@ "devDependencies": { "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", - "stable_b_tree_map_instruction_threshold_end_to_end_test_functional_syntax": "file:../../functional_syntax/stable_b_tree_map_instruction_threshold", + "stable_b_tree_map_instruction_threshold_end_to_end_test_functional_api": "file:../../functional_api/stable_b_tree_map_instruction_threshold", "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2" diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/src/index.ts b/tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/test/pretest.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/test/pretest.ts index e8d5508a77..5a2b0b1c1f 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'stable_b_tree_map_instruction_threshold' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/test/test.ts b/tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/test/test.ts similarity index 91% rename from tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/test/test.ts index d14a1b4e05..ca6c7dc7a8 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'stable_b_tree_map_instruction_threshold_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'stable_b_tree_map_instruction_threshold_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/stable_b_tree_map_instruction_threshold'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/stable_b_tree_map_instruction_threshold/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/.gitignore b/tests/end_to_end/candid_rpc/class_api/stable_structures/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_structures/.gitignore rename to tests/end_to_end/candid_rpc/class_api/stable_structures/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/dfx.json b/tests/end_to_end/candid_rpc/class_api/stable_structures/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_structures/dfx.json rename to tests/end_to_end/candid_rpc/class_api/stable_structures/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/jest.config.js b/tests/end_to_end/candid_rpc/class_api/stable_structures/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_structures/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/stable_structures/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/package-lock.json b/tests/end_to_end/candid_rpc/class_api/stable_structures/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_structures/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/stable_structures/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/stable_structures/package.json b/tests/end_to_end/candid_rpc/class_api/stable_structures/package.json new file mode 100644 index 0000000000..9515fc9644 --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/stable_structures/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "stable_structures_end_to_end_test_functional_api": "file:../../functional_api/stable_structures", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/src/canister1/index.ts b/tests/end_to_end/candid_rpc/class_api/stable_structures/src/canister1/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_structures/src/canister1/index.ts rename to tests/end_to_end/candid_rpc/class_api/stable_structures/src/canister1/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/src/canister2/index.ts b/tests/end_to_end/candid_rpc/class_api/stable_structures/src/canister2/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_structures/src/canister2/index.ts rename to tests/end_to_end/candid_rpc/class_api/stable_structures/src/canister2/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/src/canister3/index.ts b/tests/end_to_end/candid_rpc/class_api/stable_structures/src/canister3/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_structures/src/canister3/index.ts rename to tests/end_to_end/candid_rpc/class_api/stable_structures/src/canister3/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/src/types.ts b/tests/end_to_end/candid_rpc/class_api/stable_structures/src/types.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_structures/src/types.ts rename to tests/end_to_end/candid_rpc/class_api/stable_structures/src/types.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/stable_structures/test/pretest.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/stable_structures/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/stable_structures/test/pretest.ts index 4a7af42dc4..44c8b41b33 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/stable_structures/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'stable_structures' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/test/test.ts b/tests/end_to_end/candid_rpc/class_api/stable_structures/test/test.ts similarity index 97% rename from tests/end_to_end/candid_rpc/class_syntax/stable_structures/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/stable_structures/test/test.ts index 3e85a7a911..fd969dde2e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/stable_structures/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'stable_structures_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'stable_structures_end_to_end_test_functional_api/test/tests'; import { createActor as createActorCanister1 } from './dfx_generated/canister1'; import { createActor as createActorCanister2 } from './dfx_generated/canister2'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/stable_structures/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/stable_structures/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/stable_structures/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/timers/.gitignore b/tests/end_to_end/candid_rpc/class_api/timers/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/timers/.gitignore rename to tests/end_to_end/candid_rpc/class_api/timers/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/timers/dfx.json b/tests/end_to_end/candid_rpc/class_api/timers/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/timers/dfx.json rename to tests/end_to_end/candid_rpc/class_api/timers/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/timers/jest.config.js b/tests/end_to_end/candid_rpc/class_api/timers/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/timers/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/timers/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/timers/package-lock.json b/tests/end_to_end/candid_rpc/class_api/timers/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/timers/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/timers/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/timers/package.json b/tests/end_to_end/candid_rpc/class_api/timers/package.json new file mode 100644 index 0000000000..ebad9422fc --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/timers/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "timers_end_to_end_test_functional_api": "file:../../functional_api/timers", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/timers/src/timers.ts b/tests/end_to_end/candid_rpc/class_api/timers/src/timers.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/timers/src/timers.ts rename to tests/end_to_end/candid_rpc/class_api/timers/src/timers.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/timers/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/timers/test/pretest.ts similarity index 84% rename from tests/end_to_end/candid_rpc/class_syntax/timers/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/timers/test/pretest.ts index 1b4163dbf0..10f6f07446 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/timers/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/timers/test/pretest.ts @@ -4,7 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join('tests', 'end_to_end', 'candid_rpc', 'functional_syntax', 'timers') + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'timers') ); execSync(`dfx canister uninstall-code timers || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/timers/test/test.ts b/tests/end_to_end/candid_rpc/class_api/timers/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/timers/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/timers/test/test.ts index 0bb0daa2a3..18c54557ec 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/timers/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/timers/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'timers_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'timers_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/timers'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/timers/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/timers/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/timers/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/timers/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/.gitignore b/tests/end_to_end/candid_rpc/class_api/tuple_types/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/tuple_types/.gitignore rename to tests/end_to_end/candid_rpc/class_api/tuple_types/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/dfx.json b/tests/end_to_end/candid_rpc/class_api/tuple_types/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/tuple_types/dfx.json rename to tests/end_to_end/candid_rpc/class_api/tuple_types/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/jest.config.js b/tests/end_to_end/candid_rpc/class_api/tuple_types/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/tuple_types/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/tuple_types/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/package-lock.json b/tests/end_to_end/candid_rpc/class_api/tuple_types/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/tuple_types/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/tuple_types/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_api/tuple_types/package.json b/tests/end_to_end/candid_rpc/class_api/tuple_types/package.json new file mode 100644 index 0000000000..aaae75b83e --- /dev/null +++ b/tests/end_to_end/candid_rpc/class_api/tuple_types/package.json @@ -0,0 +1,17 @@ +{ + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "0.11.1", + "jest": "^29.7.0", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "tuple_types_end_to_end_test_functional_api": "file:../../functional_api/tuple_types", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/src/index.ts b/tests/end_to_end/candid_rpc/class_api/tuple_types/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/tuple_types/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/tuple_types/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/tuple_types/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/tuple_types/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/tuple_types/test/pretest.ts index 00477bbcb0..f0c165ef86 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/tuple_types/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'tuple_types' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/test/test.ts b/tests/end_to_end/candid_rpc/class_api/tuple_types/test/test.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/tuple_types/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/tuple_types/test/test.ts index ec752d3d32..73b6fbbeb7 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/tuple_types/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'tuple_types_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'tuple_types_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/tuple_types'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/tuple_types/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/tuple_types/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/tuple_types/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/update/.gitignore b/tests/end_to_end/candid_rpc/class_api/update/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/update/.gitignore rename to tests/end_to_end/candid_rpc/class_api/update/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/update/dfx.json b/tests/end_to_end/candid_rpc/class_api/update/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/update/dfx.json rename to tests/end_to_end/candid_rpc/class_api/update/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/update/jest.config.js b/tests/end_to_end/candid_rpc/class_api/update/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/update/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/update/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/update/package-lock.json b/tests/end_to_end/candid_rpc/class_api/update/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/update/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/update/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/update/package.json b/tests/end_to_end/candid_rpc/class_api/update/package.json similarity index 78% rename from tests/end_to_end/candid_rpc/class_syntax/update/package.json rename to tests/end_to_end/candid_rpc/class_api/update/package.json index f8bfd29845..e012641548 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/update/package.json +++ b/tests/end_to_end/candid_rpc/class_api/update/package.json @@ -12,6 +12,6 @@ "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2", - "update_end_to_end_test_functional_syntax": "file:../../functional_syntax/update" + "update_end_to_end_test_functional_api": "file:../../functional_api/update" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/update/src/index.ts b/tests/end_to_end/candid_rpc/class_api/update/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/update/src/index.ts rename to tests/end_to_end/candid_rpc/class_api/update/src/index.ts diff --git a/tests/end_to_end/candid_rpc/class_syntax/update/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/update/test/pretest.ts similarity index 84% rename from tests/end_to_end/candid_rpc/class_syntax/update/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/update/test/pretest.ts index 2fd5721507..b6f5384c48 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/update/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/update/test/pretest.ts @@ -4,7 +4,7 @@ import { join } from 'path'; function pretest(): void { linkAndInstallPatch( - join('tests', 'end_to_end', 'candid_rpc', 'functional_syntax', 'update') + join('tests', 'end_to_end', 'candid_rpc', 'functional_api', 'update') ); execSync(`dfx canister uninstall-code update || true`, { diff --git a/tests/end_to_end/candid_rpc/class_syntax/update/test/test.ts b/tests/end_to_end/candid_rpc/class_api/update/test/test.ts similarity index 79% rename from tests/end_to_end/candid_rpc/class_syntax/update/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/update/test/test.ts index 57d8851c76..96fff77637 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/update/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/update/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'update_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'update_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/update'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/update/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/update/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/update/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/update/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/.gitignore b/tests/end_to_end/candid_rpc/class_api/vanilla_js/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/vanilla_js/.gitignore rename to tests/end_to_end/candid_rpc/class_api/vanilla_js/.gitignore diff --git a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/dfx.json b/tests/end_to_end/candid_rpc/class_api/vanilla_js/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/vanilla_js/dfx.json rename to tests/end_to_end/candid_rpc/class_api/vanilla_js/dfx.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/jest.config.js b/tests/end_to_end/candid_rpc/class_api/vanilla_js/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/vanilla_js/jest.config.js rename to tests/end_to_end/candid_rpc/class_api/vanilla_js/jest.config.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/package-lock.json b/tests/end_to_end/candid_rpc/class_api/vanilla_js/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/vanilla_js/package-lock.json rename to tests/end_to_end/candid_rpc/class_api/vanilla_js/package-lock.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/package.json b/tests/end_to_end/candid_rpc/class_api/vanilla_js/package.json similarity index 78% rename from tests/end_to_end/candid_rpc/class_syntax/vanilla_js/package.json rename to tests/end_to_end/candid_rpc/class_api/vanilla_js/package.json index 1f47d99de8..f584f009a1 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/package.json +++ b/tests/end_to_end/candid_rpc/class_api/vanilla_js/package.json @@ -13,6 +13,6 @@ "ts-jest": "^29.1.5", "tsx": "^4.15.7", "typescript": "^5.2.2", - "vanilla_js_end_to_end_test_functional_syntax": "file:../../functional_syntax/vanilla_js" + "vanilla_js_end_to_end_test_functional_api": "file:../../functional_api/vanilla_js" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/src/index.js b/tests/end_to_end/candid_rpc/class_api/vanilla_js/src/index.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/vanilla_js/src/index.js rename to tests/end_to_end/candid_rpc/class_api/vanilla_js/src/index.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/src/library.js b/tests/end_to_end/candid_rpc/class_api/vanilla_js/src/library.js similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/vanilla_js/src/library.js rename to tests/end_to_end/candid_rpc/class_api/vanilla_js/src/library.js diff --git a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/test/pretest.ts b/tests/end_to_end/candid_rpc/class_api/vanilla_js/test/pretest.ts similarity index 94% rename from tests/end_to_end/candid_rpc/class_syntax/vanilla_js/test/pretest.ts rename to tests/end_to_end/candid_rpc/class_api/vanilla_js/test/pretest.ts index 8b1739bc2f..ceeb2062ad 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/test/pretest.ts +++ b/tests/end_to_end/candid_rpc/class_api/vanilla_js/test/pretest.ts @@ -8,7 +8,7 @@ function pretest(): void { 'tests', 'end_to_end', 'candid_rpc', - 'functional_syntax', + 'functional_api', 'vanilla_js' ) ); diff --git a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/test/test.ts b/tests/end_to_end/candid_rpc/class_api/vanilla_js/test/test.ts similarity index 95% rename from tests/end_to_end/candid_rpc/class_syntax/vanilla_js/test/test.ts rename to tests/end_to_end/candid_rpc/class_api/vanilla_js/test/test.ts index 99b087f65d..f16a386bfc 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_api/vanilla_js/test/test.ts @@ -1,6 +1,6 @@ import { getCanisterId } from 'azle/dfx'; import { runTests } from 'azle/test'; -import { getTests } from 'vanilla_js_end_to_end_test_functional_syntax/test/tests'; +import { getTests } from 'vanilla_js_end_to_end_test_functional_api/test/tests'; import { createActor } from './dfx_generated/vanilla_js'; diff --git a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/tsconfig.json b/tests/end_to_end/candid_rpc/class_api/vanilla_js/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/class_syntax/vanilla_js/tsconfig.json rename to tests/end_to_end/candid_rpc/class_api/vanilla_js/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/package.json b/tests/end_to_end/candid_rpc/class_syntax/composite_queries/package.json deleted file mode 100644 index 2ed08125a9..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "composite_queries_end_to_end_test_functional_syntax": "file:../../functional_syntax/composite_queries", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/package.json b/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/package.json deleted file mode 100644 index 5f3fa7a50b..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "cross_canister_calls_end_to_end_test_functional_syntax": "file:../../functional_syntax/cross_canister_calls", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/package.json b/tests/end_to_end/candid_rpc/class_syntax/key_value_store/package.json deleted file mode 100644 index 0d4d1a6e7a..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "key_value_store_end_to_end_test_functional_syntax": "file:../../functional_syntax/key_value_store", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/package.json b/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/package.json deleted file mode 100644 index f8af6e1eb2..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "ledger_canister_end_to_end_test_functional_syntax": "file:../../functional_syntax/ledger_canister", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/management_canister/package.json b/tests/end_to_end/candid_rpc/class_syntax/management_canister/package.json deleted file mode 100644 index 8a728e7ded..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/management_canister/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "management_canister_end_to_end_test_functional_syntax": "file:../../functional_syntax/management_canister", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/package.json deleted file mode 100644 index f882b64dbe..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "calc_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/calc", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/package.json deleted file mode 100644 index 1fe8371e1b..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "counter_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/counter", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/package.json deleted file mode 100644 index 3fd9996bba..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "echo_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/echo", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/package.json deleted file mode 100644 index 17539ff53f..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "factorial_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/factorial", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/package.json deleted file mode 100644 index 2e7c1edb07..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "hello-world_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/hello-world", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/package.json deleted file mode 100644 index d9cbe2d192..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "persistent-storage_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/persistent-storage", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/package.json deleted file mode 100644 index 447a919cb4..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "quicksort_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/quicksort", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/package.json deleted file mode 100644 index ba95ec993a..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "simple-to-do_end_to_end_test_functional_syntax": "file:../../../functional_syntax/motoko_examples/simple-to-do", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/package.json b/tests/end_to_end/candid_rpc/class_syntax/notify_raw/package.json deleted file mode 100644 index 30970fd747..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "0.11.1", - "jest": "^29.7.0", - "notify_raw_end_to_end_test_functional_syntax": "file:../../functional_syntax/notify_raw", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/null_example/package.json b/tests/end_to_end/candid_rpc/class_syntax/null_example/package.json deleted file mode 100644 index e4f1f18fbf..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/null_example/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "0.11.1", - "jest": "^29.7.0", - "null_example_end_to_end_test_functional_syntax": "file:../../functional_syntax/null_example", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/package.json b/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/package.json deleted file mode 100644 index 850a111bd0..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "pre_and_post_upgrade_end_to_end_test_functional_syntax": "file:../../functional_syntax/pre_and_post_upgrade", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/package.json b/tests/end_to_end/candid_rpc/class_syntax/primitive_types/package.json deleted file mode 100644 index 216c5e3f4b..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "primitive_types_end_to_end_test_functional_syntax": "file:../../functional_syntax/primitive_types", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/principal/package.json b/tests/end_to_end/candid_rpc/class_syntax/principal/package.json deleted file mode 100644 index 5e568e3de0..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/principal/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "principal_end_to_end_test_functional_syntax": "file:../../functional_syntax/principal", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/randomness/package.json b/tests/end_to_end/candid_rpc/class_syntax/randomness/package.json deleted file mode 100644 index 8a12687777..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/randomness/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "0.11.1", - "jest": "^29.7.0", - "randomness_end_to_end_test_functional_syntax": "file:../../functional_syntax/randomness", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/package.json b/tests/end_to_end/candid_rpc/class_syntax/rejections/package.json deleted file mode 100644 index c5b5bc88d6..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/rejections/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "0.11.1", - "jest": "^29.7.0", - "rejections_end_to_end_test_functional_syntax": "file:../../functional_syntax/rejections", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/package.json b/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/package.json deleted file mode 100644 index 3b3854b900..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "0.11.1", - "jest": "^29.7.0", - "simple_erc20_end_to_end_test_functional_syntax": "file:../../functional_syntax/simple_erc20", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/package.json b/tests/end_to_end/candid_rpc/class_syntax/stable_structures/package.json deleted file mode 100644 index 915fdc0ecd..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "stable_structures_end_to_end_test_functional_syntax": "file:../../functional_syntax/stable_structures", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/package.json b/tests/end_to_end/candid_rpc/class_syntax/tuple_types/package.json deleted file mode 100644 index 463cb15f30..0000000000 --- a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "0.11.1", - "jest": "^29.7.0", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "tuple_types_end_to_end_test_functional_syntax": "file:../../functional_syntax/tuple_types", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/async_await/.gitignore b/tests/end_to_end/candid_rpc/functional_api/async_await/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/async_await/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/async_await/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/async_await/dfx.json b/tests/end_to_end/candid_rpc/functional_api/async_await/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/async_await/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/async_await/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/async_await/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/async_await/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/async_await/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/async_await/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/async_await/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/async_await/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/async_await/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/async_await/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/package.json b/tests/end_to_end/candid_rpc/functional_api/async_await/package.json similarity index 88% rename from tests/end_to_end/candid_rpc/functional_syntax/heartbeat/package.json rename to tests/end_to_end/candid_rpc/functional_api/async_await/package.json index dcb26cdcac..5c36f1bcd2 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/async_await/package.json @@ -1,5 +1,5 @@ { - "name": "heartbeat_end_to_end_test_functional_syntax", + "name": "async_await_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/async_await/src/async_await.ts b/tests/end_to_end/candid_rpc/functional_api/async_await/src/async_await.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/async_await/src/async_await.ts rename to tests/end_to_end/candid_rpc/functional_api/async_await/src/async_await.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/async_await/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/async_await/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/async_await/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/async_await/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/async_await/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/async_await/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/async_await/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/async_await/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/async_await/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/async_await/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/async_await/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/async_await/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/async_await/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/async_await/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/async_await/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/async_await/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/.gitignore b/tests/end_to_end/candid_rpc/functional_api/audio_recorder/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/audio_recorder/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/dfx.json b/tests/end_to_end/candid_rpc/functional_api/audio_recorder/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/audio_recorder/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/audio_recorder/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/audio_recorder/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/audio_recorder/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/audio_recorder/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/package.json b/tests/end_to_end/candid_rpc/functional_api/audio_recorder/package.json similarity index 83% rename from tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/package.json rename to tests/end_to_end/candid_rpc/functional_api/audio_recorder/package.json index 726ddc69ab..d0c69bf69f 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/audio_recorder/package.json @@ -1,5 +1,5 @@ { - "name": "audio_recorder_end_to_end_test_functional_syntax", + "name": "audio_recorder_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/src/index.did b/tests/end_to_end/candid_rpc/functional_api/audio_recorder/src/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/src/index.did rename to tests/end_to_end/candid_rpc/functional_api/audio_recorder/src/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/audio_recorder/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/audio_recorder/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/audio_recorder/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/audio_recorder/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/audio_recorder/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/audio_recorder/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/audio_recorder/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/audio_recorder/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/audio_recorder/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/audio_recorder/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/.bitcoin.conf b/tests/end_to_end/candid_rpc/functional_api/bitcoin/.bitcoin.conf similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/.bitcoin.conf rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/.bitcoin.conf diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/.gitignore b/tests/end_to_end/candid_rpc/functional_api/bitcoin/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/README.md b/tests/end_to_end/candid_rpc/functional_api/bitcoin/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/README.md rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/dfx.json b/tests/end_to_end/candid_rpc/functional_api/bitcoin/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/bitcoin/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/bitcoin/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/package.json b/tests/end_to_end/candid_rpc/functional_api/bitcoin/package.json similarity index 91% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/package.json rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/package.json index f14c2ccf1f..ae84dd06ab 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/bitcoin/package.json @@ -1,5 +1,5 @@ { - "name": "bitcoin_end_to_end_test_functional_syntax", + "name": "bitcoin_end_to_end_test_functional_api", "scripts": { "bitcoind": ".bitcoin/bin/bitcoind -conf=$(pwd)/.bitcoin.conf -datadir=$(pwd)/.bitcoin/data --port=18444", "bitcoin-cli": "bitcoin-cli -conf=$(pwd)/.bitcoin.conf -datadir=$(pwd)/.bitcoin/data -rpcport=18443", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/scripts/deploy.sh b/tests/end_to_end/candid_rpc/functional_api/bitcoin/scripts/deploy.sh similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/scripts/deploy.sh rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/scripts/deploy.sh diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/scripts/install.sh b/tests/end_to_end/candid_rpc/functional_api/bitcoin/scripts/install.sh similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/scripts/install.sh rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/scripts/install.sh diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/bitcoin/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/test/bitcoin_cli.ts b/tests/end_to_end/candid_rpc/functional_api/bitcoin/test/bitcoin_cli.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/test/bitcoin_cli.ts rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/test/bitcoin_cli.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/bitcoin/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/test/setup.ts b/tests/end_to_end/candid_rpc/functional_api/bitcoin/test/setup.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/test/setup.ts rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/test/setup.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/bitcoin/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/bitcoin/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/test/wallets.ts b/tests/end_to_end/candid_rpc/functional_api/bitcoin/test/wallets.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/test/wallets.ts rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/test/wallets.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/bitcoin/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bitcoin/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/bitcoin/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/.gitignore b/tests/end_to_end/candid_rpc/functional_api/blob_array/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/blob_array/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/blob_array/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/README.md b/tests/end_to_end/candid_rpc/functional_api/blob_array/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/blob_array/README.md rename to tests/end_to_end/candid_rpc/functional_api/blob_array/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/dfx.json b/tests/end_to_end/candid_rpc/functional_api/blob_array/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/blob_array/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/blob_array/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/blob_array/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/blob_array/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/blob_array/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/blob_array/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/blob_array/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/blob_array/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/counter/package.json b/tests/end_to_end/candid_rpc/functional_api/blob_array/package.json similarity index 85% rename from tests/end_to_end/candid_rpc/functional_syntax/counter/package.json rename to tests/end_to_end/candid_rpc/functional_api/blob_array/package.json index 45e4310663..3d0ccc043e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/counter/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/blob_array/package.json @@ -1,5 +1,5 @@ { - "name": "counter_end_to_end_test_functional_syntax", + "name": "blob_array_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/blob_array/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/blob_array/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/blob_array/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/blob_array/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/blob_array/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/blob_array/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/blob_array/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/blob_array/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/blob_array/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/blob_array/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/blob_array/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/blob_array/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/blob_array/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/blob_array/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/blob_array/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/.gitignore b/tests/end_to_end/candid_rpc/functional_api/bytes/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/bytes/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/dfx.json b/tests/end_to_end/candid_rpc/functional_api/bytes/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/bytes/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/bytes/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/bytes/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/bytes/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/bytes/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/date/package.json b/tests/end_to_end/candid_rpc/functional_api/bytes/package.json similarity index 85% rename from tests/end_to_end/candid_rpc/functional_syntax/date/package.json rename to tests/end_to_end/candid_rpc/functional_api/bytes/package.json index 2263cd3158..7712850acb 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/date/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/bytes/package.json @@ -1,5 +1,5 @@ { - "name": "date_end_to_end_test_functional_syntax", + "name": "bytes_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/bytes/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/bytes/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/test/example_files/example_1000_kb.txt b/tests/end_to_end/candid_rpc/functional_api/bytes/test/example_files/example_1000_kb.txt similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/test/example_files/example_1000_kb.txt rename to tests/end_to_end/candid_rpc/functional_api/bytes/test/example_files/example_1000_kb.txt diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/test/example_files/example_100_kb.txt b/tests/end_to_end/candid_rpc/functional_api/bytes/test/example_files/example_100_kb.txt similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/test/example_files/example_100_kb.txt rename to tests/end_to_end/candid_rpc/functional_api/bytes/test/example_files/example_100_kb.txt diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/test/example_files/example_10_kb.txt b/tests/end_to_end/candid_rpc/functional_api/bytes/test/example_files/example_10_kb.txt similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/test/example_files/example_10_kb.txt rename to tests/end_to_end/candid_rpc/functional_api/bytes/test/example_files/example_10_kb.txt diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/test/example_files/example_1_kb.txt b/tests/end_to_end/candid_rpc/functional_api/bytes/test/example_files/example_1_kb.txt similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/test/example_files/example_1_kb.txt rename to tests/end_to_end/candid_rpc/functional_api/bytes/test/example_files/example_1_kb.txt diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/test/example_files/example_2000_kb.txt b/tests/end_to_end/candid_rpc/functional_api/bytes/test/example_files/example_2000_kb.txt similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/test/example_files/example_2000_kb.txt rename to tests/end_to_end/candid_rpc/functional_api/bytes/test/example_files/example_2000_kb.txt diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/bytes/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/bytes/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/bytes/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/bytes/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/bytes/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/bytes/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/bytes/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/bytes/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/.gitignore b/tests/end_to_end/candid_rpc/functional_api/call_raw/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/call_raw/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/call_raw/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/dfx.json b/tests/end_to_end/candid_rpc/functional_api/call_raw/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/call_raw/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/call_raw/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/call_raw/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/call_raw/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/call_raw/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/call_raw/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/call_raw/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/call_raw/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/package.json b/tests/end_to_end/candid_rpc/functional_api/call_raw/package.json similarity index 85% rename from tests/end_to_end/candid_rpc/functional_syntax/bytes/package.json rename to tests/end_to_end/candid_rpc/functional_api/call_raw/package.json index f201231228..6c1ebff9bc 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/bytes/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/call_raw/package.json @@ -1,5 +1,5 @@ { - "name": "bytes_end_to_end_test_functional_syntax", + "name": "call_raw_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/call_raw/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/call_raw/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/call_raw/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/call_raw/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/call_raw/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/call_raw/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/call_raw/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/call_raw/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/call_raw/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/call_raw/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/call_raw/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/call_raw/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/call_raw/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/call_raw/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/call_raw/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/.gitignore b/tests/end_to_end/candid_rpc/functional_api/candid_encoding/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/candid_encoding/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/dfx.json b/tests/end_to_end/candid_rpc/functional_api/candid_encoding/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/candid_encoding/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/candid_encoding/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/candid_encoding/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/candid_encoding/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/candid_encoding/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/package.json b/tests/end_to_end/candid_rpc/functional_api/candid_encoding/package.json similarity index 84% rename from tests/end_to_end/candid_rpc/functional_syntax/blob_array/package.json rename to tests/end_to_end/candid_rpc/functional_api/candid_encoding/package.json index 370ab38f09..ba351f6786 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/candid_encoding/package.json @@ -1,5 +1,5 @@ { - "name": "blob_array_end_to_end_test_functional_syntax", + "name": "candid_encoding_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/candid_encoding/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/candid_encoding/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/candid_encoding/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/candid_encoding/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/candid_encoding/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/candid_encoding/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/candid_encoding/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/candid_encoding/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/candid_encoding/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/candid_encoding/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/.gitignore b/tests/end_to_end/candid_rpc/functional_api/candid_keywords/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/candid_keywords/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/dfx.json b/tests/end_to_end/candid_rpc/functional_api/candid_keywords/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/candid_keywords/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/candid_keywords/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/candid_keywords/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/candid_keywords/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/candid_keywords/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/package.json b/tests/end_to_end/candid_rpc/functional_api/candid_keywords/package.json similarity index 83% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/package.json rename to tests/end_to_end/candid_rpc/functional_api/candid_keywords/package.json index e0041b5bb1..ffb6aed166 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/candid_keywords/package.json @@ -1,5 +1,5 @@ { - "name": "candid_keywords_end_to_end_test_functional_syntax", + "name": "candid_keywords_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/candid_keywords/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/candid_keywords/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/candid_keywords/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/candid_keywords/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/candid_keywords/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/candid_keywords/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/candid_keywords/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/candid_keywords/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/candid_keywords/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/candid_keywords/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/.gitignore b/tests/end_to_end/candid_rpc/functional_api/canister/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/canister/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/canister/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/dfx.json b/tests/end_to_end/candid_rpc/functional_api/canister/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/canister/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/canister/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/canister/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/canister/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/canister/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/canister/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/canister/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/canister/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/package.json b/tests/end_to_end/candid_rpc/functional_api/canister/package.json similarity index 88% rename from tests/end_to_end/candid_rpc/functional_syntax/canister/package.json rename to tests/end_to_end/candid_rpc/functional_api/canister/package.json index fb7c39b9ef..f7a9c8e2ef 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/canister/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/canister/package.json @@ -1,5 +1,5 @@ { - "name": "canister_end_to_end_test_functional_syntax", + "name": "canister_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/canister/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/canister/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/canister/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/src/some_canister.did b/tests/end_to_end/candid_rpc/functional_api/canister/src/some_canister.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/canister/src/some_canister.did rename to tests/end_to_end/candid_rpc/functional_api/canister/src/some_canister.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/src/some_canister.ts b/tests/end_to_end/candid_rpc/functional_api/canister/src/some_canister.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/canister/src/some_canister.ts rename to tests/end_to_end/candid_rpc/functional_api/canister/src/some_canister.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/canister/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/canister/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/canister/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/canister/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/canister/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/canister/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/canister/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/canister/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/canister/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/canister/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/canister/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/canister/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/.bitcoin.conf b/tests/end_to_end/candid_rpc/functional_api/ckbtc/.bitcoin.conf similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/.bitcoin.conf rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/.bitcoin.conf diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/.gitignore b/tests/end_to_end/candid_rpc/functional_api/ckbtc/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/README.md b/tests/end_to_end/candid_rpc/functional_api/ckbtc/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/README.md rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/ckbtc/LICENSE b/tests/end_to_end/candid_rpc/functional_api/ckbtc/ckbtc/LICENSE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/ckbtc/LICENSE rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/ckbtc/LICENSE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/ckbtc/ledger.did b/tests/end_to_end/candid_rpc/functional_api/ckbtc/ckbtc/ledger.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/ckbtc/ledger.did rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/ckbtc/ledger.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/dfx.json b/tests/end_to_end/candid_rpc/functional_api/ckbtc/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/internet_identity/LICENSE b/tests/end_to_end/candid_rpc/functional_api/ckbtc/internet_identity/LICENSE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/internet_identity/LICENSE rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/internet_identity/LICENSE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/internet_identity/internet_identity.did b/tests/end_to_end/candid_rpc/functional_api/ckbtc/internet_identity/internet_identity.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/internet_identity/internet_identity.did rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/internet_identity/internet_identity.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/ckbtc/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/kyt/LICENSE b/tests/end_to_end/candid_rpc/functional_api/ckbtc/kyt/LICENSE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/kyt/LICENSE rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/kyt/LICENSE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/kyt/kyt.did b/tests/end_to_end/candid_rpc/functional_api/ckbtc/kyt/kyt.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/kyt/kyt.did rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/kyt/kyt.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/minter/LICENSE b/tests/end_to_end/candid_rpc/functional_api/ckbtc/minter/LICENSE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/minter/LICENSE rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/minter/LICENSE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/minter/minter.did b/tests/end_to_end/candid_rpc/functional_api/ckbtc/minter/minter.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/minter/minter.did rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/minter/minter.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/ckbtc/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/package.json b/tests/end_to_end/candid_rpc/functional_api/ckbtc/package.json similarity index 97% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/package.json rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/package.json index 86586faa24..23a5da9533 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/ckbtc/package.json @@ -1,5 +1,5 @@ { - "name": "ckbtc_end_to_end_test_functional_syntax", + "name": "ckbtc_end_to_end_test_functional_api", "scripts": { "bitcoin": ".bitcoin/bin/bitcoind -conf=$(pwd)/.bitcoin.conf -datadir=$(pwd)/.bitcoin/data --port=18444", "ic": "dfx start --clean --host 127.0.0.1:8000 --enable-bitcoin", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/deploy/all.sh b/tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/deploy/all.sh similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/deploy/all.sh rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/deploy/all.sh diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/deploy/ckbtc.sh b/tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/deploy/ckbtc.sh similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/deploy/ckbtc.sh rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/deploy/ckbtc.sh diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/deploy/internet_identity.sh b/tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/deploy/internet_identity.sh similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/deploy/internet_identity.sh rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/deploy/internet_identity.sh diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/deploy/kyt.sh b/tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/deploy/kyt.sh similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/deploy/kyt.sh rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/deploy/kyt.sh diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/deploy/minter.sh b/tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/deploy/minter.sh similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/deploy/minter.sh rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/deploy/minter.sh diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/deploy/wallet_backend.sh b/tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/deploy/wallet_backend.sh similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/deploy/wallet_backend.sh rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/deploy/wallet_backend.sh diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/install/all.sh b/tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/install/all.sh similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/install/all.sh rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/install/all.sh diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/install/bitcoin.sh b/tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/install/bitcoin.sh similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/scripts/install/bitcoin.sh rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/scripts/install/bitcoin.sh diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/ckbtc/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/ckbtc/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/ckbtc/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/ckbtc/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/backend/LICENSE b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/backend/LICENSE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/backend/LICENSE rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/backend/LICENSE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/backend/NOTICE b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/backend/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/backend/NOTICE rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/backend/NOTICE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/backend/icrc.did b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/backend/icrc.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/backend/icrc.did rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/backend/icrc.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/backend/index.ts b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/backend/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/backend/index.ts rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/backend/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/backend/minter.ts b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/backend/minter.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/backend/minter.ts rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/backend/minter.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/elements/ck-app.ts b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/elements/ck-app.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/elements/ck-app.ts rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/elements/ck-app.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/index.html b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/index.html similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/index.html rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/index.html diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/package.json b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/package.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/package.json rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/package.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/index.d.ts b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/index.d.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/index.d.ts rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/index.d.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/index.js b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/index.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/index.js rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/index.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did.d.ts b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did.d.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did.d.ts rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did.d.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did.js b/tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did.js rename to tests/end_to_end/candid_rpc/functional_api/ckbtc/wallet/frontend/wallet/frontend/dfx_generate/wallet_backend/wallet_backend.did.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/.gitignore b/tests/end_to_end/candid_rpc/functional_api/complex_init/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_init/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/complex_init/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/dfx.json b/tests/end_to_end/candid_rpc/functional_api/complex_init/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_init/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/complex_init/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/complex_init/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_init/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/complex_init/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/complex_init/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_init/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/complex_init/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/complex_init/package.json b/tests/end_to_end/candid_rpc/functional_api/complex_init/package.json new file mode 100644 index 0000000000..49f3de0e1b --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/complex_init/package.json @@ -0,0 +1,17 @@ +{ + "name": "complex_init_end_to_end_test_functional_api", + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/src/complex_init/index.ts b/tests/end_to_end/candid_rpc/functional_api/complex_init/src/complex_init/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_init/src/complex_init/index.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_init/src/complex_init/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/src/rec_init/index.ts b/tests/end_to_end/candid_rpc/functional_api/complex_init/src/rec_init/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_init/src/rec_init/index.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_init/src/rec_init/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/complex_init/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_init/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_init/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/complex_init/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_init/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_init/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/complex_init/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_init/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_init/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/complex_init/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_init/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/complex_init/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/.gitignore b/tests/end_to_end/candid_rpc/functional_api/complex_types/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/complex_types/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/dfx.json b/tests/end_to_end/candid_rpc/functional_api/complex_types/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/complex_types/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/complex_types/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/complex_types/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/complex_types/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/complex_types/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/package.json b/tests/end_to_end/candid_rpc/functional_api/complex_types/package.json similarity index 83% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/package.json rename to tests/end_to_end/candid_rpc/functional_api/complex_types/package.json index 4a5e1ad383..894b80f947 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/complex_types/package.json @@ -1,5 +1,5 @@ { - "name": "complex_types_end_to_end_test_functional_syntax", + "name": "complex_types_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/candid_types.ts b/tests/end_to_end/candid_rpc/functional_api/complex_types/src/candid_types.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/candid_types.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_types/src/candid_types.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/index.did b/tests/end_to_end/candid_rpc/functional_api/complex_types/src/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/index.did rename to tests/end_to_end/candid_rpc/functional_api/complex_types/src/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/complex_types/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_types/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/posts.ts b/tests/end_to_end/candid_rpc/functional_api/complex_types/src/posts.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/posts.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_types/src/posts.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/reactions.ts b/tests/end_to_end/candid_rpc/functional_api/complex_types/src/reactions.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/reactions.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_types/src/reactions.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/state.ts b/tests/end_to_end/candid_rpc/functional_api/complex_types/src/state.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/state.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_types/src/state.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/threads.ts b/tests/end_to_end/candid_rpc/functional_api/complex_types/src/threads.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/threads.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_types/src/threads.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/users.ts b/tests/end_to_end/candid_rpc/functional_api/complex_types/src/users.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/src/users.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_types/src/users.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/complex_types/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_types/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/complex_types/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_types/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/complex_types/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/complex_types/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/complex_types/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/complex_types/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/complex_types/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/.gitignore b/tests/end_to_end/candid_rpc/functional_api/composite_queries/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/dfx.json b/tests/end_to_end/candid_rpc/functional_api/composite_queries/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/composite_queries/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/composite_queries/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/composite_queries/package.json b/tests/end_to_end/candid_rpc/functional_api/composite_queries/package.json new file mode 100644 index 0000000000..c837a594ef --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/composite_queries/package.json @@ -0,0 +1,18 @@ +{ + "name": "composite_queries_end_to_end_test_functional_api", + "scripts": { + "pre_tests": "tsx test/pretest.ts", + "tests": "npm run pre_tests && jest", + "test": "AZLE_TEST_FETCH=false npm run tests && AZLE_TEST_FETCH=true npm run tests" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/src/canister1/index.did b/tests/end_to_end/candid_rpc/functional_api/composite_queries/src/canister1/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/src/canister1/index.did rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/src/canister1/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/src/canister1/index.ts b/tests/end_to_end/candid_rpc/functional_api/composite_queries/src/canister1/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/src/canister1/index.ts rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/src/canister1/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/src/canister2/index.did b/tests/end_to_end/candid_rpc/functional_api/composite_queries/src/canister2/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/src/canister2/index.did rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/src/canister2/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/src/canister2/index.ts b/tests/end_to_end/candid_rpc/functional_api/composite_queries/src/canister2/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/src/canister2/index.ts rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/src/canister2/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/src/canister3/index.did b/tests/end_to_end/candid_rpc/functional_api/composite_queries/src/canister3/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/src/canister3/index.did rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/src/canister3/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/src/canister3/index.ts b/tests/end_to_end/candid_rpc/functional_api/composite_queries/src/canister3/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/src/canister3/index.ts rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/src/canister3/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/composite_queries/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/composite_queries/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/composite_queries/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/composite_queries/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/composite_queries/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/counter/.gitignore b/tests/end_to_end/candid_rpc/functional_api/counter/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/counter/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/counter/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/counter/dfx.json b/tests/end_to_end/candid_rpc/functional_api/counter/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/counter/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/counter/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/counter/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/counter/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/counter/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/counter/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/counter/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/counter/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/counter/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/counter/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/package.json b/tests/end_to_end/candid_rpc/functional_api/counter/package.json similarity index 85% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/package.json rename to tests/end_to_end/candid_rpc/functional_api/counter/package.json index a0ebfca994..274d287039 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/counter/package.json @@ -1,5 +1,5 @@ { - "name": "calc_end_to_end_test_functional_syntax", + "name": "counter_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/counter/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/counter/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/counter/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/counter/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/counter/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/counter/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/counter/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/counter/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/counter/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/counter/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/counter/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/counter/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/counter/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/counter/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/counter/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/counter/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/counter/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/counter/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/counter/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/counter/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/.gitignore b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/README.md b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/README.md rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/dfx.json b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/package.json b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/package.json similarity index 87% rename from tests/end_to_end/candid_rpc/functional_syntax/composite_queries/package.json rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/package.json index 2033c058c9..db84ca16c4 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/package.json @@ -1,5 +1,5 @@ { - "name": "composite_queries_end_to_end_test_functional_syntax", + "name": "cross_canister_calls_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/src/canister1/index.ts b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/src/canister1/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/src/canister1/index.ts rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/src/canister1/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/src/canister2/index.did b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/src/canister2/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/src/canister2/index.did rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/src/canister2/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/src/canister2/index.ts b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/src/canister2/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/src/canister2/index.ts rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/src/canister2/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/src/canister2/types.ts b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/src/canister2/types.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/src/canister2/types.ts rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/src/canister2/types.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/cross_canister_calls/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/.gitignore b/tests/end_to_end/candid_rpc/functional_api/cycles/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cycles/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/cycles/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/dfx.json b/tests/end_to_end/candid_rpc/functional_api/cycles/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cycles/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/cycles/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/cycles/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cycles/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/cycles/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/cycles/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cycles/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/cycles/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/package.json b/tests/end_to_end/candid_rpc/functional_api/cycles/package.json similarity index 88% rename from tests/end_to_end/candid_rpc/functional_syntax/cycles/package.json rename to tests/end_to_end/candid_rpc/functional_api/cycles/package.json index e40dd81599..7813c959b9 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/cycles/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/cycles/package.json @@ -1,5 +1,5 @@ { - "name": "cycles_end_to_end_test_functional_syntax", + "name": "cycles_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/src/cycles/index.did b/tests/end_to_end/candid_rpc/functional_api/cycles/src/cycles/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cycles/src/cycles/index.did rename to tests/end_to_end/candid_rpc/functional_api/cycles/src/cycles/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/src/cycles/index.ts b/tests/end_to_end/candid_rpc/functional_api/cycles/src/cycles/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cycles/src/cycles/index.ts rename to tests/end_to_end/candid_rpc/functional_api/cycles/src/cycles/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/src/intermediary/index.ts b/tests/end_to_end/candid_rpc/functional_api/cycles/src/intermediary/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cycles/src/intermediary/index.ts rename to tests/end_to_end/candid_rpc/functional_api/cycles/src/intermediary/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/cycles/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cycles/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/cycles/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/cycles/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cycles/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/cycles/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/cycles/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cycles/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/cycles/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/cycles/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/cycles/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/cycles/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/date/.gitignore b/tests/end_to_end/candid_rpc/functional_api/date/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/date/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/date/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/date/dfx.json b/tests/end_to_end/candid_rpc/functional_api/date/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/date/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/date/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/date/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/date/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/date/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/date/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/date/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/date/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/date/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/date/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/package.json b/tests/end_to_end/candid_rpc/functional_api/date/package.json similarity index 85% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/package.json rename to tests/end_to_end/candid_rpc/functional_api/date/package.json index 3f5551fa96..3fdaa1db1b 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/date/package.json @@ -1,5 +1,5 @@ { - "name": "echo_end_to_end_test_functional_syntax", + "name": "date_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/date/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/date/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/date/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/date/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/date/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/date/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/date/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/date/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/date/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/date/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/date/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/date/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/date/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/date/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/date/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/date/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/date/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/date/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/date/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/date/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/.gitignore b/tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/dfx.json b/tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/package.json b/tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/package.json similarity index 89% rename from tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/package.json rename to tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/package.json index 6426282137..43039f769a 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/package.json @@ -1,5 +1,5 @@ { - "name": "ethereum_json_rpc_end_to_end_test_functional_syntax", + "name": "ethereum_json_rpc_end_to_end_test_functional_api", "scripts": { "pre_tests": "ETHEREUM_URL=https://rpc.ankr.com/eth tsx test/pretest.ts", "tests": "ETHEREUM_URL=https://rpc.ankr.com/eth npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/ethereum_json_rpc/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/.gitignore b/tests/end_to_end/candid_rpc/functional_api/func_types/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/func_types/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/func_types/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/canisters/func_types/index.ts b/tests/end_to_end/candid_rpc/functional_api/func_types/canisters/func_types/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/func_types/canisters/func_types/index.ts rename to tests/end_to_end/candid_rpc/functional_api/func_types/canisters/func_types/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/canisters/notifiers/index.did b/tests/end_to_end/candid_rpc/functional_api/func_types/canisters/notifiers/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/func_types/canisters/notifiers/index.did rename to tests/end_to_end/candid_rpc/functional_api/func_types/canisters/notifiers/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/canisters/notifiers/index.ts b/tests/end_to_end/candid_rpc/functional_api/func_types/canisters/notifiers/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/func_types/canisters/notifiers/index.ts rename to tests/end_to_end/candid_rpc/functional_api/func_types/canisters/notifiers/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/dfx.json b/tests/end_to_end/candid_rpc/functional_api/func_types/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/func_types/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/func_types/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/func_types/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/func_types/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/func_types/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/func_types/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/func_types/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/func_types/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/package.json b/tests/end_to_end/candid_rpc/functional_api/func_types/package.json similarity index 88% rename from tests/end_to_end/candid_rpc/functional_syntax/func_types/package.json rename to tests/end_to_end/candid_rpc/functional_api/func_types/package.json index cde2b17d71..aad268a75f 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/func_types/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/func_types/package.json @@ -1,5 +1,5 @@ { - "name": "func_types_end_to_end_test_functional_syntax", + "name": "func_types_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/func_types/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/func_types/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/func_types/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/func_types/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/func_types/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/func_types/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/func_types/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/func_types/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/func_types/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/func_types/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/func_types/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/func_types/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/.gitignore b/tests/end_to_end/candid_rpc/functional_api/heartbeat/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/heartbeat/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/heartbeat/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/dfx.json b/tests/end_to_end/candid_rpc/functional_api/heartbeat/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/heartbeat/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/heartbeat/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/heartbeat/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/heartbeat/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/heartbeat/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/heartbeat/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/heartbeat/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/heartbeat/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/async_await/package.json b/tests/end_to_end/candid_rpc/functional_api/heartbeat/package.json similarity index 87% rename from tests/end_to_end/candid_rpc/functional_syntax/async_await/package.json rename to tests/end_to_end/candid_rpc/functional_api/heartbeat/package.json index f9d2ebccaa..f83262e63b 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/async_await/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/heartbeat/package.json @@ -1,5 +1,5 @@ { - "name": "async_await_end_to_end_test_functional_syntax", + "name": "heartbeat_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/src/heartbeat_async/index.ts b/tests/end_to_end/candid_rpc/functional_api/heartbeat/src/heartbeat_async/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/heartbeat/src/heartbeat_async/index.ts rename to tests/end_to_end/candid_rpc/functional_api/heartbeat/src/heartbeat_async/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/src/heartbeat_sync/index.ts b/tests/end_to_end/candid_rpc/functional_api/heartbeat/src/heartbeat_sync/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/heartbeat/src/heartbeat_sync/index.ts rename to tests/end_to_end/candid_rpc/functional_api/heartbeat/src/heartbeat_sync/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/heartbeat/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/heartbeat/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/heartbeat/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/heartbeat/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/heartbeat/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/heartbeat/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/heartbeat/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/heartbeat/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/heartbeat/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/heartbeat/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/heartbeat/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/heartbeat/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/.gitignore b/tests/end_to_end/candid_rpc/functional_api/ic_api/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ic_api/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/ic_api/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/dfx.json b/tests/end_to_end/candid_rpc/functional_api/ic_api/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ic_api/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/ic_api/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/ic_api/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ic_api/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/ic_api/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/ic_api/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ic_api/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/ic_api/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/package.json b/tests/end_to_end/candid_rpc/functional_api/ic_api/package.json similarity index 85% rename from tests/end_to_end/candid_rpc/functional_syntax/ic_api/package.json rename to tests/end_to_end/candid_rpc/functional_api/ic_api/package.json index 7bf01b1102..10d0e6198b 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/ic_api/package.json @@ -1,5 +1,5 @@ { - "name": "ic_api_end_to_end_test_functional_syntax", + "name": "ic_api_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/ic_api/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ic_api/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/ic_api/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/ic_api/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ic_api/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/ic_api/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/ic_api/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ic_api/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/ic_api/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/ic_api/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ic_api/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/ic_api/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/ic_api/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ic_api/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/ic_api/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/.gitignore b/tests/end_to_end/candid_rpc/functional_api/icrc/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/icrc/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/README.md b/tests/end_to_end/candid_rpc/functional_api/icrc/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/README.md rename to tests/end_to_end/candid_rpc/functional_api/icrc/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/canisters/proxy/LICENSE b/tests/end_to_end/candid_rpc/functional_api/icrc/canisters/proxy/LICENSE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/canisters/proxy/LICENSE rename to tests/end_to_end/candid_rpc/functional_api/icrc/canisters/proxy/LICENSE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/canisters/proxy/NOTICE b/tests/end_to_end/candid_rpc/functional_api/icrc/canisters/proxy/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/canisters/proxy/NOTICE rename to tests/end_to_end/candid_rpc/functional_api/icrc/canisters/proxy/NOTICE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/canisters/proxy/icrc.did b/tests/end_to_end/candid_rpc/functional_api/icrc/canisters/proxy/icrc.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/canisters/proxy/icrc.did rename to tests/end_to_end/candid_rpc/functional_api/icrc/canisters/proxy/icrc.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/canisters/proxy/index.ts b/tests/end_to_end/candid_rpc/functional_api/icrc/canisters/proxy/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/canisters/proxy/index.ts rename to tests/end_to_end/candid_rpc/functional_api/icrc/canisters/proxy/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/dfx.json b/tests/end_to_end/candid_rpc/functional_api/icrc/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/icrc/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/icrc/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/icrc/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/icrc/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/icrc/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/package.json b/tests/end_to_end/candid_rpc/functional_api/icrc/package.json similarity index 89% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/package.json rename to tests/end_to_end/candid_rpc/functional_api/icrc/package.json index d38a7d74b1..7562c14876 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/icrc/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/icrc/package.json @@ -1,5 +1,5 @@ { - "name": "icrc_end_to_end_test_functional_syntax", + "name": "icrc_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/params.did b/tests/end_to_end/candid_rpc/functional_api/icrc/params.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/params.did rename to tests/end_to_end/candid_rpc/functional_api/icrc/params.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/icrc/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/icrc/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/icrc/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/icrc/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/icrc/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/icrc/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/icrc/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/icrc/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/icrc/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/.gitignore b/tests/end_to_end/candid_rpc/functional_api/imports/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/imports/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/imports/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/dfx.json b/tests/end_to_end/candid_rpc/functional_api/imports/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/imports/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/imports/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/imports/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/imports/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/imports/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/imports/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/imports/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/imports/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/package.json b/tests/end_to_end/candid_rpc/functional_api/imports/package.json similarity index 86% rename from tests/end_to_end/candid_rpc/functional_syntax/imports/package.json rename to tests/end_to_end/candid_rpc/functional_api/imports/package.json index 4d6f75f4ac..a2f00d9723 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/imports/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/imports/package.json @@ -1,5 +1,5 @@ { - "name": "imports_end_to_end_test_functional_syntax", + "name": "imports_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/imports/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/imports/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/imports/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/src/library.ts b/tests/end_to_end/candid_rpc/functional_api/imports/src/library.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/imports/src/library.ts rename to tests/end_to_end/candid_rpc/functional_api/imports/src/library.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/imports/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/imports/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/imports/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/imports/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/imports/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/imports/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/imports/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/imports/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/imports/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/imports/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/imports/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/imports/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/init/.gitignore b/tests/end_to_end/candid_rpc/functional_api/init/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/init/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/init/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/init/dfx.json b/tests/end_to_end/candid_rpc/functional_api/init/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/init/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/init/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/init/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/init/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/init/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/init/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/init/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/init/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/init/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/init/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/init/package.json b/tests/end_to_end/candid_rpc/functional_api/init/package.json similarity index 85% rename from tests/end_to_end/candid_rpc/functional_syntax/init/package.json rename to tests/end_to_end/candid_rpc/functional_api/init/package.json index 4207d79252..8542e5c025 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/init/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/init/package.json @@ -1,5 +1,5 @@ { - "name": "init_end_to_end_test_functional_syntax", + "name": "init_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/init/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/init/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/init/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/init/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/init/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/init/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/init/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/init/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/init/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/init/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/init/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/init/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/init/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/init/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/init/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/init/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/init/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/init/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/init/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/init/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/.gitignore b/tests/end_to_end/candid_rpc/functional_api/inspect_message/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/inspect_message/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/inspect_message/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/dfx.json b/tests/end_to_end/candid_rpc/functional_api/inspect_message/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/inspect_message/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/inspect_message/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/inspect_message/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/inspect_message/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/inspect_message/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/inspect_message/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/inspect_message/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/inspect_message/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/package.json b/tests/end_to_end/candid_rpc/functional_api/inspect_message/package.json similarity index 84% rename from tests/end_to_end/candid_rpc/functional_syntax/manual_reply/package.json rename to tests/end_to_end/candid_rpc/functional_api/inspect_message/package.json index 19a29c9549..54dfe2c5c0 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/inspect_message/package.json @@ -1,5 +1,5 @@ { - "name": "manual_reply_end_to_end_test_functional_syntax", + "name": "inspect_message_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/inspect_message/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/inspect_message/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/inspect_message/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/inspect_message/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/inspect_message/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/inspect_message/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/inspect_message/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/inspect_message/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/inspect_message/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/inspect_message/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/inspect_message/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/inspect_message/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/inspect_message/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/inspect_message/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/inspect_message/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/.gitignore b/tests/end_to_end/candid_rpc/functional_api/key_value_store/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/key_value_store/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/key_value_store/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/dfx.json b/tests/end_to_end/candid_rpc/functional_api/key_value_store/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/key_value_store/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/key_value_store/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/key_value_store/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/key_value_store/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/key_value_store/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/key_value_store/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/key_value_store/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/key_value_store/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/package.json b/tests/end_to_end/candid_rpc/functional_api/key_value_store/package.json similarity index 83% rename from tests/end_to_end/candid_rpc/functional_syntax/inspect_message/package.json rename to tests/end_to_end/candid_rpc/functional_api/key_value_store/package.json index 44a4ccdce6..05bcf56c3f 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/key_value_store/package.json @@ -1,5 +1,5 @@ { - "name": "inspect_message_end_to_end_test_functional_syntax", + "name": "key_value_store_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/key_value_store/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/key_value_store/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/key_value_store/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/key_value_store/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/key_value_store/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/key_value_store/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/key_value_store/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/key_value_store/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/key_value_store/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/key_value_store/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/key_value_store/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/key_value_store/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/key_value_store/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/key_value_store/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/key_value_store/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/.gitignore b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/ledger_canister/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/dfx.json b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/ledger_canister/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/ledger_canister/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/ledger_canister/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/package.json b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/package.json similarity index 87% rename from tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/package.json rename to tests/end_to_end/candid_rpc/functional_api/ledger_canister/package.json index 4e5e67961d..e99e03f696 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/package.json @@ -1,5 +1,5 @@ { - "name": "ledger_canister_end_to_end_test_functional_syntax", + "name": "ledger_canister_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/src/icp_ledger/ledger.private.did b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/src/icp_ledger/ledger.private.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/src/icp_ledger/ledger.private.did rename to tests/end_to_end/candid_rpc/functional_api/ledger_canister/src/icp_ledger/ledger.private.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/src/icp_ledger/ledger.public.did b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/src/icp_ledger/ledger.public.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/src/icp_ledger/ledger.public.did rename to tests/end_to_end/candid_rpc/functional_api/ledger_canister/src/icp_ledger/ledger.public.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/src/ledger_canister/index.ts b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/src/ledger_canister/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/src/ledger_canister/index.ts rename to tests/end_to_end/candid_rpc/functional_api/ledger_canister/src/ledger_canister/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/ledger_canister/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/ledger_canister/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/ledger_canister/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/ledger_canister/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/ledger_canister/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/.gitignore b/tests/end_to_end/candid_rpc/functional_api/list_of_lists/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/list_of_lists/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/dfx.json b/tests/end_to_end/candid_rpc/functional_api/list_of_lists/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/list_of_lists/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/list_of_lists/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/list_of_lists/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/list_of_lists/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/list_of_lists/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/package.json b/tests/end_to_end/candid_rpc/functional_api/list_of_lists/package.json similarity index 85% rename from tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/package.json rename to tests/end_to_end/candid_rpc/functional_api/list_of_lists/package.json index acbfc7e33b..3a8bffa738 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/list_of_lists/package.json @@ -1,5 +1,5 @@ { - "name": "list_of_lists_end_to_end_test_functional_syntax", + "name": "list_of_lists_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/list_of_lists/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/list_of_lists/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/list_of_lists/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/list_of_lists/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/list_of_lists/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/list_of_lists/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/list_of_lists/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/list_of_lists/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/list_of_lists/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/list_of_lists/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/.gitignore b/tests/end_to_end/candid_rpc/functional_api/management_canister/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/management_canister/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/management_canister/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/dfx.json b/tests/end_to_end/candid_rpc/functional_api/management_canister/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/management_canister/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/management_canister/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/management_canister/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/management_canister/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/management_canister/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/management_canister/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/management_canister/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/management_canister/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/package.json b/tests/end_to_end/candid_rpc/functional_api/management_canister/package.json similarity index 86% rename from tests/end_to_end/candid_rpc/functional_syntax/management_canister/package.json rename to tests/end_to_end/candid_rpc/functional_api/management_canister/package.json index f70cf9cda3..5d1fbfd5ad 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/management_canister/package.json @@ -1,5 +1,5 @@ { - "name": "management_canister_end_to_end_test_functional_syntax", + "name": "management_canister_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/management_canister/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/management_canister/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/management_canister/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/src/test.wasm b/tests/end_to_end/candid_rpc/functional_api/management_canister/src/test.wasm similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/management_canister/src/test.wasm rename to tests/end_to_end/candid_rpc/functional_api/management_canister/src/test.wasm diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/management_canister/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/management_canister/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/management_canister/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/management_canister/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/management_canister/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/management_canister/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/management_canister/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/management_canister/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/management_canister/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/management_canister/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/management_canister/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/management_canister/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/.gitignore b/tests/end_to_end/candid_rpc/functional_api/manual_reply/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/manual_reply/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/manual_reply/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/dfx.json b/tests/end_to_end/candid_rpc/functional_api/manual_reply/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/manual_reply/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/manual_reply/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/manual_reply/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/manual_reply/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/manual_reply/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/manual_reply/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/manual_reply/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/manual_reply/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/principal/package.json b/tests/end_to_end/candid_rpc/functional_api/manual_reply/package.json similarity index 84% rename from tests/end_to_end/candid_rpc/functional_syntax/principal/package.json rename to tests/end_to_end/candid_rpc/functional_api/manual_reply/package.json index f05f00e0c1..b8fd805fe3 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/principal/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/manual_reply/package.json @@ -1,5 +1,5 @@ { - "name": "principal_end_to_end_test_functional_syntax", + "name": "manual_reply_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/manual_reply/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/manual_reply/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/manual_reply/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/manual_reply/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/manual_reply/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/manual_reply/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/manual_reply/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/manual_reply/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/manual_reply/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/manual_reply/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/manual_reply/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/manual_reply/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/manual_reply/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/manual_reply/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/manual_reply/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/package.json new file mode 100644 index 0000000000..3b83c6e186 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/package.json @@ -0,0 +1,17 @@ +{ + "name": "calc_end_to_end_test_functional_api", + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/calc/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/package.json new file mode 100644 index 0000000000..274d287039 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/package.json @@ -0,0 +1,17 @@ +{ + "name": "counter_end_to_end_test_functional_api", + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/counter/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/package.json new file mode 100644 index 0000000000..3758fc1c5f --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/package.json @@ -0,0 +1,17 @@ +{ + "name": "echo_end_to_end_test_functional_api", + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/echo/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/package.json new file mode 100644 index 0000000000..519432cc94 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/package.json @@ -0,0 +1,17 @@ +{ + "name": "factorial_end_to_end_test_functional_api", + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/factorial/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/package.json similarity index 85% rename from tests/end_to_end/candid_rpc/functional_syntax/call_raw/package.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/package.json index 943c43841f..644e529d53 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/package.json @@ -1,5 +1,5 @@ { - "name": "call_raw_end_to_end_test_functional_syntax", + "name": "hello-world_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello-world/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/NOTICE b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/NOTICE rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/NOTICE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/package.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/package.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/package.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello_assets/assets/favicon.ico b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello_assets/assets/favicon.ico similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello_assets/assets/favicon.ico rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello_assets/assets/favicon.ico diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello_assets/assets/logo.png b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello_assets/assets/logo.png similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello_assets/assets/logo.png rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello_assets/assets/logo.png diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello_assets/assets/main.css b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello_assets/assets/main.css similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello_assets/assets/main.css rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello_assets/assets/main.css diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello_assets/assets/sample-asset.txt b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello_assets/assets/sample-asset.txt similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello_assets/assets/sample-asset.txt rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello_assets/assets/sample-asset.txt diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello_assets/src/index.html b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello_assets/src/index.html similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello_assets/src/index.html rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello_assets/src/index.html diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello_assets/src/index.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello_assets/src/index.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/src/hello_assets/src/index.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/src/hello_assets/src/index.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/webpack.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/webpack.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/webpack.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/hello/webpack.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/NOTICE b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/NOTICE rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/NOTICE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/package.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/package.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/package.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/src/index.did b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/src/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/src/index.did rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/src/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/http_counter/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/NOTICE b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/NOTICE rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/NOTICE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/package.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/package.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/package.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/logo.png b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/logo.png similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/logo.png rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/logo.png diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/main.css b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/main.css similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/main.css rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/main.css diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/sample-asset.txt b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/sample-asset.txt similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/sample-asset.txt rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/assets/sample-asset.txt diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.html b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.html similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.html rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.html diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/src/minimal_dapp_assets/src/index.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/webpack.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/webpack.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/webpack.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/minimal-counter-dapp/webpack.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/NOTICE b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/NOTICE rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/NOTICE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/package.json similarity index 83% rename from tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/package.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/package.json index 748200b3b1..d8a595ee69 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/package.json @@ -1,5 +1,5 @@ { - "name": "candid_encoding_end_to_end_test_functional_syntax", + "name": "persistent-storage_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/persistent-storage/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/NOTICE b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/NOTICE rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/NOTICE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/package.json similarity index 95% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/package.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/package.json index 5a2dccfc34..7622cbe8da 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/package.json @@ -1,5 +1,5 @@ { - "name": "phone-book_end_to_end_test_functional_syntax", + "name": "phone-book_end_to_end_test_functional_api", "scripts": { "build": "webpack", "prebuild": "npm run generate", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/declarations/phone_book/index.d.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/declarations/phone_book/index.d.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/declarations/phone_book/index.d.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/declarations/phone_book/index.d.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/declarations/phone_book/index.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/declarations/phone_book/index.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/declarations/phone_book/index.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/declarations/phone_book/index.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.d.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.d.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.d.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.d.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/phone_book/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/phone_book/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/phone_book/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/phone_book/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/www/assets/sample-asset.txt b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/www/assets/sample-asset.txt similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/www/assets/sample-asset.txt rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/www/assets/sample-asset.txt diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/www/src/index.html b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/www/src/index.html similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/www/src/index.html rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/www/src/index.html diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/www/src/index.jsx b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/www/src/index.jsx similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/src/www/src/index.jsx rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/src/www/src/index.jsx diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/tsconfig.webpack.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/tsconfig.webpack.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/tsconfig.webpack.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/tsconfig.webpack.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/webpack.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/webpack.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/webpack.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/phone-book/webpack.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/package.json new file mode 100644 index 0000000000..eb07d62e01 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/package.json @@ -0,0 +1,17 @@ +{ + "name": "quicksort_end_to_end_test_functional_api", + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/src/comparison.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/src/comparison.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/src/comparison.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/src/comparison.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/src/quicksort.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/src/quicksort.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/src/quicksort.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/src/quicksort.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/quicksort/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/package.json new file mode 100644 index 0000000000..d1d7148e48 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/package.json @@ -0,0 +1,17 @@ +{ + "name": "simple-to-do_end_to_end_test_functional_api", + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "ts-jest": "^29.1.4", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/simple-to-do/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/NOTICE b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/NOTICE similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/NOTICE rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/NOTICE diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/package.json similarity index 95% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/package.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/package.json index da6b9b32aa..cf83e042bc 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/package.json @@ -1,5 +1,5 @@ { - "name": "superheroes_end_to_end_test_functional_syntax", + "name": "superheroes_end_to_end_test_functional_api", "scripts": { "build": "webpack", "prebuild": "npm run generate", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/declarations/index.d.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/declarations/index.d.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/declarations/index.d.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/declarations/index.d.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/declarations/index.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/declarations/index.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/declarations/index.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/declarations/index.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/declarations/superheroes.did b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/declarations/superheroes.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/declarations/superheroes.did rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/declarations/superheroes.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/declarations/superheroes.did.d.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/declarations/superheroes.did.d.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/declarations/superheroes.did.d.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/declarations/superheroes.did.d.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/declarations/superheroes.did.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/declarations/superheroes.did.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/declarations/superheroes.did.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/declarations/superheroes.did.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/superheroes/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/superheroes/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/superheroes/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/superheroes/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/www/components/create.jsx b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/www/components/create.jsx similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/www/components/create.jsx rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/www/components/create.jsx diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/www/components/delete.jsx b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/www/components/delete.jsx similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/www/components/delete.jsx rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/www/components/delete.jsx diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/www/components/read.jsx b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/www/components/read.jsx similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/www/components/read.jsx rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/www/components/read.jsx diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/www/components/update.jsx b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/www/components/update.jsx similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/www/components/update.jsx rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/www/components/update.jsx diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/www/index.html b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/www/index.html similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/www/index.html rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/www/index.html diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/www/index.jsx b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/www/index.jsx similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/src/www/index.jsx rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/src/www/index.jsx diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/tsconfig.webpack.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/tsconfig.webpack.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/tsconfig.webpack.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/tsconfig.webpack.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/webpack.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/webpack.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/webpack.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/superheroes/webpack.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/package.json similarity index 88% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/package.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/package.json index b91137a364..65dfa03448 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/package.json @@ -1,5 +1,5 @@ { - "name": "threshold_ecdsa_end_to_end_test_functional_syntax", + "name": "threshold_ecdsa_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/threshold_ecdsa/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/.gitignore b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/README.md b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/README.md similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/README.md rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/README.md diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/dfx.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/package.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/package.json similarity index 89% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/package.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/package.json index a163c8d4c5..c1346bc0e7 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/package.json @@ -1,5 +1,5 @@ { - "name": "whoami_end_to_end_test_functional_syntax", + "name": "whoami_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/src/index.did b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/src/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/src/index.did rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/src/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/motoko_examples/whoami/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/.gitignore b/tests/end_to_end/candid_rpc/functional_api/notify_raw/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/notify_raw/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/notify_raw/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/dfx.json b/tests/end_to_end/candid_rpc/functional_api/notify_raw/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/notify_raw/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/notify_raw/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/notify_raw/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/notify_raw/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/notify_raw/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/notify_raw/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/notify_raw/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/notify_raw/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/package.json b/tests/end_to_end/candid_rpc/functional_api/notify_raw/package.json similarity index 84% rename from tests/end_to_end/candid_rpc/functional_syntax/notify_raw/package.json rename to tests/end_to_end/candid_rpc/functional_api/notify_raw/package.json index c15bfc2f1d..26814f288e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/notify_raw/package.json @@ -1,5 +1,5 @@ { - "name": "notify_raw_end_to_end_test_functional_syntax", + "name": "notify_raw_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/src/canister1/index.ts b/tests/end_to_end/candid_rpc/functional_api/notify_raw/src/canister1/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/notify_raw/src/canister1/index.ts rename to tests/end_to_end/candid_rpc/functional_api/notify_raw/src/canister1/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/src/canister2/index.ts b/tests/end_to_end/candid_rpc/functional_api/notify_raw/src/canister2/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/notify_raw/src/canister2/index.ts rename to tests/end_to_end/candid_rpc/functional_api/notify_raw/src/canister2/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/notify_raw/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/notify_raw/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/notify_raw/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/notify_raw/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/notify_raw/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/notify_raw/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/notify_raw/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/notify_raw/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/notify_raw/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/notify_raw/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/notify_raw/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/notify_raw/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/null_example/.gitignore b/tests/end_to_end/candid_rpc/functional_api/null_example/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/null_example/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/null_example/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/null_example/dfx.json b/tests/end_to_end/candid_rpc/functional_api/null_example/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/null_example/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/null_example/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/null_example/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/null_example/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/null_example/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/null_example/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/null_example/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/null_example/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/null_example/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/null_example/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/randomness/package.json b/tests/end_to_end/candid_rpc/functional_api/null_example/package.json similarity index 84% rename from tests/end_to_end/candid_rpc/functional_syntax/randomness/package.json rename to tests/end_to_end/candid_rpc/functional_api/null_example/package.json index d1f3d3e2d5..5be8f487bf 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/randomness/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/null_example/package.json @@ -1,5 +1,5 @@ { - "name": "randomness_end_to_end_test_functional_syntax", + "name": "null_example_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/null_example/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/null_example/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/null_example/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/null_example/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/null_example/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/null_example/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/null_example/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/null_example/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/null_example/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/null_example/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/null_example/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/null_example/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/null_example/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/null_example/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/null_example/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/null_example/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/null_example/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/null_example/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/null_example/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/null_example/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/.gitignore b/tests/end_to_end/candid_rpc/functional_api/optional_types/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/optional_types/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/optional_types/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/dfx.json b/tests/end_to_end/candid_rpc/functional_api/optional_types/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/optional_types/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/optional_types/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/optional_types/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/optional_types/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/optional_types/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/optional_types/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/optional_types/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/optional_types/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/package.json b/tests/end_to_end/candid_rpc/functional_api/optional_types/package.json similarity index 86% rename from tests/end_to_end/candid_rpc/functional_syntax/optional_types/package.json rename to tests/end_to_end/candid_rpc/functional_api/optional_types/package.json index 31b71e1596..9ccefb5d05 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/optional_types/package.json @@ -1,5 +1,5 @@ { - "name": "optional_types_end_to_end_test_functional_syntax", + "name": "optional_types_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/optional_types/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/optional_types/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/optional_types/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/optional_types/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/optional_types/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/optional_types/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/optional_types/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/optional_types/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/optional_types/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/optional_types/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/optional_types/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/optional_types/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/optional_types/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/optional_types/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/optional_types/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/.gitignore b/tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/dfx.json b/tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/package.json b/tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/package.json similarity index 87% rename from tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/package.json rename to tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/package.json index fb7f91748c..4d9d48bf00 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/package.json @@ -1,5 +1,5 @@ { - "name": "outgoing_http_requests_end_to_end_test_functional_syntax", + "name": "outgoing_http_requests_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/outgoing_http_requests/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/.gitignore b/tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/dfx.json b/tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/package.json b/tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/package.json similarity index 83% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/package.json rename to tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/package.json index 64cdda1fd3..a263a29dce 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/package.json @@ -1,5 +1,5 @@ { - "name": "stable_structures_end_to_end_test_functional_syntax", + "name": "pre_and_post_upgrade_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/pre_and_post_upgrade/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/.gitignore b/tests/end_to_end/candid_rpc/functional_api/primitive_types/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/primitive_types/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/primitive_types/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/dfx.json b/tests/end_to_end/candid_rpc/functional_api/primitive_types/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/primitive_types/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/primitive_types/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/primitive_types/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/primitive_types/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/primitive_types/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/primitive_types/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/primitive_types/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/primitive_types/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/primitive_types/package.json b/tests/end_to_end/candid_rpc/functional_api/primitive_types/package.json new file mode 100644 index 0000000000..08cc43b884 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/primitive_types/package.json @@ -0,0 +1,17 @@ +{ + "name": "primitive_types_end_to_end_test_functional_api", + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/primitive_types/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/primitive_types/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/primitive_types/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/primitive_types/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/primitive_types/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/primitive_types/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/primitive_types/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/primitive_types/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/primitive_types/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/primitive_types/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/primitive_types/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/primitive_types/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/primitive_types/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/primitive_types/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/primitive_types/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/principal/.gitignore b/tests/end_to_end/candid_rpc/functional_api/principal/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/principal/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/principal/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/principal/dfx.json b/tests/end_to_end/candid_rpc/functional_api/principal/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/principal/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/principal/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/principal/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/principal/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/principal/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/principal/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/principal/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/principal/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/principal/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/principal/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/principal/package.json b/tests/end_to_end/candid_rpc/functional_api/principal/package.json new file mode 100644 index 0000000000..a98bbf4d05 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/principal/package.json @@ -0,0 +1,17 @@ +{ + "name": "principal_end_to_end_test_functional_api", + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/principal/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/principal/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/principal/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/principal/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/principal/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/principal/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/principal/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/principal/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/principal/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/principal/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/principal/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/principal/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/principal/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/principal/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/principal/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/principal/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/principal/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/principal/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/principal/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/principal/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/query/.gitignore b/tests/end_to_end/candid_rpc/functional_api/query/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/query/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/query/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/query/dfx.json b/tests/end_to_end/candid_rpc/functional_api/query/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/query/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/query/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/query/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/query/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/query/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/query/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/query/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/query/package-lock.json similarity index 99% rename from tests/end_to_end/candid_rpc/functional_syntax/query/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/query/package-lock.json index eab164dfd9..7fdf951c4f 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/query/package-lock.json +++ b/tests/end_to_end/candid_rpc/functional_api/query/package-lock.json @@ -1,10 +1,10 @@ { - "name": "query_end_to_end_test_functional_syntax", + "name": "query_end_to_end_test_functional_api", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "query_end_to_end_test_functional_syntax", + "name": "query_end_to_end_test_functional_api", "dependencies": { "azle": "0.23.0" }, diff --git a/tests/end_to_end/candid_rpc/functional_syntax/query/package.json b/tests/end_to_end/candid_rpc/functional_api/query/package.json similarity index 85% rename from tests/end_to_end/candid_rpc/functional_syntax/query/package.json rename to tests/end_to_end/candid_rpc/functional_api/query/package.json index 95a6e96c7a..3cc7399f7d 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/query/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/query/package.json @@ -1,5 +1,5 @@ { - "name": "query_end_to_end_test_functional_syntax", + "name": "query_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/query/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/query/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/query/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/query/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/query/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/query/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/query/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/query/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/query/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/query/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/query/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/query/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/query/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/query/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/query/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/query/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/query/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/query/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/query/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/query/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/randomness/.gitignore b/tests/end_to_end/candid_rpc/functional_api/randomness/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/randomness/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/randomness/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/randomness/dfx.json b/tests/end_to_end/candid_rpc/functional_api/randomness/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/randomness/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/randomness/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/randomness/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/randomness/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/randomness/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/randomness/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/randomness/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/randomness/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/randomness/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/randomness/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/package.json b/tests/end_to_end/candid_rpc/functional_api/randomness/package.json similarity index 84% rename from tests/end_to_end/candid_rpc/functional_syntax/tuple_types/package.json rename to tests/end_to_end/candid_rpc/functional_api/randomness/package.json index 77578c7df3..6a55f01203 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/randomness/package.json @@ -1,5 +1,5 @@ { - "name": "tuple_types_end_to_end_test_functional_syntax", + "name": "randomness_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/randomness/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/randomness/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/randomness/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/randomness/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/randomness/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/randomness/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/randomness/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/randomness/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/randomness/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/randomness/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/randomness/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/randomness/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/randomness/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/randomness/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/randomness/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/randomness/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/randomness/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/randomness/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/randomness/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/randomness/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/.gitignore b/tests/end_to_end/candid_rpc/functional_api/recursion/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/recursion/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/recursion/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/dfx.json b/tests/end_to_end/candid_rpc/functional_api/recursion/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/recursion/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/recursion/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/recursion/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/recursion/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/recursion/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/recursion/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/recursion/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/recursion/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/package.json b/tests/end_to_end/candid_rpc/functional_api/recursion/package.json similarity index 88% rename from tests/end_to_end/candid_rpc/functional_syntax/recursion/package.json rename to tests/end_to_end/candid_rpc/functional_api/recursion/package.json index cd094a6e2e..afef002518 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/recursion/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/recursion/package.json @@ -1,5 +1,5 @@ { - "name": "recursion_end_to_end_test_functional_syntax", + "name": "recursion_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/src/recursion/index.ts b/tests/end_to_end/candid_rpc/functional_api/recursion/src/recursion/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/recursion/src/recursion/index.ts rename to tests/end_to_end/candid_rpc/functional_api/recursion/src/recursion/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/src/recursive_canister/index.did b/tests/end_to_end/candid_rpc/functional_api/recursion/src/recursive_canister/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/recursion/src/recursive_canister/index.did rename to tests/end_to_end/candid_rpc/functional_api/recursion/src/recursive_canister/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/src/recursive_canister/index.ts b/tests/end_to_end/candid_rpc/functional_api/recursion/src/recursive_canister/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/recursion/src/recursive_canister/index.ts rename to tests/end_to_end/candid_rpc/functional_api/recursion/src/recursive_canister/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/recursion/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/recursion/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/recursion/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/recursion/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/recursion/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/recursion/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/recursion/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/recursion/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/recursion/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/recursion/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/recursion/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/recursion/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/.gitignore b/tests/end_to_end/candid_rpc/functional_api/rejections/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/rejections/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/dfx.json b/tests/end_to_end/candid_rpc/functional_api/rejections/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/rejections/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/rejections/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/rejections/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/rejections/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/rejections/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/package.json b/tests/end_to_end/candid_rpc/functional_api/rejections/package.json similarity index 88% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/package.json rename to tests/end_to_end/candid_rpc/functional_api/rejections/package.json index 8193a69152..ae08dab6bf 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/rejections/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/rejections/package.json @@ -1,5 +1,5 @@ { - "name": "rejections_end_to_end_test_functional_syntax", + "name": "rejections_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/src/nonexistent.did b/tests/end_to_end/candid_rpc/functional_api/rejections/src/nonexistent.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/src/nonexistent.did rename to tests/end_to_end/candid_rpc/functional_api/rejections/src/nonexistent.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/src/rejections/index.ts b/tests/end_to_end/candid_rpc/functional_api/rejections/src/rejections/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/src/rejections/index.ts rename to tests/end_to_end/candid_rpc/functional_api/rejections/src/rejections/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/src/some_canister/index.did b/tests/end_to_end/candid_rpc/functional_api/rejections/src/some_canister/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/src/some_canister/index.did rename to tests/end_to_end/candid_rpc/functional_api/rejections/src/some_canister/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/src/some_canister/index.ts b/tests/end_to_end/candid_rpc/functional_api/rejections/src/some_canister/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/src/some_canister/index.ts rename to tests/end_to_end/candid_rpc/functional_api/rejections/src/some_canister/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/rejections/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/rejections/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/rejections/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/rejections/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/rejections/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/rejections/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/rejections/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/rejections/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/rejections/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/.gitignore b/tests/end_to_end/candid_rpc/functional_api/robust_imports/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/dfx.json b/tests/end_to_end/candid_rpc/functional_api/robust_imports/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/robust_imports/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/robust_imports/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/package.json b/tests/end_to_end/candid_rpc/functional_api/robust_imports/package.json similarity index 83% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/package.json rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/package.json index 8ed5ad19db..dc6a28280b 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/robust_imports/package.json @@ -1,5 +1,5 @@ { - "name": "robust_imports_end_to_end_test_functional_syntax", + "name": "robust_imports_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/azle_coverage/fruit.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/azle_coverage/fruit.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/azle_coverage/fruit.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/azle_coverage/fruit.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/azle_coverage/index.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/azle_coverage/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/azle_coverage/index.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/azle_coverage/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/import_coverage/index.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/import_coverage/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/import_coverage/index.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/import_coverage/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/import_coverage/types.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/import_coverage/types.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/import_coverage/types.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/import_coverage/types.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/ts_primitives/index.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/ts_primitives/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/ts_primitives/index.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/ts_primitives/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/deep_alias/deeper_alias.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/deep_alias/deeper_alias.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/deep_alias/deeper_alias.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/deep_alias/deeper_alias.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/deep_alias/deepest_alias.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/deep_alias/deepest_alias.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/deep_alias/deepest_alias.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/deep_alias/deepest_alias.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/deep_alias/index.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/deep_alias/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/deep_alias/index.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/deep_alias/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/index.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/index.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/mixed_alias/index.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/mixed_alias/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/mixed_alias/index.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/mixed_alias/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/mixed_alias/mixed_alias.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/mixed_alias/mixed_alias.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/mixed_alias/mixed_alias.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/mixed_alias/mixed_alias.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/mixed_alias/user_defined_types.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/mixed_alias/user_defined_types.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/mixed_alias/user_defined_types.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/mixed_alias/user_defined_types.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/types.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/types.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/type_alias_decls/types.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/type_alias_decls/types.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/types/deep/deeper.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/types/deep/deeper.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/types/deep/deeper.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/types/deep/deeper.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/types/deep/deepest.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/types/deep/deepest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/types/deep/deepest.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/types/deep/deepest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/types/deep/index.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/types/deep/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/types/deep/index.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/types/deep/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/types/deep/shallow.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/src/types/deep/shallow.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/src/types/deep/shallow.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/src/types/deep/shallow.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/robust_imports/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/robust_imports/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/robust_imports/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/robust_imports/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/.gitignore b/tests/end_to_end/candid_rpc/functional_api/simple_erc20/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/simple_erc20/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/dfx.json b/tests/end_to_end/candid_rpc/functional_api/simple_erc20/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/simple_erc20/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/simple_erc20/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/simple_erc20/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/simple_erc20/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/simple_erc20/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/simple_erc20/package.json b/tests/end_to_end/candid_rpc/functional_api/simple_erc20/package.json new file mode 100644 index 0000000000..683349035e --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/simple_erc20/package.json @@ -0,0 +1,17 @@ +{ + "name": "simple_erc20_end_to_end_test_functional_api", + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "0.11.1", + "jest": "^29.7.0", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/simple_erc20/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/simple_erc20/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/simple_erc20/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/simple_erc20/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/simple_erc20/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/simple_erc20/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/simple_erc20/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/simple_erc20/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/simple_erc20/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/simple_erc20/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/.gitignore b/tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/dfx.json b/tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/package.json b/tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/package.json similarity index 83% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/package.json rename to tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/package.json index 6b3f0112ba..9bd546ffa5 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/package.json @@ -1,5 +1,5 @@ { - "name": "simple_user_accounts_end_to_end_test_functional_syntax", + "name": "simple_user_accounts_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/src/index.did b/tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/src/index.did similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/src/index.did rename to tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/src/index.did diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/simple_user_accounts/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/.gitignore b/tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/dfx.json b/tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/package.json b/tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/package.json similarity index 94% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/package.json rename to tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/package.json index 721098cd65..4a2550430d 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/package.json @@ -1,5 +1,5 @@ { - "name": "stable_b_tree_map_instruction_threshold_end_to_end_test_functional_syntax", + "name": "stable_b_tree_map_instruction_threshold_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/stable_b_tree_map_instruction_threshold/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/.gitignore b/tests/end_to_end/candid_rpc/functional_api/stable_structures/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/dfx.json b/tests/end_to_end/candid_rpc/functional_api/stable_structures/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/stable_structures/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/stable_structures/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/stable_structures/package.json b/tests/end_to_end/candid_rpc/functional_api/stable_structures/package.json new file mode 100644 index 0000000000..4deacf4633 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/stable_structures/package.json @@ -0,0 +1,17 @@ +{ + "name": "stable_structures_end_to_end_test_functional_api", + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "^0.19.2", + "jest": "^29.7.0", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister1/index.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister1/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister1/index.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister1/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister1/stable_map_0.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister1/stable_map_0.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister1/stable_map_0.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister1/stable_map_0.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister1/stable_map_1.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister1/stable_map_1.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister1/stable_map_1.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister1/stable_map_1.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister1/stable_map_2.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister1/stable_map_2.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister1/stable_map_2.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister1/stable_map_2.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister1/stable_map_3.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister1/stable_map_3.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister1/stable_map_3.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister1/stable_map_3.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister1/stable_map_4.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister1/stable_map_4.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister1/stable_map_4.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister1/stable_map_4.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister2/index.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister2/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister2/index.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister2/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister2/stable_map_5.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister2/stable_map_5.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister2/stable_map_5.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister2/stable_map_5.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister2/stable_map_6.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister2/stable_map_6.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister2/stable_map_6.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister2/stable_map_6.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister2/stable_map_7.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister2/stable_map_7.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister2/stable_map_7.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister2/stable_map_7.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister2/stable_map_8.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister2/stable_map_8.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister2/stable_map_8.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister2/stable_map_8.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister2/stable_map_9.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister2/stable_map_9.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister2/stable_map_9.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister2/stable_map_9.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/index.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/index.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_10.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_10.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_10.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_10.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_11.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_11.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_11.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_11.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_12.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_12.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_12.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_12.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_13.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_13.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_13.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_13.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_14.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_14.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_14.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_14.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_15.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_15.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_15.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_15.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_16.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_16.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_16.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_16.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_17.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_17.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/canister3/stable_map_17.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/canister3/stable_map_17.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/types.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/src/types.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/src/types.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/src/types.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/stable_structures/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/stable_structures/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/stable_structures/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/stable_structures/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/timers/.gitignore b/tests/end_to_end/candid_rpc/functional_api/timers/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/timers/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/timers/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/timers/dfx.json b/tests/end_to_end/candid_rpc/functional_api/timers/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/timers/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/timers/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/timers/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/timers/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/timers/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/timers/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/timers/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/timers/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/timers/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/timers/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/timers/package.json b/tests/end_to_end/candid_rpc/functional_api/timers/package.json similarity index 88% rename from tests/end_to_end/candid_rpc/functional_syntax/timers/package.json rename to tests/end_to_end/candid_rpc/functional_api/timers/package.json index 65d662ceea..f1f5e73c04 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/timers/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/timers/package.json @@ -1,5 +1,5 @@ { - "name": "timers_end_to_end_test_functional_syntax", + "name": "timers_end_to_end_test_functional_api", "scripts": { "pre_tests": "tsx test/pretest.ts", "tests": "npm run pre_tests && jest", diff --git a/tests/end_to_end/candid_rpc/functional_syntax/timers/src/timers.ts b/tests/end_to_end/candid_rpc/functional_api/timers/src/timers.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/timers/src/timers.ts rename to tests/end_to_end/candid_rpc/functional_api/timers/src/timers.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/timers/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/timers/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/timers/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/timers/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/timers/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/timers/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/timers/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/timers/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/timers/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/timers/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/timers/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/timers/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/timers/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/timers/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/timers/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/timers/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/.gitignore b/tests/end_to_end/candid_rpc/functional_api/tuple_types/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/tuple_types/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/tuple_types/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/dfx.json b/tests/end_to_end/candid_rpc/functional_api/tuple_types/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/tuple_types/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/tuple_types/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/tuple_types/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/tuple_types/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/tuple_types/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/tuple_types/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/tuple_types/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/tuple_types/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_api/tuple_types/package.json b/tests/end_to_end/candid_rpc/functional_api/tuple_types/package.json new file mode 100644 index 0000000000..c37b644be5 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_api/tuple_types/package.json @@ -0,0 +1,17 @@ +{ + "name": "tuple_types_end_to_end_test_functional_api", + "scripts": { + "pretest": "tsx test/pretest.ts", + "test": "jest" + }, + "dependencies": { + "azle": "0.23.0" + }, + "devDependencies": { + "@dfinity/agent": "0.11.1", + "jest": "^29.7.0", + "ts-jest": "^29.1.5", + "tsx": "^4.15.7", + "typescript": "^5.2.2" + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/tuple_types/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/tuple_types/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/tuple_types/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/tuple_types/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/tuple_types/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/tuple_types/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/tuple_types/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/tuple_types/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/tuple_types/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/tuple_types/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/tuple_types/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/tuple_types/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/tuple_types/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/tuple_types/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/tuple_types/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/update/.gitignore b/tests/end_to_end/candid_rpc/functional_api/update/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/update/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/update/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/update/dfx.json b/tests/end_to_end/candid_rpc/functional_api/update/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/update/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/update/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/update/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/update/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/update/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/update/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/update/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/update/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/update/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/update/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/update/package.json b/tests/end_to_end/candid_rpc/functional_api/update/package.json similarity index 85% rename from tests/end_to_end/candid_rpc/functional_syntax/update/package.json rename to tests/end_to_end/candid_rpc/functional_api/update/package.json index 09212b175e..5474942a2c 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/update/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/update/package.json @@ -1,5 +1,5 @@ { - "name": "update_end_to_end_test_functional_syntax", + "name": "update_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/update/src/index.ts b/tests/end_to_end/candid_rpc/functional_api/update/src/index.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/update/src/index.ts rename to tests/end_to_end/candid_rpc/functional_api/update/src/index.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/update/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/update/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/update/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/update/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/update/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/update/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/update/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/update/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/update/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/update/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/update/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/update/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/update/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/update/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/update/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/update/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/.gitignore b/tests/end_to_end/candid_rpc/functional_api/vanilla_js/.gitignore similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/.gitignore rename to tests/end_to_end/candid_rpc/functional_api/vanilla_js/.gitignore diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/dfx.json b/tests/end_to_end/candid_rpc/functional_api/vanilla_js/dfx.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/dfx.json rename to tests/end_to_end/candid_rpc/functional_api/vanilla_js/dfx.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/jest.config.js b/tests/end_to_end/candid_rpc/functional_api/vanilla_js/jest.config.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/jest.config.js rename to tests/end_to_end/candid_rpc/functional_api/vanilla_js/jest.config.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/package-lock.json b/tests/end_to_end/candid_rpc/functional_api/vanilla_js/package-lock.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/package-lock.json rename to tests/end_to_end/candid_rpc/functional_api/vanilla_js/package-lock.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/package.json b/tests/end_to_end/candid_rpc/functional_api/vanilla_js/package.json similarity index 85% rename from tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/package.json rename to tests/end_to_end/candid_rpc/functional_api/vanilla_js/package.json index 766aaf45bf..19c2b18b52 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/package.json +++ b/tests/end_to_end/candid_rpc/functional_api/vanilla_js/package.json @@ -1,5 +1,5 @@ { - "name": "vanilla_js_end_to_end_test_functional_syntax", + "name": "vanilla_js_end_to_end_test_functional_api", "scripts": { "pretest": "tsx test/pretest.ts", "test": "jest" diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/src/index.js b/tests/end_to_end/candid_rpc/functional_api/vanilla_js/src/index.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/src/index.js rename to tests/end_to_end/candid_rpc/functional_api/vanilla_js/src/index.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/src/library.js b/tests/end_to_end/candid_rpc/functional_api/vanilla_js/src/library.js similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/src/library.js rename to tests/end_to_end/candid_rpc/functional_api/vanilla_js/src/library.js diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/test/pretest.ts b/tests/end_to_end/candid_rpc/functional_api/vanilla_js/test/pretest.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/test/pretest.ts rename to tests/end_to_end/candid_rpc/functional_api/vanilla_js/test/pretest.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/test/test.ts b/tests/end_to_end/candid_rpc/functional_api/vanilla_js/test/test.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/test/test.ts rename to tests/end_to_end/candid_rpc/functional_api/vanilla_js/test/test.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/test/tests.ts b/tests/end_to_end/candid_rpc/functional_api/vanilla_js/test/tests.ts similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/test/tests.ts rename to tests/end_to_end/candid_rpc/functional_api/vanilla_js/test/tests.ts diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/tsconfig.json b/tests/end_to_end/candid_rpc/functional_api/vanilla_js/tsconfig.json similarity index 100% rename from tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/tsconfig.json rename to tests/end_to_end/candid_rpc/functional_api/vanilla_js/tsconfig.json diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/package.json b/tests/end_to_end/candid_rpc/functional_syntax/complex_init/package.json deleted file mode 100644 index fc20086fd9..0000000000 --- a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "complex_init_end_to_end_test_functional_syntax", - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/package.json b/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/package.json deleted file mode 100644 index 5856937b1c..0000000000 --- a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "cross_canister_calls_end_to_end_test_functional_syntax", - "scripts": { - "pre_tests": "tsx test/pretest.ts", - "tests": "npm run pre_tests && jest", - "test": "AZLE_TEST_FETCH=false npm run tests && AZLE_TEST_FETCH=true npm run tests" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/package.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/package.json deleted file mode 100644 index 45e4310663..0000000000 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "counter_end_to_end_test_functional_syntax", - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/package.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/package.json deleted file mode 100644 index 3c8db5d032..0000000000 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "factorial_end_to_end_test_functional_syntax", - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/package.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/package.json deleted file mode 100644 index bfcd39055e..0000000000 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "hello-world_end_to_end_test_functional_syntax", - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/package.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/package.json deleted file mode 100644 index a875f62e2d..0000000000 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "persistent-storage_end_to_end_test_functional_syntax", - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/package.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/package.json deleted file mode 100644 index 3c8f0126d4..0000000000 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "quicksort_end_to_end_test_functional_syntax", - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/package.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/package.json deleted file mode 100644 index a0ab4f7161..0000000000 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "simple-to-do_end_to_end_test_functional_syntax", - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "ts-jest": "^29.1.4", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/package.json b/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/package.json deleted file mode 100644 index 559fede634..0000000000 --- a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "pre_and_post_upgrade_end_to_end_test_functional_syntax", - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/package.json b/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/package.json deleted file mode 100644 index 3ebe29f126..0000000000 --- a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "primitive_types_end_to_end_test_functional_syntax", - "scripts": { - "pretest": "tsx test/pretest.ts", - "test": "jest" - }, - "dependencies": { - "azle": "0.23.0" - }, - "devDependencies": { - "@dfinity/agent": "^0.19.2", - "jest": "^29.7.0", - "ts-jest": "^29.1.5", - "tsx": "^4.15.7", - "typescript": "^5.2.2" - } -} diff --git a/tests/property/candid_rpc/class_syntax/blob/dfx.json b/tests/property/candid_rpc/class_api/blob/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/blob/dfx.json rename to tests/property/candid_rpc/class_api/blob/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/blob/package-lock.json b/tests/property/candid_rpc/class_api/blob/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/blob/package-lock.json rename to tests/property/candid_rpc/class_api/blob/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/blob/package.json b/tests/property/candid_rpc/class_api/blob/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/blob/package.json rename to tests/property/candid_rpc/class_api/blob/package.json diff --git a/tests/property/candid_rpc/class_syntax/blob/test/generate_body.ts b/tests/property/candid_rpc/class_api/blob/test/generate_body.ts similarity index 79% rename from tests/property/candid_rpc/class_syntax/blob/test/generate_body.ts rename to tests/property/candid_rpc/class_api/blob/test/generate_body.ts index a4b13c01e7..d42cc53f6d 100644 --- a/tests/property/candid_rpc/class_syntax/blob/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/blob/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamBlobs: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/blob/test/generate_tests.ts b/tests/property/candid_rpc/class_api/blob/test/generate_tests.ts similarity index 81% rename from tests/property/candid_rpc/class_syntax/blob/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/blob/test/generate_tests.ts index 7a40235d34..486dfabddd 100644 --- a/tests/property/candid_rpc/class_syntax/blob/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/blob/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/blob/test/test.ts b/tests/property/candid_rpc/class_api/blob/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/blob/test/test.ts rename to tests/property/candid_rpc/class_api/blob/test/test.ts index a133606328..d06aeedbab 100644 --- a/tests/property/candid_rpc/class_syntax/blob/test/test.ts +++ b/tests/property/candid_rpc/class_api/blob/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { BlobArb } from 'azle/property_tests/arbitraries/candid/constructed/blob_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { BlobArb } from 'azle/test/property/arbitraries/candid/constructed/blob_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/blob/tsconfig.json b/tests/property/candid_rpc/class_api/blob/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/blob/tsconfig.json rename to tests/property/candid_rpc/class_api/blob/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/bool/dfx.json b/tests/property/candid_rpc/class_api/bool/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/bool/dfx.json rename to tests/property/candid_rpc/class_api/bool/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/bool/package-lock.json b/tests/property/candid_rpc/class_api/bool/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/bool/package-lock.json rename to tests/property/candid_rpc/class_api/bool/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/bool/package.json b/tests/property/candid_rpc/class_api/bool/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/bool/package.json rename to tests/property/candid_rpc/class_api/bool/package.json diff --git a/tests/property/candid_rpc/functional_syntax/bool/test/generate_body.ts b/tests/property/candid_rpc/class_api/bool/test/generate_body.ts similarity index 79% rename from tests/property/candid_rpc/functional_syntax/bool/test/generate_body.ts rename to tests/property/candid_rpc/class_api/bool/test/generate_body.ts index 563aed3275..994df55128 100644 --- a/tests/property/candid_rpc/functional_syntax/bool/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/bool/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamBools: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/bool/test/generate_tests.ts b/tests/property/candid_rpc/class_api/bool/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/functional_syntax/bool/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/bool/test/generate_tests.ts index a91e7cc3b6..f502a7d3d1 100644 --- a/tests/property/candid_rpc/functional_syntax/bool/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/bool/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/bool/test/test.ts b/tests/property/candid_rpc/class_api/bool/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/bool/test/test.ts rename to tests/property/candid_rpc/class_api/bool/test/test.ts index e2ef87d7af..1840637c30 100644 --- a/tests/property/candid_rpc/class_syntax/bool/test/test.ts +++ b/tests/property/candid_rpc/class_api/bool/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { BoolArb } from 'azle/property_tests/arbitraries/candid/primitive/bool'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { BoolArb } from 'azle/test/property/arbitraries/candid/primitive/bool'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/bool/tsconfig.json b/tests/property/candid_rpc/class_api/bool/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/bool/tsconfig.json rename to tests/property/candid_rpc/class_api/bool/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/http_request/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/http_request/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/package.json b/tests/property/candid_rpc/class_api/canister_methods/http_request/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/package.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request/package.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/fletch.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/fletch.ts similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/fletch.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request/test/fletch.ts diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/generate_body.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/generate_body.ts similarity index 94% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/generate_body.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request/test/generate_body.ts index 1ac9d67ced..e496e4f53f 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/generate_body.ts @@ -1,7 +1,7 @@ import { HttpRequest } from 'azle/experimental'; -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParams: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/generate_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/generate_tests.ts similarity index 84% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request/test/generate_tests.ts index cc66fcf5ca..28b9df4f00 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/generate_tests.ts @@ -1,8 +1,8 @@ import { HttpRequest, HttpResponse } from 'azle/experimental'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { HttpResponseAgentResponseValue } from 'azle/property_tests/arbitraries/http/response_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { HttpResponseAgentResponseValue } from 'azle/test/property/arbitraries/http/response_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { fletch } from './fletch'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request/test/test.ts index f0f5a3f229..88a332fd4f 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/test.ts @@ -1,14 +1,14 @@ import { HttpRequest } from 'azle/experimental'; -import { runPropTests } from 'azle/property_tests'; -import { RecordArb } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; +import { runPropTests } from 'azle/test/property'; +import { RecordArb } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { HttpRequestArb } from 'azle/property_tests/arbitraries/http/request_arb'; -import { HttpResponseArb } from 'azle/property_tests/arbitraries/http/response_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { HttpRequestArb } from 'azle/test/property/arbitraries/http/request_arb'; +import { HttpResponseArb } from 'azle/test/property/arbitraries/http/response_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/http_request/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/package.json b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/package.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/package.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/fletch.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/fletch.ts similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/fletch.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/fletch.ts diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/generate_body.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/generate_body.ts similarity index 94% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/generate_body.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/generate_body.ts index 1157342cb0..975e7ea290 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/generate_body.ts @@ -1,7 +1,7 @@ import { HttpRequest } from 'azle/experimental'; -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParams: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/generate_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/generate_tests.ts similarity index 87% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/generate_tests.ts index edbe45fb6e..7b0a90a19b 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/generate_tests.ts @@ -1,8 +1,8 @@ import { HttpRequest, HttpResponse } from 'azle/experimental'; -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { HttpResponseAgentResponseValue } from 'azle/property_tests/arbitraries/http/response_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { HttpResponseAgentResponseValue } from 'azle/test/property/arbitraries/http/response_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { fletch } from './fletch'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/test.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/test.ts index a75daf39de..b16e441bb3 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/test.ts @@ -1,15 +1,15 @@ import { HttpRequest } from 'azle/experimental'; -import { runPropTests } from 'azle/property_tests'; -import { RecordArb } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; +import { runPropTests } from 'azle/test/property'; +import { RecordArb } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { HttpRequestArb } from 'azle/property_tests/arbitraries/http/request_arb'; -import { HttpResponseArb } from 'azle/property_tests/arbitraries/http/response_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { HttpRequestArb } from 'azle/test/property/arbitraries/http/request_arb'; +import { HttpResponseArb } from 'azle/test/property/arbitraries/http/response_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/init/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/init/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/init/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/init/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/package.json b/tests/property/candid_rpc/class_api/canister_methods/init/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/package.json rename to tests/property/candid_rpc/class_api/canister_methods/init/package.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_callable_method_body.ts b/tests/property/candid_rpc/class_api/canister_methods/init/test/generate_callable_method_body.ts similarity index 63% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_callable_method_body.ts rename to tests/property/candid_rpc/class_api/canister_methods/init/test/generate_callable_method_body.ts index 27359495a0..5f71b47410 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_callable_method_body.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/init/test/generate_callable_method_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; export function generateBody( namedParams: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_init_body.ts b/tests/property/candid_rpc/class_api/canister_methods/init/test/generate_init_body.ts similarity index 56% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_init_body.ts rename to tests/property/candid_rpc/class_api/canister_methods/init/test/generate_init_body.ts index d05ca5d40d..e9f182e773 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_init_body.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/init/test/generate_init_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParams: Named>[] diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/init/test/generate_tests.ts similarity index 65% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/init/test/generate_tests.ts index 3d2c072716..7cc3865499 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/init/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( _functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/init/test/test.ts similarity index 83% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/init/test/test.ts index b6f3e9c016..13e28124e2 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/init/test/test.ts @@ -1,18 +1,18 @@ -import { runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { InitMethodArb } from 'azle/property_tests/arbitraries/canister_methods/init_method_arb'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { InitMethodArb } from 'azle/test/property/arbitraries/canister_methods/init_method_arb'; import { QueryMethod, QueryMethodArb -} from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody as callableMethodBodyGenerator } from './generate_callable_method_body'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/init/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/init/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/inspect_message/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/inspect_message/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/package.json b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/package.json rename to tests/property/candid_rpc/class_api/canister_methods/inspect_message/package.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/test/generate_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/test/generate_tests.ts similarity index 83% rename from tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/inspect_message/test/generate_tests.ts index aa93ddd6af..ddfeb1baf2 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/test/generate_tests.ts @@ -1,9 +1,9 @@ import { Agent } from '@dfinity/agent'; -import { getActor, Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { InspectMessageBehavior } from './test'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/test/test.ts similarity index 81% rename from tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/inspect_message/test/test.ts index 59c983c639..e90ed32760 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/test/test.ts @@ -1,16 +1,16 @@ import { Agent } from '@dfinity/agent'; import { createAuthenticatedAgentSync, getPrincipal } from 'azle/dfx'; -import { runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { InspectMessageMethodArb } from 'azle/property_tests/arbitraries/canister_methods/inspect_message_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { InspectMessageMethodArb } from 'azle/test/property/arbitraries/canister_methods/inspect_message_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { v4 } from 'uuid'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/inspect_message/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/package.json b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/package.json rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/package.json diff --git a/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts new file mode 100644 index 0000000000..b789583aa7 --- /dev/null +++ b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts @@ -0,0 +1,10 @@ +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; + +export function generateBody( + _namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + return `return ${returnType.src.valueLiteral}`; +} diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_init_method_body.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_init_method_body.ts similarity index 59% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_init_method_body.ts rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_init_method_body.ts index 11ca50e9ac..4181f5b0d3 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_init_method_body.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_init_method_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; import { globalInitVarName } from './global_var_name'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_init_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_init_tests.ts similarity index 71% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_init_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_init_tests.ts index c6633d557b..b6c576d370 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_init_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_init_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( _functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts similarity index 60% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts index 53e2b3d832..f9e4bd9456 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; import { globalPostUpgradeVarName } from './global_var_name'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts similarity index 73% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts index cafe9558b7..7d9e9ddba4 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( _functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/global_var_name.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/global_var_name.ts similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/global_var_name.ts rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/global_var_name.ts diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/test.ts similarity index 88% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/test.ts index 6cb4491d7e..0e98acbaf7 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/test.ts @@ -1,30 +1,30 @@ -import { runPropTests } from 'azle/property_tests'; -import { candidDefinitionArb } from 'azle/property_tests/arbitraries/candid/candid_definition_arb'; +import { runPropTests } from 'azle/test/property'; +import { candidDefinitionArb } from 'azle/test/property/arbitraries/candid/candid_definition_arb'; import { CandidDefinition, WithShapes -} from 'azle/property_tests/arbitraries/candid/candid_definition_arb/types'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; +} from 'azle/test/property/arbitraries/candid/candid_definition_arb/types'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; import { CandidValueAndMeta, CandidValueAndMetaArb -} from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { definitionAndValueToValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb_generator'; -import { CandidValueArb } from 'azle/property_tests/arbitraries/candid/candid_values_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +} from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { definitionAndValueToValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb_generator'; +import { CandidValueArb } from 'azle/test/property/arbitraries/candid/candid_values_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { InitMethodArb } from 'azle/property_tests/arbitraries/canister_methods/init_method_arb'; -import { PostUpgradeMethodArb } from 'azle/property_tests/arbitraries/canister_methods/post_upgrade_arb'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { InitMethodArb } from 'azle/test/property/arbitraries/canister_methods/init_method_arb'; +import { PostUpgradeMethodArb } from 'azle/test/property/arbitraries/canister_methods/post_upgrade_arb'; import { QueryMethod, QueryMethodArb -} from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { DEFAULT_VALUE_MAX_DEPTH } from 'azle/property_tests/arbitraries/config'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { DEFAULT_VALUE_MAX_DEPTH } from 'azle/test/property/arbitraries/config'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody as callableMethodBodyGenerator } from './generate_callable_method_body'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/package.json b/tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/package.json rename to tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/package.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/test/test.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/test/test.ts index c4e575bdab..b6d05c08fc 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/test/test.ts @@ -1,19 +1,19 @@ -import { getActor, runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { getActor, runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { PreUpgradeMethodArb } from 'azle/property_tests/arbitraries/canister_methods/pre_upgrade_method_arb'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { PreUpgradeMethodArb } from 'azle/test/property/arbitraries/canister_methods/pre_upgrade_method_arb'; import { QueryMethod, QueryMethodArb -} from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; -import { AzleResult, testEquality } from 'azle/property_tests/test'; +} from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; +import { AzleResult, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; const api: Api = 'class'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/query/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/query/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/query/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/query/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/query/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/query/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/package.json b/tests/property/candid_rpc/class_api/canister_methods/query/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/query/package.json rename to tests/property/candid_rpc/class_api/canister_methods/query/package.json diff --git a/tests/property/candid_rpc/class_api/canister_methods/query/test/generate_body.ts b/tests/property/candid_rpc/class_api/canister_methods/query/test/generate_body.ts new file mode 100644 index 0000000000..f1bc623693 --- /dev/null +++ b/tests/property/candid_rpc/class_api/canister_methods/query/test/generate_body.ts @@ -0,0 +1,18 @@ +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; + +export function generateBody( + namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); + + return ` + ${paramsAreCorrectlyOrdered} + + return ${returnType.src.valueLiteral} + `; +} diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/query/test/generate_tests.ts similarity index 63% rename from tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/query/test/generate_tests.ts index 3b11b5427c..3f03f5b327 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/query/test/generate_tests.ts @@ -1,8 +1,8 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/query/test/test.ts similarity index 61% rename from tests/property/candid_rpc/class_syntax/canister_methods/query/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/query/test/test.ts index 01da509c4b..54ae99330d 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/query/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/query/test/test.ts @@ -1,12 +1,12 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/query/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/query/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/query/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/update/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/update/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/update/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/update/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/update/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/update/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/package.json b/tests/property/candid_rpc/class_api/canister_methods/update/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/update/package.json rename to tests/property/candid_rpc/class_api/canister_methods/update/package.json diff --git a/tests/property/candid_rpc/class_api/canister_methods/update/test/generate_body.ts b/tests/property/candid_rpc/class_api/canister_methods/update/test/generate_body.ts new file mode 100644 index 0000000000..f1bc623693 --- /dev/null +++ b/tests/property/candid_rpc/class_api/canister_methods/update/test/generate_body.ts @@ -0,0 +1,18 @@ +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; + +export function generateBody( + namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); + + return ` + ${paramsAreCorrectlyOrdered} + + return ${returnType.src.valueLiteral} + `; +} diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/update/test/generate_tests.ts similarity index 63% rename from tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/update/test/generate_tests.ts index b922deb88a..f822f5fefe 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/update/test/generate_tests.ts @@ -1,8 +1,8 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/update/test/test.ts similarity index 59% rename from tests/property/candid_rpc/class_syntax/canister_methods/update/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/update/test/test.ts index 4d20b54251..7878d9bb18 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/update/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/update/test/test.ts @@ -1,12 +1,12 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/update/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/update/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/update/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/float32/dfx.json b/tests/property/candid_rpc/class_api/float32/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float32/dfx.json rename to tests/property/candid_rpc/class_api/float32/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/float32/package-lock.json b/tests/property/candid_rpc/class_api/float32/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float32/package-lock.json rename to tests/property/candid_rpc/class_api/float32/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/float32/package.json b/tests/property/candid_rpc/class_api/float32/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float32/package.json rename to tests/property/candid_rpc/class_api/float32/package.json diff --git a/tests/property/candid_rpc/functional_syntax/float32/test/generate_body.ts b/tests/property/candid_rpc/class_api/float32/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/functional_syntax/float32/test/generate_body.ts rename to tests/property/candid_rpc/class_api/float32/test/generate_body.ts index be4f256104..40e429d11c 100644 --- a/tests/property/candid_rpc/functional_syntax/float32/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/float32/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamFloat32s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/float32/test/generate_tests.ts b/tests/property/candid_rpc/class_api/float32/test/generate_tests.ts similarity index 79% rename from tests/property/candid_rpc/class_syntax/float32/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/float32/test/generate_tests.ts index 44bbc97595..8d06ffb8c1 100644 --- a/tests/property/candid_rpc/class_syntax/float32/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/float32/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/float32/test/test.ts b/tests/property/candid_rpc/class_api/float32/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/float32/test/test.ts rename to tests/property/candid_rpc/class_api/float32/test/test.ts index aaa105e284..b15c4b09e0 100644 --- a/tests/property/candid_rpc/class_syntax/float32/test/test.ts +++ b/tests/property/candid_rpc/class_api/float32/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Float32Arb } from 'azle/property_tests/arbitraries/candid/primitive/floats/float32_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Float32Arb } from 'azle/test/property/arbitraries/candid/primitive/floats/float32_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/float32/tsconfig.json b/tests/property/candid_rpc/class_api/float32/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float32/tsconfig.json rename to tests/property/candid_rpc/class_api/float32/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/float64/dfx.json b/tests/property/candid_rpc/class_api/float64/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float64/dfx.json rename to tests/property/candid_rpc/class_api/float64/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/float64/package-lock.json b/tests/property/candid_rpc/class_api/float64/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float64/package-lock.json rename to tests/property/candid_rpc/class_api/float64/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/float64/package.json b/tests/property/candid_rpc/class_api/float64/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float64/package.json rename to tests/property/candid_rpc/class_api/float64/package.json diff --git a/tests/property/candid_rpc/functional_syntax/float64/test/generate_body.ts b/tests/property/candid_rpc/class_api/float64/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/float64/test/generate_body.ts rename to tests/property/candid_rpc/class_api/float64/test/generate_body.ts index f3fc35fa4b..2bf26aa450 100644 --- a/tests/property/candid_rpc/functional_syntax/float64/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/float64/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamFloat64s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/float64/test/generate_tests.ts b/tests/property/candid_rpc/class_api/float64/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/float64/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/float64/test/generate_tests.ts index cd5d42f3fe..a1b96c9d69 100644 --- a/tests/property/candid_rpc/functional_syntax/float64/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/float64/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/float64/test/test.ts b/tests/property/candid_rpc/class_api/float64/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/float64/test/test.ts rename to tests/property/candid_rpc/class_api/float64/test/test.ts index deb3301da4..7fae766b22 100644 --- a/tests/property/candid_rpc/class_syntax/float64/test/test.ts +++ b/tests/property/candid_rpc/class_api/float64/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Float64Arb } from 'azle/property_tests/arbitraries/candid/primitive/floats/float64_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Float64Arb } from 'azle/test/property/arbitraries/candid/primitive/floats/float64_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/float64/tsconfig.json b/tests/property/candid_rpc/class_api/float64/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float64/tsconfig.json rename to tests/property/candid_rpc/class_api/float64/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/func/dfx.json b/tests/property/candid_rpc/class_api/func/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/func/dfx.json rename to tests/property/candid_rpc/class_api/func/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/func/package-lock.json b/tests/property/candid_rpc/class_api/func/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/func/package-lock.json rename to tests/property/candid_rpc/class_api/func/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/func/package.json b/tests/property/candid_rpc/class_api/func/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/func/package.json rename to tests/property/candid_rpc/class_api/func/package.json diff --git a/tests/property/candid_rpc/functional_syntax/func/test/generate_body.ts b/tests/property/candid_rpc/class_api/func/test/generate_body.ts similarity index 77% rename from tests/property/candid_rpc/functional_syntax/func/test/generate_body.ts rename to tests/property/candid_rpc/class_api/func/test/generate_body.ts index 9311c41d89..13b2df4ee3 100644 --- a/tests/property/candid_rpc/functional_syntax/func/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/func/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Func } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Func } from 'azle/test/property/arbitraries/candid/reference/func_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamFuncs: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/func/test/generate_tests.ts b/tests/property/candid_rpc/class_api/func/test/generate_tests.ts similarity index 71% rename from tests/property/candid_rpc/class_syntax/func/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/func/test/generate_tests.ts index 76a9739ccb..6f43b31d48 100644 --- a/tests/property/candid_rpc/class_syntax/func/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/func/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Func } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Func } from 'azle/test/property/arbitraries/candid/reference/func_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/func/test/test.ts b/tests/property/candid_rpc/class_api/func/test/test.ts similarity index 66% rename from tests/property/candid_rpc/class_syntax/func/test/test.ts rename to tests/property/candid_rpc/class_api/func/test/test.ts index 847f8470df..5b1c1b89db 100644 --- a/tests/property/candid_rpc/class_syntax/func/test/test.ts +++ b/tests/property/candid_rpc/class_api/func/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { FuncArb } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { FuncArb } from 'azle/test/property/arbitraries/candid/reference/func_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/func/tsconfig.json b/tests/property/candid_rpc/class_api/func/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/func/tsconfig.json rename to tests/property/candid_rpc/class_api/func/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/int/dfx.json b/tests/property/candid_rpc/class_api/int/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int/dfx.json rename to tests/property/candid_rpc/class_api/int/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/int/package-lock.json b/tests/property/candid_rpc/class_api/int/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int/package-lock.json rename to tests/property/candid_rpc/class_api/int/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/int/package.json b/tests/property/candid_rpc/class_api/int/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int/package.json rename to tests/property/candid_rpc/class_api/int/package.json diff --git a/tests/property/candid_rpc/functional_syntax/int/test/generate_body.ts b/tests/property/candid_rpc/class_api/int/test/generate_body.ts similarity index 73% rename from tests/property/candid_rpc/functional_syntax/int/test/generate_body.ts rename to tests/property/candid_rpc/class_api/int/test/generate_body.ts index 213bb0ae99..20f5dfb198 100644 --- a/tests/property/candid_rpc/functional_syntax/int/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/int/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInts: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/int/test/generate_tests.ts b/tests/property/candid_rpc/class_api/int/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/functional_syntax/int/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/int/test/generate_tests.ts index 4e58696822..d371cab3d8 100644 --- a/tests/property/candid_rpc/functional_syntax/int/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/int/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/int/test/test.ts b/tests/property/candid_rpc/class_api/int/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/int/test/test.ts rename to tests/property/candid_rpc/class_api/int/test/test.ts index a100d73a2b..2b9f30a264 100644 --- a/tests/property/candid_rpc/class_syntax/int/test/test.ts +++ b/tests/property/candid_rpc/class_api/int/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { IntArb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { IntArb } from 'azle/test/property/arbitraries/candid/primitive/ints/int_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/int/tsconfig.json b/tests/property/candid_rpc/class_api/int/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int/tsconfig.json rename to tests/property/candid_rpc/class_api/int/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/int16/dfx.json b/tests/property/candid_rpc/class_api/int16/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int16/dfx.json rename to tests/property/candid_rpc/class_api/int16/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/int16/package-lock.json b/tests/property/candid_rpc/class_api/int16/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int16/package-lock.json rename to tests/property/candid_rpc/class_api/int16/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/int16/package.json b/tests/property/candid_rpc/class_api/int16/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int16/package.json rename to tests/property/candid_rpc/class_api/int16/package.json diff --git a/tests/property/candid_rpc/class_syntax/int16/test/generate_body.ts b/tests/property/candid_rpc/class_api/int16/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/int16/test/generate_body.ts rename to tests/property/candid_rpc/class_api/int16/test/generate_body.ts index 0f26a55321..bf8eb93e4e 100644 --- a/tests/property/candid_rpc/class_syntax/int16/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/int16/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt16s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/int16/test/generate_tests.ts b/tests/property/candid_rpc/class_api/int16/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/int16/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/int16/test/generate_tests.ts index a541579499..ca7736f384 100644 --- a/tests/property/candid_rpc/functional_syntax/int16/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/int16/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/int16/test/test.ts b/tests/property/candid_rpc/class_api/int16/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/int16/test/test.ts rename to tests/property/candid_rpc/class_api/int16/test/test.ts index 93e27749b7..09e6a08b14 100644 --- a/tests/property/candid_rpc/class_syntax/int16/test/test.ts +++ b/tests/property/candid_rpc/class_api/int16/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int16Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int16_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int16Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int16_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/int16/tsconfig.json b/tests/property/candid_rpc/class_api/int16/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int16/tsconfig.json rename to tests/property/candid_rpc/class_api/int16/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/int32/dfx.json b/tests/property/candid_rpc/class_api/int32/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int32/dfx.json rename to tests/property/candid_rpc/class_api/int32/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/int32/package-lock.json b/tests/property/candid_rpc/class_api/int32/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int32/package-lock.json rename to tests/property/candid_rpc/class_api/int32/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/int32/package.json b/tests/property/candid_rpc/class_api/int32/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int32/package.json rename to tests/property/candid_rpc/class_api/int32/package.json diff --git a/tests/property/candid_rpc/class_syntax/int32/test/generate_body.ts b/tests/property/candid_rpc/class_api/int32/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/int32/test/generate_body.ts rename to tests/property/candid_rpc/class_api/int32/test/generate_body.ts index fcac9922a5..66c38aae59 100644 --- a/tests/property/candid_rpc/class_syntax/int32/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/int32/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt32s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/int32/test/generate_tests.ts b/tests/property/candid_rpc/class_api/int32/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/int32/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/int32/test/generate_tests.ts index 7e273b9729..aca24d4e9e 100644 --- a/tests/property/candid_rpc/class_syntax/int32/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/int32/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/int32/test/test.ts b/tests/property/candid_rpc/class_api/int32/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/int32/test/test.ts rename to tests/property/candid_rpc/class_api/int32/test/test.ts index 21c89bb4e5..9b66ee27a5 100644 --- a/tests/property/candid_rpc/class_syntax/int32/test/test.ts +++ b/tests/property/candid_rpc/class_api/int32/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int32Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int32_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int32Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int32_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/int32/tsconfig.json b/tests/property/candid_rpc/class_api/int32/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int32/tsconfig.json rename to tests/property/candid_rpc/class_api/int32/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/int64/dfx.json b/tests/property/candid_rpc/class_api/int64/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int64/dfx.json rename to tests/property/candid_rpc/class_api/int64/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/int64/package-lock.json b/tests/property/candid_rpc/class_api/int64/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int64/package-lock.json rename to tests/property/candid_rpc/class_api/int64/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/int64/package.json b/tests/property/candid_rpc/class_api/int64/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int64/package.json rename to tests/property/candid_rpc/class_api/int64/package.json diff --git a/tests/property/candid_rpc/functional_syntax/int64/test/generate_body.ts b/tests/property/candid_rpc/class_api/int64/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/int64/test/generate_body.ts rename to tests/property/candid_rpc/class_api/int64/test/generate_body.ts index a176e72b06..756f0c0432 100644 --- a/tests/property/candid_rpc/functional_syntax/int64/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/int64/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt64s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/int64/test/generate_tests.ts b/tests/property/candid_rpc/class_api/int64/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/int64/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/int64/test/generate_tests.ts index 636992ed67..d4c9ee1e05 100644 --- a/tests/property/candid_rpc/functional_syntax/int64/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/int64/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/int64/test/test.ts b/tests/property/candid_rpc/class_api/int64/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/int64/test/test.ts rename to tests/property/candid_rpc/class_api/int64/test/test.ts index 880db9af70..94add4446b 100644 --- a/tests/property/candid_rpc/class_syntax/int64/test/test.ts +++ b/tests/property/candid_rpc/class_api/int64/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int64Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int64_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int64Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int64_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/int64/tsconfig.json b/tests/property/candid_rpc/class_api/int64/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int64/tsconfig.json rename to tests/property/candid_rpc/class_api/int64/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/int8/dfx.json b/tests/property/candid_rpc/class_api/int8/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int8/dfx.json rename to tests/property/candid_rpc/class_api/int8/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/int8/package-lock.json b/tests/property/candid_rpc/class_api/int8/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int8/package-lock.json rename to tests/property/candid_rpc/class_api/int8/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/int8/package.json b/tests/property/candid_rpc/class_api/int8/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int8/package.json rename to tests/property/candid_rpc/class_api/int8/package.json diff --git a/tests/property/candid_rpc/functional_syntax/int8/test/generate_body.ts b/tests/property/candid_rpc/class_api/int8/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/int8/test/generate_body.ts rename to tests/property/candid_rpc/class_api/int8/test/generate_body.ts index 030c06a9bc..44d2a1f3af 100644 --- a/tests/property/candid_rpc/functional_syntax/int8/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/int8/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt8s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/int8/test/generate_tests.ts b/tests/property/candid_rpc/class_api/int8/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/int8/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/int8/test/generate_tests.ts index 947d939c1d..2895ddb7b8 100644 --- a/tests/property/candid_rpc/class_syntax/int8/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/int8/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/int8/test/test.ts b/tests/property/candid_rpc/class_api/int8/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/int8/test/test.ts rename to tests/property/candid_rpc/class_api/int8/test/test.ts index c0a77cacfe..12579dc246 100644 --- a/tests/property/candid_rpc/class_syntax/int8/test/test.ts +++ b/tests/property/candid_rpc/class_api/int8/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int8Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int8_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int8Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int8_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/int8/tsconfig.json b/tests/property/candid_rpc/class_api/int8/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int8/tsconfig.json rename to tests/property/candid_rpc/class_api/int8/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/nat/dfx.json b/tests/property/candid_rpc/class_api/nat/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat/dfx.json rename to tests/property/candid_rpc/class_api/nat/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/nat/package-lock.json b/tests/property/candid_rpc/class_api/nat/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat/package-lock.json rename to tests/property/candid_rpc/class_api/nat/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/nat/package.json b/tests/property/candid_rpc/class_api/nat/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat/package.json rename to tests/property/candid_rpc/class_api/nat/package.json diff --git a/tests/property/candid_rpc/functional_syntax/nat/test/generate_body.ts b/tests/property/candid_rpc/class_api/nat/test/generate_body.ts similarity index 73% rename from tests/property/candid_rpc/functional_syntax/nat/test/generate_body.ts rename to tests/property/candid_rpc/class_api/nat/test/generate_body.ts index ba2e63496a..433fae1de6 100644 --- a/tests/property/candid_rpc/functional_syntax/nat/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/nat/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNats: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/nat/test/generate_tests.ts b/tests/property/candid_rpc/class_api/nat/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/functional_syntax/nat/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/nat/test/generate_tests.ts index 7cd446f07d..88de4ee05b 100644 --- a/tests/property/candid_rpc/functional_syntax/nat/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/nat/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/nat/test/test.ts b/tests/property/candid_rpc/class_api/nat/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/nat/test/test.ts rename to tests/property/candid_rpc/class_api/nat/test/test.ts index e34cab8bcf..a67e68dffe 100644 --- a/tests/property/candid_rpc/class_syntax/nat/test/test.ts +++ b/tests/property/candid_rpc/class_api/nat/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { NatArb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { NatArb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/nat/tsconfig.json b/tests/property/candid_rpc/class_api/nat/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat/tsconfig.json rename to tests/property/candid_rpc/class_api/nat/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/nat16/dfx.json b/tests/property/candid_rpc/class_api/nat16/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat16/dfx.json rename to tests/property/candid_rpc/class_api/nat16/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/nat16/package-lock.json b/tests/property/candid_rpc/class_api/nat16/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat16/package-lock.json rename to tests/property/candid_rpc/class_api/nat16/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/nat16/package.json b/tests/property/candid_rpc/class_api/nat16/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat16/package.json rename to tests/property/candid_rpc/class_api/nat16/package.json diff --git a/tests/property/candid_rpc/functional_syntax/nat16/test/generate_body.ts b/tests/property/candid_rpc/class_api/nat16/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/nat16/test/generate_body.ts rename to tests/property/candid_rpc/class_api/nat16/test/generate_body.ts index 36c5809b54..556e2bee55 100644 --- a/tests/property/candid_rpc/functional_syntax/nat16/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/nat16/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat16s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/nat16/test/generate_tests.ts b/tests/property/candid_rpc/class_api/nat16/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/nat16/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/nat16/test/generate_tests.ts index 712cfd11df..8830422ece 100644 --- a/tests/property/candid_rpc/functional_syntax/nat16/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/nat16/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/nat16/test/test.ts b/tests/property/candid_rpc/class_api/nat16/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/nat16/test/test.ts rename to tests/property/candid_rpc/class_api/nat16/test/test.ts index 50f4601500..4421539c77 100644 --- a/tests/property/candid_rpc/class_syntax/nat16/test/test.ts +++ b/tests/property/candid_rpc/class_api/nat16/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat16Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat16_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat16Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat16_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/nat16/tsconfig.json b/tests/property/candid_rpc/class_api/nat16/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat16/tsconfig.json rename to tests/property/candid_rpc/class_api/nat16/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/nat32/dfx.json b/tests/property/candid_rpc/class_api/nat32/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat32/dfx.json rename to tests/property/candid_rpc/class_api/nat32/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/nat32/package-lock.json b/tests/property/candid_rpc/class_api/nat32/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat32/package-lock.json rename to tests/property/candid_rpc/class_api/nat32/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/nat32/package.json b/tests/property/candid_rpc/class_api/nat32/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat32/package.json rename to tests/property/candid_rpc/class_api/nat32/package.json diff --git a/tests/property/candid_rpc/class_syntax/nat32/test/generate_body.ts b/tests/property/candid_rpc/class_api/nat32/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/nat32/test/generate_body.ts rename to tests/property/candid_rpc/class_api/nat32/test/generate_body.ts index 3ead7aca94..946047b3ee 100644 --- a/tests/property/candid_rpc/class_syntax/nat32/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/nat32/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat32s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/nat32/test/generate_tests.ts b/tests/property/candid_rpc/class_api/nat32/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/nat32/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/nat32/test/generate_tests.ts index 9b67e1291b..cb3c408713 100644 --- a/tests/property/candid_rpc/functional_syntax/nat32/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/nat32/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/nat32/test/test.ts b/tests/property/candid_rpc/class_api/nat32/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/nat32/test/test.ts rename to tests/property/candid_rpc/class_api/nat32/test/test.ts index 24c08958ac..12cd6dcf10 100644 --- a/tests/property/candid_rpc/class_syntax/nat32/test/test.ts +++ b/tests/property/candid_rpc/class_api/nat32/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat32Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat32_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat32Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat32_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/nat32/tsconfig.json b/tests/property/candid_rpc/class_api/nat32/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat32/tsconfig.json rename to tests/property/candid_rpc/class_api/nat32/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/nat64/dfx.json b/tests/property/candid_rpc/class_api/nat64/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat64/dfx.json rename to tests/property/candid_rpc/class_api/nat64/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/nat64/package-lock.json b/tests/property/candid_rpc/class_api/nat64/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat64/package-lock.json rename to tests/property/candid_rpc/class_api/nat64/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/nat64/package.json b/tests/property/candid_rpc/class_api/nat64/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat64/package.json rename to tests/property/candid_rpc/class_api/nat64/package.json diff --git a/tests/property/candid_rpc/class_syntax/nat64/test/generate_body.ts b/tests/property/candid_rpc/class_api/nat64/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/nat64/test/generate_body.ts rename to tests/property/candid_rpc/class_api/nat64/test/generate_body.ts index 423f9a0013..b14079001d 100644 --- a/tests/property/candid_rpc/class_syntax/nat64/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/nat64/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat64s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/nat64/test/generate_tests.ts b/tests/property/candid_rpc/class_api/nat64/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/nat64/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/nat64/test/generate_tests.ts index 1bf97bf853..0c1b787e13 100644 --- a/tests/property/candid_rpc/functional_syntax/nat64/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/nat64/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/nat64/test/test.ts b/tests/property/candid_rpc/class_api/nat64/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/nat64/test/test.ts rename to tests/property/candid_rpc/class_api/nat64/test/test.ts index 5512fa0b54..87e67ddb5c 100644 --- a/tests/property/candid_rpc/class_syntax/nat64/test/test.ts +++ b/tests/property/candid_rpc/class_api/nat64/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat64Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat64_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat64Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat64_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/nat64/tsconfig.json b/tests/property/candid_rpc/class_api/nat64/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat64/tsconfig.json rename to tests/property/candid_rpc/class_api/nat64/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/nat8/dfx.json b/tests/property/candid_rpc/class_api/nat8/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat8/dfx.json rename to tests/property/candid_rpc/class_api/nat8/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/nat8/package-lock.json b/tests/property/candid_rpc/class_api/nat8/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat8/package-lock.json rename to tests/property/candid_rpc/class_api/nat8/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/nat8/package.json b/tests/property/candid_rpc/class_api/nat8/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat8/package.json rename to tests/property/candid_rpc/class_api/nat8/package.json diff --git a/tests/property/candid_rpc/class_syntax/nat8/test/generate_body.ts b/tests/property/candid_rpc/class_api/nat8/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/nat8/test/generate_body.ts rename to tests/property/candid_rpc/class_api/nat8/test/generate_body.ts index 1a06f4ec48..0c91a382d6 100644 --- a/tests/property/candid_rpc/class_syntax/nat8/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/nat8/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat8s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/nat8/test/generate_tests.ts b/tests/property/candid_rpc/class_api/nat8/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/nat8/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/nat8/test/generate_tests.ts index 10e8bc18a4..00b271b245 100644 --- a/tests/property/candid_rpc/class_syntax/nat8/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/nat8/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/nat8/test/test.ts b/tests/property/candid_rpc/class_api/nat8/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/nat8/test/test.ts rename to tests/property/candid_rpc/class_api/nat8/test/test.ts index 18a071c4ce..5b8e8d9aed 100644 --- a/tests/property/candid_rpc/class_syntax/nat8/test/test.ts +++ b/tests/property/candid_rpc/class_api/nat8/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat8Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat8_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat8Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat8_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/nat8/tsconfig.json b/tests/property/candid_rpc/class_api/nat8/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat8/tsconfig.json rename to tests/property/candid_rpc/class_api/nat8/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/null/dfx.json b/tests/property/candid_rpc/class_api/null/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/null/dfx.json rename to tests/property/candid_rpc/class_api/null/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/null/package-lock.json b/tests/property/candid_rpc/class_api/null/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/null/package-lock.json rename to tests/property/candid_rpc/class_api/null/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/null/package.json b/tests/property/candid_rpc/class_api/null/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/null/package.json rename to tests/property/candid_rpc/class_api/null/package.json diff --git a/tests/property/candid_rpc/class_syntax/null/test/generate_body.ts b/tests/property/candid_rpc/class_api/null/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/class_syntax/null/test/generate_body.ts rename to tests/property/candid_rpc/class_api/null/test/generate_body.ts index 407c964407..4f492c6131 100644 --- a/tests/property/candid_rpc/class_syntax/null/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/null/test/generate_body.ts @@ -1,5 +1,5 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParamNulls: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/null/test/generate_tests.ts b/tests/property/candid_rpc/class_api/null/test/generate_tests.ts similarity index 75% rename from tests/property/candid_rpc/class_syntax/null/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/null/test/generate_tests.ts index ab971a20d4..b768bdc13a 100644 --- a/tests/property/candid_rpc/class_syntax/null/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/null/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/null/test/test.ts b/tests/property/candid_rpc/class_api/null/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/null/test/test.ts rename to tests/property/candid_rpc/class_api/null/test/test.ts index b713255013..4984d7a93b 100644 --- a/tests/property/candid_rpc/class_syntax/null/test/test.ts +++ b/tests/property/candid_rpc/class_api/null/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { NullArb } from 'azle/property_tests/arbitraries/candid/primitive/null'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { NullArb } from 'azle/test/property/arbitraries/candid/primitive/null'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/null/tsconfig.json b/tests/property/candid_rpc/class_api/null/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/null/tsconfig.json rename to tests/property/candid_rpc/class_api/null/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/opt/dfx.json b/tests/property/candid_rpc/class_api/opt/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/opt/dfx.json rename to tests/property/candid_rpc/class_api/opt/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/opt/package-lock.json b/tests/property/candid_rpc/class_api/opt/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/opt/package-lock.json rename to tests/property/candid_rpc/class_api/opt/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/opt/package.json b/tests/property/candid_rpc/class_api/opt/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/opt/package.json rename to tests/property/candid_rpc/class_api/opt/package.json diff --git a/tests/property/candid_rpc/class_syntax/opt/test/generate_body.ts b/tests/property/candid_rpc/class_api/opt/test/generate_body.ts similarity index 70% rename from tests/property/candid_rpc/class_syntax/opt/test/generate_body.ts rename to tests/property/candid_rpc/class_api/opt/test/generate_body.ts index 94d8eb245d..28ee636af1 100644 --- a/tests/property/candid_rpc/class_syntax/opt/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/opt/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Opt } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Opt } from 'azle/test/property/arbitraries/candid/constructed/opt_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamOpts: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/opt/test/generate_tests.ts b/tests/property/candid_rpc/class_api/opt/test/generate_tests.ts similarity index 70% rename from tests/property/candid_rpc/class_syntax/opt/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/opt/test/generate_tests.ts index 1c6ce71905..8061de7166 100644 --- a/tests/property/candid_rpc/class_syntax/opt/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/opt/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Opt } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Opt } from 'azle/test/property/arbitraries/candid/constructed/opt_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/opt/test/test.ts b/tests/property/candid_rpc/class_api/opt/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/opt/test/test.ts rename to tests/property/candid_rpc/class_api/opt/test/test.ts index 31f95b56c3..38b324f112 100644 --- a/tests/property/candid_rpc/class_syntax/opt/test/test.ts +++ b/tests/property/candid_rpc/class_api/opt/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { OptArb } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { OptArb } from 'azle/test/property/arbitraries/candid/constructed/opt_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/opt/tsconfig.json b/tests/property/candid_rpc/class_api/opt/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/opt/tsconfig.json rename to tests/property/candid_rpc/class_api/opt/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/principal/dfx.json b/tests/property/candid_rpc/class_api/principal/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/principal/dfx.json rename to tests/property/candid_rpc/class_api/principal/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/principal/package-lock.json b/tests/property/candid_rpc/class_api/principal/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/principal/package-lock.json rename to tests/property/candid_rpc/class_api/principal/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/principal/package.json b/tests/property/candid_rpc/class_api/principal/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/principal/package.json rename to tests/property/candid_rpc/class_api/principal/package.json diff --git a/tests/property/candid_rpc/class_syntax/principal/test/generate_body.ts b/tests/property/candid_rpc/class_api/principal/test/generate_body.ts similarity index 77% rename from tests/property/candid_rpc/class_syntax/principal/test/generate_body.ts rename to tests/property/candid_rpc/class_api/principal/test/generate_body.ts index 69dc896e1a..a43d5e00c2 100644 --- a/tests/property/candid_rpc/class_syntax/principal/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/principal/test/generate_body.ts @@ -1,7 +1,7 @@ import { Principal } from '@dfinity/principal'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamPrincipals: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/principal/test/generate_tests.ts b/tests/property/candid_rpc/class_api/principal/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/principal/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/principal/test/generate_tests.ts index 05f59dc620..fad105f8fb 100644 --- a/tests/property/candid_rpc/functional_syntax/principal/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/principal/test/generate_tests.ts @@ -1,7 +1,7 @@ import { Principal } from '@dfinity/principal'; -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/principal/test/test.ts b/tests/property/candid_rpc/class_api/principal/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/principal/test/test.ts rename to tests/property/candid_rpc/class_api/principal/test/test.ts index 735a76a74a..c29b1dc675 100644 --- a/tests/property/candid_rpc/class_syntax/principal/test/test.ts +++ b/tests/property/candid_rpc/class_api/principal/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { PrincipalArb } from 'azle/property_tests/arbitraries/candid/reference/principal_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { PrincipalArb } from 'azle/test/property/arbitraries/candid/reference/principal_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/principal/tsconfig.json b/tests/property/candid_rpc/class_api/principal/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/principal/tsconfig.json rename to tests/property/candid_rpc/class_api/principal/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/record/dfx.json b/tests/property/candid_rpc/class_api/record/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/record/dfx.json rename to tests/property/candid_rpc/class_api/record/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/record/package-lock.json b/tests/property/candid_rpc/class_api/record/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/record/package-lock.json rename to tests/property/candid_rpc/class_api/record/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/record/package.json b/tests/property/candid_rpc/class_api/record/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/record/package.json rename to tests/property/candid_rpc/class_api/record/package.json diff --git a/tests/property/candid_rpc/functional_syntax/record/test/generate_body.ts b/tests/property/candid_rpc/class_api/record/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/functional_syntax/record/test/generate_body.ts rename to tests/property/candid_rpc/class_api/record/test/generate_body.ts index 56d5b4a55f..503fb61421 100644 --- a/tests/property/candid_rpc/functional_syntax/record/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/record/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Record } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Record } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamRecords: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/record/test/generate_tests.ts b/tests/property/candid_rpc/class_api/record/test/generate_tests.ts similarity index 71% rename from tests/property/candid_rpc/class_syntax/record/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/record/test/generate_tests.ts index e23fd20329..dbcbc2348a 100644 --- a/tests/property/candid_rpc/class_syntax/record/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/record/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Record } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Record } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/record/test/test.ts b/tests/property/candid_rpc/class_api/record/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/record/test/test.ts rename to tests/property/candid_rpc/class_api/record/test/test.ts index a7fe814258..67b6c0d3b7 100644 --- a/tests/property/candid_rpc/class_syntax/record/test/test.ts +++ b/tests/property/candid_rpc/class_api/record/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { RecordArb } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { RecordArb } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/record/tsconfig.json b/tests/property/candid_rpc/class_api/record/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/record/tsconfig.json rename to tests/property/candid_rpc/class_api/record/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/recursive/dfx.json b/tests/property/candid_rpc/class_api/recursive/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/recursive/dfx.json rename to tests/property/candid_rpc/class_api/recursive/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/recursive/package-lock.json b/tests/property/candid_rpc/class_api/recursive/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/recursive/package-lock.json rename to tests/property/candid_rpc/class_api/recursive/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/recursive/package.json b/tests/property/candid_rpc/class_api/recursive/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/recursive/package.json rename to tests/property/candid_rpc/class_api/recursive/package.json diff --git a/tests/property/candid_rpc/class_syntax/recursive/test/generate_body.ts b/tests/property/candid_rpc/class_api/recursive/test/generate_body.ts similarity index 55% rename from tests/property/candid_rpc/class_syntax/recursive/test/generate_body.ts rename to tests/property/candid_rpc/class_api/recursive/test/generate_body.ts index 6488fdc42b..fc82049805 100644 --- a/tests/property/candid_rpc/class_syntax/recursive/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/recursive/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Recursive } from 'azle/property_tests/arbitraries/candid/recursive'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Recursive } from 'azle/test/property/arbitraries/candid/recursive'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamRecursive: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/recursive/test/generate_tests.ts b/tests/property/candid_rpc/class_api/recursive/test/generate_tests.ts similarity index 72% rename from tests/property/candid_rpc/functional_syntax/recursive/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/recursive/test/generate_tests.ts index d6459ffb9e..f051ae2125 100644 --- a/tests/property/candid_rpc/functional_syntax/recursive/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/recursive/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Recursive } from 'azle/property_tests/arbitraries/candid/recursive'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Recursive } from 'azle/test/property/arbitraries/candid/recursive'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/recursive/test/test.ts b/tests/property/candid_rpc/class_api/recursive/test/test.ts similarity index 67% rename from tests/property/candid_rpc/class_syntax/recursive/test/test.ts rename to tests/property/candid_rpc/class_api/recursive/test/test.ts index 1b402cf78d..4e39b52dbe 100644 --- a/tests/property/candid_rpc/class_syntax/recursive/test/test.ts +++ b/tests/property/candid_rpc/class_api/recursive/test/test.ts @@ -1,12 +1,12 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { RecursiveArb } from 'azle/property_tests/arbitraries/candid/recursive'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { RecursiveArb } from 'azle/test/property/arbitraries/candid/recursive'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/recursive/tsconfig.json b/tests/property/candid_rpc/class_api/recursive/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/recursive/tsconfig.json rename to tests/property/candid_rpc/class_api/recursive/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/service/dfx.json b/tests/property/candid_rpc/class_api/service/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/service/dfx.json rename to tests/property/candid_rpc/class_api/service/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/service/package-lock.json b/tests/property/candid_rpc/class_api/service/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/service/package-lock.json rename to tests/property/candid_rpc/class_api/service/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/service/package.json b/tests/property/candid_rpc/class_api/service/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/service/package.json rename to tests/property/candid_rpc/class_api/service/package.json diff --git a/tests/property/candid_rpc/class_syntax/service/test/generate_body.ts b/tests/property/candid_rpc/class_api/service/test/generate_body.ts similarity index 83% rename from tests/property/candid_rpc/class_syntax/service/test/generate_body.ts rename to tests/property/candid_rpc/class_api/service/test/generate_body.ts index b112d22eab..756cbbde24 100644 --- a/tests/property/candid_rpc/class_syntax/service/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/service/test/generate_body.ts @@ -1,6 +1,6 @@ import { Principal } from '@dfinity/principal'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParamServices: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/service/test/generate_tests.ts b/tests/property/candid_rpc/class_api/service/test/generate_tests.ts similarity index 86% rename from tests/property/candid_rpc/class_syntax/service/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/service/test/generate_tests.ts index 0f28d07c9c..f1e003ce6e 100644 --- a/tests/property/candid_rpc/class_syntax/service/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/service/test/generate_tests.ts @@ -1,7 +1,7 @@ import { Principal } from '@dfinity/principal'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { execSync } from 'child_process'; export function generateTests( diff --git a/tests/property/candid_rpc/class_syntax/service/test/test.ts b/tests/property/candid_rpc/class_api/service/test/test.ts similarity index 70% rename from tests/property/candid_rpc/class_syntax/service/test/test.ts rename to tests/property/candid_rpc/class_api/service/test/test.ts index d991fab057..1b88464323 100644 --- a/tests/property/candid_rpc/class_syntax/service/test/test.ts +++ b/tests/property/candid_rpc/class_api/service/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { ServiceArb } from 'azle/property_tests/arbitraries/candid/reference/service_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { ServiceArb } from 'azle/test/property/arbitraries/candid/reference/service_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/service/tsconfig.json b/tests/property/candid_rpc/class_api/service/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/service/tsconfig.json rename to tests/property/candid_rpc/class_api/service/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/dfx.json b/tests/property/candid_rpc/class_api/stable_b_tree_map/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/dfx.json rename to tests/property/candid_rpc/class_api/stable_b_tree_map/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/package-lock.json b/tests/property/candid_rpc/class_api/stable_b_tree_map/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/package-lock.json rename to tests/property/candid_rpc/class_api/stable_b_tree_map/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/package.json b/tests/property/candid_rpc/class_api/stable_b_tree_map/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/package.json rename to tests/property/candid_rpc/class_api/stable_b_tree_map/package.json diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/contains_key.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/contains_key.ts similarity index 89% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/contains_key.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/contains_key.ts index bf2e9ce3b1..4d221fc4c0 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/contains_key.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/contains_key.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function ContainsKeyTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/get.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/get.ts similarity index 90% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/get.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/get.ts index 75a75a42b9..b7613e01a2 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/get.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/get.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function GetTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/insert.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/insert.ts similarity index 86% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/insert.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/insert.ts index 6aee258dc3..8adf201b01 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/insert.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/insert.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function InsertTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/is_empty.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/is_empty.ts similarity index 83% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/is_empty.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/is_empty.ts index bfe53519ac..ecd8b33e32 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/is_empty.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/is_empty.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function IsEmptyTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/items.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/items.ts similarity index 88% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/items.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/items.ts index 74f262fbce..02d8d82f9a 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/items.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/items.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function ItemsTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/keys.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/keys.ts similarity index 90% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/keys.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/keys.ts index 29f184d24b..f3a09dc853 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/keys.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/keys.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; import { diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/len.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/len.ts similarity index 84% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/len.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/len.ts index 40f42d2553..4deaa182b0 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/len.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/len.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function LenTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/remove.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/remove.ts similarity index 87% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/remove.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/remove.ts index 3de59b3bd6..78958f8cba 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/remove.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/remove.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function RemoveTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/test.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/test.ts similarity index 92% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/test.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/test.ts index 7a7ead2c18..3298793d8d 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/test.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/test.ts @@ -1,7 +1,7 @@ -import { runPropTests } from 'azle/property_tests'; -import { CanisterArb } from 'azle/property_tests/arbitraries/canister_arb'; -import { StableBTreeMapArb } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { Context } from 'azle/property_tests/arbitraries/types'; +import { runPropTests } from 'azle/test/property'; +import { CanisterArb } from 'azle/test/property/arbitraries/canister_arb'; +import { StableBTreeMapArb } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { Context } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { ContainsKeyTestArb } from './contains_key'; diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/utils.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/utils.ts similarity index 100% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/utils.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/utils.ts diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/values.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/values.ts similarity index 90% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/values.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/values.ts index 8b74a3d797..ebdf3d3ab5 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/values.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/values.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; import { diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/tsconfig.json b/tests/property/candid_rpc/class_api/stable_b_tree_map/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/tsconfig.json rename to tests/property/candid_rpc/class_api/stable_b_tree_map/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/text/dfx.json b/tests/property/candid_rpc/class_api/text/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/text/dfx.json rename to tests/property/candid_rpc/class_api/text/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/text/package-lock.json b/tests/property/candid_rpc/class_api/text/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/text/package-lock.json rename to tests/property/candid_rpc/class_api/text/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/text/package.json b/tests/property/candid_rpc/class_api/text/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/text/package.json rename to tests/property/candid_rpc/class_api/text/package.json diff --git a/tests/property/candid_rpc/class_syntax/text/test/generate_body.ts b/tests/property/candid_rpc/class_api/text/test/generate_body.ts similarity index 74% rename from tests/property/candid_rpc/class_syntax/text/test/generate_body.ts rename to tests/property/candid_rpc/class_api/text/test/generate_body.ts index 0e2091277f..12eb7385e2 100644 --- a/tests/property/candid_rpc/class_syntax/text/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/text/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamTexts: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/text/test/generate_tests.ts b/tests/property/candid_rpc/class_api/text/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/functional_syntax/text/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/text/test/generate_tests.ts index 370e30d251..864fad0251 100644 --- a/tests/property/candid_rpc/functional_syntax/text/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/text/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/text/test/test.ts b/tests/property/candid_rpc/class_api/text/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/text/test/test.ts rename to tests/property/candid_rpc/class_api/text/test/test.ts index 42a1b15875..2ce2f9e055 100644 --- a/tests/property/candid_rpc/class_syntax/text/test/test.ts +++ b/tests/property/candid_rpc/class_api/text/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { TextArb } from 'azle/property_tests/arbitraries/candid/primitive/text'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { TextArb } from 'azle/test/property/arbitraries/candid/primitive/text'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/text/tsconfig.json b/tests/property/candid_rpc/class_api/text/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/text/tsconfig.json rename to tests/property/candid_rpc/class_api/text/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/tuple/dfx.json b/tests/property/candid_rpc/class_api/tuple/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/tuple/dfx.json rename to tests/property/candid_rpc/class_api/tuple/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/tuple/package-lock.json b/tests/property/candid_rpc/class_api/tuple/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/tuple/package-lock.json rename to tests/property/candid_rpc/class_api/tuple/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/tuple/package.json b/tests/property/candid_rpc/class_api/tuple/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/tuple/package.json rename to tests/property/candid_rpc/class_api/tuple/package.json diff --git a/tests/property/candid_rpc/class_syntax/tuple/test/generate_body.ts b/tests/property/candid_rpc/class_api/tuple/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/class_syntax/tuple/test/generate_body.ts rename to tests/property/candid_rpc/class_api/tuple/test/generate_body.ts index 9db56b18d1..9d15797453 100644 --- a/tests/property/candid_rpc/class_syntax/tuple/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/tuple/test/generate_body.ts @@ -1,10 +1,10 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { ReturnTuple, Tuple -} from 'azle/property_tests/arbitraries/candid/constructed/tuple_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +} from 'azle/test/property/arbitraries/candid/constructed/tuple_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamTuples: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/tuple/test/generate_tests.ts b/tests/property/candid_rpc/class_api/tuple/test/generate_tests.ts similarity index 73% rename from tests/property/candid_rpc/class_syntax/tuple/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/tuple/test/generate_tests.ts index c35eedb756..387be4ae21 100644 --- a/tests/property/candid_rpc/class_syntax/tuple/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/tuple/test/generate_tests.ts @@ -1,10 +1,10 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { ReturnTuple, Tuple -} from 'azle/property_tests/arbitraries/candid/constructed/tuple_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +} from 'azle/test/property/arbitraries/candid/constructed/tuple_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/tuple/test/test.ts b/tests/property/candid_rpc/class_api/tuple/test/test.ts similarity index 66% rename from tests/property/candid_rpc/class_syntax/tuple/test/test.ts rename to tests/property/candid_rpc/class_api/tuple/test/test.ts index 33f3400ad3..bbb535b587 100644 --- a/tests/property/candid_rpc/class_syntax/tuple/test/test.ts +++ b/tests/property/candid_rpc/class_api/tuple/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { TupleArb } from 'azle/property_tests/arbitraries/candid/constructed/tuple_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { TupleArb } from 'azle/test/property/arbitraries/candid/constructed/tuple_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/tuple/tsconfig.json b/tests/property/candid_rpc/class_api/tuple/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/tuple/tsconfig.json rename to tests/property/candid_rpc/class_api/tuple/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/variant/dfx.json b/tests/property/candid_rpc/class_api/variant/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/variant/dfx.json rename to tests/property/candid_rpc/class_api/variant/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/variant/package-lock.json b/tests/property/candid_rpc/class_api/variant/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/variant/package-lock.json rename to tests/property/candid_rpc/class_api/variant/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/variant/package.json b/tests/property/candid_rpc/class_api/variant/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/variant/package.json rename to tests/property/candid_rpc/class_api/variant/package.json diff --git a/tests/property/candid_rpc/functional_syntax/variant/test/generate_body.ts b/tests/property/candid_rpc/class_api/variant/test/generate_body.ts similarity index 67% rename from tests/property/candid_rpc/functional_syntax/variant/test/generate_body.ts rename to tests/property/candid_rpc/class_api/variant/test/generate_body.ts index 30e7aea51d..74c5ff75b8 100644 --- a/tests/property/candid_rpc/functional_syntax/variant/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/variant/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Variant } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Variant } from 'azle/test/property/arbitraries/candid/constructed/variant_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamVariants: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/variant/test/generate_tests.ts b/tests/property/candid_rpc/class_api/variant/test/generate_tests.ts similarity index 71% rename from tests/property/candid_rpc/class_syntax/variant/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/variant/test/generate_tests.ts index d9e46079d2..540ee8ead8 100644 --- a/tests/property/candid_rpc/class_syntax/variant/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/variant/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Variant } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Variant } from 'azle/test/property/arbitraries/candid/constructed/variant_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/variant/test/test.ts b/tests/property/candid_rpc/class_api/variant/test/test.ts similarity index 66% rename from tests/property/candid_rpc/class_syntax/variant/test/test.ts rename to tests/property/candid_rpc/class_api/variant/test/test.ts index 5a26f7230d..2aff295797 100644 --- a/tests/property/candid_rpc/class_syntax/variant/test/test.ts +++ b/tests/property/candid_rpc/class_api/variant/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { VariantArb } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { VariantArb } from 'azle/test/property/arbitraries/candid/constructed/variant_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/variant/tsconfig.json b/tests/property/candid_rpc/class_api/variant/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/variant/tsconfig.json rename to tests/property/candid_rpc/class_api/variant/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/vec/dfx.json b/tests/property/candid_rpc/class_api/vec/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/vec/dfx.json rename to tests/property/candid_rpc/class_api/vec/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/vec/package-lock.json b/tests/property/candid_rpc/class_api/vec/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/vec/package-lock.json rename to tests/property/candid_rpc/class_api/vec/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/vec/package.json b/tests/property/candid_rpc/class_api/vec/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/vec/package.json rename to tests/property/candid_rpc/class_api/vec/package.json diff --git a/tests/property/candid_rpc/functional_syntax/vec/test/generate_body.ts b/tests/property/candid_rpc/class_api/vec/test/generate_body.ts similarity index 72% rename from tests/property/candid_rpc/functional_syntax/vec/test/generate_body.ts rename to tests/property/candid_rpc/class_api/vec/test/generate_body.ts index e209ee6cd3..512c4d1b63 100644 --- a/tests/property/candid_rpc/functional_syntax/vec/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/vec/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamVecs: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/vec/test/generate_tests.ts b/tests/property/candid_rpc/class_api/vec/test/generate_tests.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/vec/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/vec/test/generate_tests.ts index f668d981b1..682face3fd 100644 --- a/tests/property/candid_rpc/class_syntax/vec/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/vec/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/vec/test/test.ts b/tests/property/candid_rpc/class_api/vec/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/vec/test/test.ts rename to tests/property/candid_rpc/class_api/vec/test/test.ts index 22fe469d50..bc0c4c7665 100644 --- a/tests/property/candid_rpc/class_syntax/vec/test/test.ts +++ b/tests/property/candid_rpc/class_api/vec/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { VecArb } from 'azle/property_tests/arbitraries/candid/constructed/vec_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { VecArb } from 'azle/test/property/arbitraries/candid/constructed/vec_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/vec/tsconfig.json b/tests/property/candid_rpc/class_api/vec/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/vec/tsconfig.json rename to tests/property/candid_rpc/class_api/vec/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts b/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts deleted file mode 100644 index d52e92001a..0000000000 --- a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; - -export function generateBody( - _namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - return `return ${returnType.src.valueLiteral}`; -} diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_body.ts b/tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_body.ts deleted file mode 100644 index 0a78fed29d..0000000000 --- a/tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_body.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; - -export function generateBody( - namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); - - return ` - ${paramsAreCorrectlyOrdered} - - return ${returnType.src.valueLiteral} - `; -} diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_body.ts b/tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_body.ts deleted file mode 100644 index 0a78fed29d..0000000000 --- a/tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_body.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; - -export function generateBody( - namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); - - return ` - ${paramsAreCorrectlyOrdered} - - return ${returnType.src.valueLiteral} - `; -} diff --git a/tests/property/candid_rpc/functional_syntax/blob/dfx.json b/tests/property/candid_rpc/functional_api/blob/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/blob/dfx.json rename to tests/property/candid_rpc/functional_api/blob/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/blob/package-lock.json b/tests/property/candid_rpc/functional_api/blob/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/blob/package-lock.json rename to tests/property/candid_rpc/functional_api/blob/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/blob/package.json b/tests/property/candid_rpc/functional_api/blob/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/blob/package.json rename to tests/property/candid_rpc/functional_api/blob/package.json diff --git a/tests/property/candid_rpc/functional_syntax/blob/test/generate_body.ts b/tests/property/candid_rpc/functional_api/blob/test/generate_body.ts similarity index 79% rename from tests/property/candid_rpc/functional_syntax/blob/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/blob/test/generate_body.ts index a4b13c01e7..d42cc53f6d 100644 --- a/tests/property/candid_rpc/functional_syntax/blob/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/blob/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamBlobs: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/blob/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/blob/test/generate_tests.ts similarity index 81% rename from tests/property/candid_rpc/functional_syntax/blob/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/blob/test/generate_tests.ts index 7a40235d34..486dfabddd 100644 --- a/tests/property/candid_rpc/functional_syntax/blob/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/blob/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/blob/test/test.ts b/tests/property/candid_rpc/functional_api/blob/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/blob/test/test.ts rename to tests/property/candid_rpc/functional_api/blob/test/test.ts index 324acadf41..a36b961b2a 100644 --- a/tests/property/candid_rpc/functional_syntax/blob/test/test.ts +++ b/tests/property/candid_rpc/functional_api/blob/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { BlobArb } from 'azle/property_tests/arbitraries/candid/constructed/blob_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { BlobArb } from 'azle/test/property/arbitraries/candid/constructed/blob_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/blob/tsconfig.json b/tests/property/candid_rpc/functional_api/blob/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/blob/tsconfig.json rename to tests/property/candid_rpc/functional_api/blob/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/bool/dfx.json b/tests/property/candid_rpc/functional_api/bool/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/bool/dfx.json rename to tests/property/candid_rpc/functional_api/bool/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/bool/package-lock.json b/tests/property/candid_rpc/functional_api/bool/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/bool/package-lock.json rename to tests/property/candid_rpc/functional_api/bool/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/bool/package.json b/tests/property/candid_rpc/functional_api/bool/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/bool/package.json rename to tests/property/candid_rpc/functional_api/bool/package.json diff --git a/tests/property/candid_rpc/class_syntax/bool/test/generate_body.ts b/tests/property/candid_rpc/functional_api/bool/test/generate_body.ts similarity index 79% rename from tests/property/candid_rpc/class_syntax/bool/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/bool/test/generate_body.ts index 563aed3275..994df55128 100644 --- a/tests/property/candid_rpc/class_syntax/bool/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/bool/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamBools: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/bool/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/bool/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/class_syntax/bool/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/bool/test/generate_tests.ts index a91e7cc3b6..f502a7d3d1 100644 --- a/tests/property/candid_rpc/class_syntax/bool/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/bool/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/bool/test/test.ts b/tests/property/candid_rpc/functional_api/bool/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/bool/test/test.ts rename to tests/property/candid_rpc/functional_api/bool/test/test.ts index 226dd82290..93a0d4864b 100644 --- a/tests/property/candid_rpc/functional_syntax/bool/test/test.ts +++ b/tests/property/candid_rpc/functional_api/bool/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { BoolArb } from 'azle/property_tests/arbitraries/candid/primitive/bool'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { BoolArb } from 'azle/test/property/arbitraries/candid/primitive/bool'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/bool/tsconfig.json b/tests/property/candid_rpc/functional_api/bool/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/bool/tsconfig.json rename to tests/property/candid_rpc/functional_api/bool/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/package.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/package.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/fletch.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/fletch.ts similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/fletch.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/test/fletch.ts diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/generate_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/generate_body.ts similarity index 94% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/test/generate_body.ts index b18e3df773..f5e9178348 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/generate_body.ts @@ -1,7 +1,7 @@ import { HttpRequest } from 'azle/experimental'; -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParams: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/generate_tests.ts similarity index 84% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/test/generate_tests.ts index cc66fcf5ca..28b9df4f00 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/generate_tests.ts @@ -1,8 +1,8 @@ import { HttpRequest, HttpResponse } from 'azle/experimental'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { HttpResponseAgentResponseValue } from 'azle/property_tests/arbitraries/http/response_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { HttpResponseAgentResponseValue } from 'azle/test/property/arbitraries/http/response_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { fletch } from './fletch'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/test/test.ts index d184c7a493..632266e4aa 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/test.ts @@ -1,14 +1,14 @@ import { HttpRequest } from 'azle/experimental'; -import { runPropTests } from 'azle/property_tests'; -import { RecordArb } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; +import { runPropTests } from 'azle/test/property'; +import { RecordArb } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { HttpRequestArb } from 'azle/property_tests/arbitraries/http/request_arb'; -import { HttpResponseArb } from 'azle/property_tests/arbitraries/http/response_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { HttpRequestArb } from 'azle/test/property/arbitraries/http/request_arb'; +import { HttpResponseArb } from 'azle/test/property/arbitraries/http/response_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/package.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/package.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/fletch.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/fletch.ts similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/fletch.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/fletch.ts diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/generate_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/generate_body.ts similarity index 94% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/generate_body.ts index 9eb54a1e56..3696c1c196 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/generate_body.ts @@ -1,7 +1,7 @@ import { HttpRequest } from 'azle/experimental'; -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParams: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/generate_tests.ts similarity index 87% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/generate_tests.ts index edbe45fb6e..7b0a90a19b 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/generate_tests.ts @@ -1,8 +1,8 @@ import { HttpRequest, HttpResponse } from 'azle/experimental'; -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { HttpResponseAgentResponseValue } from 'azle/property_tests/arbitraries/http/response_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { HttpResponseAgentResponseValue } from 'azle/test/property/arbitraries/http/response_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { fletch } from './fletch'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/test.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/test.ts index 952bb249f8..77861a313c 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/test.ts @@ -1,15 +1,15 @@ import { HttpRequest } from 'azle/experimental'; -import { runPropTests } from 'azle/property_tests'; -import { RecordArb } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; +import { runPropTests } from 'azle/test/property'; +import { RecordArb } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { HttpRequestArb } from 'azle/property_tests/arbitraries/http/request_arb'; -import { HttpResponseArb } from 'azle/property_tests/arbitraries/http/response_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { HttpRequestArb } from 'azle/test/property/arbitraries/http/request_arb'; +import { HttpResponseArb } from 'azle/test/property/arbitraries/http/response_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/init/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/init/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/init/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/init/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/package.json b/tests/property/candid_rpc/functional_api/canister_methods/init/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/init/package.json diff --git a/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_callable_method_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_callable_method_body.ts new file mode 100644 index 0000000000..b789583aa7 --- /dev/null +++ b/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_callable_method_body.ts @@ -0,0 +1,10 @@ +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; + +export function generateBody( + _namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + return `return ${returnType.src.valueLiteral}`; +} diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_init_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_init_body.ts similarity index 56% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_init_body.ts rename to tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_init_body.ts index d05ca5d40d..e9f182e773 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_init_body.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_init_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParams: Named>[] diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_tests.ts similarity index 65% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_tests.ts index 3d2c072716..7cc3865499 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( _functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/init/test/test.ts similarity index 82% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/init/test/test.ts index 48af0c037c..e555294072 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/init/test/test.ts @@ -1,18 +1,18 @@ -import { runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { InitMethodArb } from 'azle/property_tests/arbitraries/canister_methods/init_method_arb'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { InitMethodArb } from 'azle/test/property/arbitraries/canister_methods/init_method_arb'; import { QueryMethod, QueryMethodArb -} from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody as callableMethodBodyGenerator } from './generate_callable_method_body'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/init/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/init/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/inspect_message/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/inspect_message/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/package.json b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/inspect_message/package.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/test/generate_tests.ts similarity index 83% rename from tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/inspect_message/test/generate_tests.ts index aa93ddd6af..ddfeb1baf2 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/test/generate_tests.ts @@ -1,9 +1,9 @@ import { Agent } from '@dfinity/agent'; -import { getActor, Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { InspectMessageBehavior } from './test'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/test/test.ts similarity index 81% rename from tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/inspect_message/test/test.ts index 7842190272..c8bc087d6f 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/test/test.ts @@ -1,16 +1,16 @@ import { Agent } from '@dfinity/agent'; import { createAuthenticatedAgentSync, getPrincipal } from 'azle/dfx'; -import { runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { InspectMessageMethodArb } from 'azle/property_tests/arbitraries/canister_methods/inspect_message_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { InspectMessageMethodArb } from 'azle/test/property/arbitraries/canister_methods/inspect_message_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { v4 } from 'uuid'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/inspect_message/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/package.json b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/package.json diff --git a/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts new file mode 100644 index 0000000000..b789583aa7 --- /dev/null +++ b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts @@ -0,0 +1,10 @@ +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; + +export function generateBody( + _namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + return `return ${returnType.src.valueLiteral}`; +} diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_init_method_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_init_method_body.ts similarity index 59% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_init_method_body.ts rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_init_method_body.ts index 11ca50e9ac..4181f5b0d3 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_init_method_body.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_init_method_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; import { globalInitVarName } from './global_var_name'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_init_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_init_tests.ts similarity index 71% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_init_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_init_tests.ts index c6633d557b..b6c576d370 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_init_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_init_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( _functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts similarity index 60% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts index 53e2b3d832..f9e4bd9456 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; import { globalPostUpgradeVarName } from './global_var_name'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts similarity index 73% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts index cafe9558b7..7d9e9ddba4 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( _functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/global_var_name.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/global_var_name.ts similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/global_var_name.ts rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/global_var_name.ts diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/test.ts similarity index 88% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/test.ts index 98dad2c236..71e7b1b24c 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/test.ts @@ -1,30 +1,30 @@ -import { runPropTests } from 'azle/property_tests'; -import { candidDefinitionArb } from 'azle/property_tests/arbitraries/candid/candid_definition_arb'; +import { runPropTests } from 'azle/test/property'; +import { candidDefinitionArb } from 'azle/test/property/arbitraries/candid/candid_definition_arb'; import { CandidDefinition, WithShapes -} from 'azle/property_tests/arbitraries/candid/candid_definition_arb/types'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; +} from 'azle/test/property/arbitraries/candid/candid_definition_arb/types'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; import { CandidValueAndMeta, CandidValueAndMetaArb -} from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { definitionAndValueToValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb_generator'; -import { CandidValueArb } from 'azle/property_tests/arbitraries/candid/candid_values_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +} from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { definitionAndValueToValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb_generator'; +import { CandidValueArb } from 'azle/test/property/arbitraries/candid/candid_values_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { InitMethodArb } from 'azle/property_tests/arbitraries/canister_methods/init_method_arb'; -import { PostUpgradeMethodArb } from 'azle/property_tests/arbitraries/canister_methods/post_upgrade_arb'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { InitMethodArb } from 'azle/test/property/arbitraries/canister_methods/init_method_arb'; +import { PostUpgradeMethodArb } from 'azle/test/property/arbitraries/canister_methods/post_upgrade_arb'; import { QueryMethod, QueryMethodArb -} from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { DEFAULT_VALUE_MAX_DEPTH } from 'azle/property_tests/arbitraries/config'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { DEFAULT_VALUE_MAX_DEPTH } from 'azle/test/property/arbitraries/config'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody as callableMethodBodyGenerator } from './generate_callable_method_body'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/package.json b/tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/package.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/test/test.ts similarity index 81% rename from tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/test/test.ts index f6fbf1c25f..97161a1da3 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/test/test.ts @@ -1,19 +1,19 @@ -import { getActor, runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { getActor, runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { PreUpgradeMethodArb } from 'azle/property_tests/arbitraries/canister_methods/pre_upgrade_method_arb'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { PreUpgradeMethodArb } from 'azle/test/property/arbitraries/canister_methods/pre_upgrade_method_arb'; import { QueryMethod, QueryMethodArb -} from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; -import { AzleResult, testEquality } from 'azle/property_tests/test'; +} from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; +import { AzleResult, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; const api: Api = 'functional'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/query/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/query/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/query/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/query/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/query/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/query/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/package.json b/tests/property/candid_rpc/functional_api/canister_methods/query/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/query/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/query/package.json diff --git a/tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_body.ts new file mode 100644 index 0000000000..f1bc623693 --- /dev/null +++ b/tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_body.ts @@ -0,0 +1,18 @@ +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; + +export function generateBody( + namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); + + return ` + ${paramsAreCorrectlyOrdered} + + return ${returnType.src.valueLiteral} + `; +} diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_tests.ts similarity index 63% rename from tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_tests.ts index 3b11b5427c..3f03f5b327 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_tests.ts @@ -1,8 +1,8 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/query/test/test.ts similarity index 61% rename from tests/property/candid_rpc/functional_syntax/canister_methods/query/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/query/test/test.ts index a7b6900fb8..c3b80af197 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/query/test/test.ts @@ -1,12 +1,12 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/query/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/query/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/query/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/update/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/update/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/update/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/update/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/update/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/update/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/package.json b/tests/property/candid_rpc/functional_api/canister_methods/update/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/update/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/update/package.json diff --git a/tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_body.ts new file mode 100644 index 0000000000..f1bc623693 --- /dev/null +++ b/tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_body.ts @@ -0,0 +1,18 @@ +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; + +export function generateBody( + namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); + + return ` + ${paramsAreCorrectlyOrdered} + + return ${returnType.src.valueLiteral} + `; +} diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_tests.ts similarity index 63% rename from tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_tests.ts index b922deb88a..f822f5fefe 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_tests.ts @@ -1,8 +1,8 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/update/test/test.ts similarity index 59% rename from tests/property/candid_rpc/functional_syntax/canister_methods/update/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/update/test/test.ts index deb834ecbb..78b5ce1af3 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/update/test/test.ts @@ -1,12 +1,12 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/update/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/update/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/update/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/float32/dfx.json b/tests/property/candid_rpc/functional_api/float32/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float32/dfx.json rename to tests/property/candid_rpc/functional_api/float32/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/float32/package-lock.json b/tests/property/candid_rpc/functional_api/float32/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float32/package-lock.json rename to tests/property/candid_rpc/functional_api/float32/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/float32/package.json b/tests/property/candid_rpc/functional_api/float32/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float32/package.json rename to tests/property/candid_rpc/functional_api/float32/package.json diff --git a/tests/property/candid_rpc/class_syntax/float32/test/generate_body.ts b/tests/property/candid_rpc/functional_api/float32/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/class_syntax/float32/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/float32/test/generate_body.ts index be4f256104..40e429d11c 100644 --- a/tests/property/candid_rpc/class_syntax/float32/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/float32/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamFloat32s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/float32/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/float32/test/generate_tests.ts similarity index 79% rename from tests/property/candid_rpc/functional_syntax/float32/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/float32/test/generate_tests.ts index 44bbc97595..8d06ffb8c1 100644 --- a/tests/property/candid_rpc/functional_syntax/float32/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/float32/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/float32/test/test.ts b/tests/property/candid_rpc/functional_api/float32/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/float32/test/test.ts rename to tests/property/candid_rpc/functional_api/float32/test/test.ts index 5bfb1ea15f..73469c761d 100644 --- a/tests/property/candid_rpc/functional_syntax/float32/test/test.ts +++ b/tests/property/candid_rpc/functional_api/float32/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Float32Arb } from 'azle/property_tests/arbitraries/candid/primitive/floats/float32_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Float32Arb } from 'azle/test/property/arbitraries/candid/primitive/floats/float32_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/float32/tsconfig.json b/tests/property/candid_rpc/functional_api/float32/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float32/tsconfig.json rename to tests/property/candid_rpc/functional_api/float32/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/float64/dfx.json b/tests/property/candid_rpc/functional_api/float64/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float64/dfx.json rename to tests/property/candid_rpc/functional_api/float64/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/float64/package-lock.json b/tests/property/candid_rpc/functional_api/float64/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float64/package-lock.json rename to tests/property/candid_rpc/functional_api/float64/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/float64/package.json b/tests/property/candid_rpc/functional_api/float64/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float64/package.json rename to tests/property/candid_rpc/functional_api/float64/package.json diff --git a/tests/property/candid_rpc/class_syntax/float64/test/generate_body.ts b/tests/property/candid_rpc/functional_api/float64/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/float64/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/float64/test/generate_body.ts index f3fc35fa4b..2bf26aa450 100644 --- a/tests/property/candid_rpc/class_syntax/float64/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/float64/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamFloat64s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/float64/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/float64/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/float64/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/float64/test/generate_tests.ts index cd5d42f3fe..a1b96c9d69 100644 --- a/tests/property/candid_rpc/class_syntax/float64/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/float64/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/float64/test/test.ts b/tests/property/candid_rpc/functional_api/float64/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/float64/test/test.ts rename to tests/property/candid_rpc/functional_api/float64/test/test.ts index 670f65d118..4f10cca888 100644 --- a/tests/property/candid_rpc/functional_syntax/float64/test/test.ts +++ b/tests/property/candid_rpc/functional_api/float64/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Float64Arb } from 'azle/property_tests/arbitraries/candid/primitive/floats/float64_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Float64Arb } from 'azle/test/property/arbitraries/candid/primitive/floats/float64_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/float64/tsconfig.json b/tests/property/candid_rpc/functional_api/float64/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float64/tsconfig.json rename to tests/property/candid_rpc/functional_api/float64/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/func/dfx.json b/tests/property/candid_rpc/functional_api/func/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/func/dfx.json rename to tests/property/candid_rpc/functional_api/func/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/func/package-lock.json b/tests/property/candid_rpc/functional_api/func/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/func/package-lock.json rename to tests/property/candid_rpc/functional_api/func/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/func/package.json b/tests/property/candid_rpc/functional_api/func/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/func/package.json rename to tests/property/candid_rpc/functional_api/func/package.json diff --git a/tests/property/candid_rpc/class_syntax/func/test/generate_body.ts b/tests/property/candid_rpc/functional_api/func/test/generate_body.ts similarity index 77% rename from tests/property/candid_rpc/class_syntax/func/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/func/test/generate_body.ts index 9311c41d89..13b2df4ee3 100644 --- a/tests/property/candid_rpc/class_syntax/func/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/func/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Func } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Func } from 'azle/test/property/arbitraries/candid/reference/func_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamFuncs: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/func/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/func/test/generate_tests.ts similarity index 71% rename from tests/property/candid_rpc/functional_syntax/func/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/func/test/generate_tests.ts index 76a9739ccb..6f43b31d48 100644 --- a/tests/property/candid_rpc/functional_syntax/func/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/func/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Func } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Func } from 'azle/test/property/arbitraries/candid/reference/func_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/func/test/test.ts b/tests/property/candid_rpc/functional_api/func/test/test.ts similarity index 66% rename from tests/property/candid_rpc/functional_syntax/func/test/test.ts rename to tests/property/candid_rpc/functional_api/func/test/test.ts index 89ececb470..0ac44e2ac8 100644 --- a/tests/property/candid_rpc/functional_syntax/func/test/test.ts +++ b/tests/property/candid_rpc/functional_api/func/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { FuncArb } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { FuncArb } from 'azle/test/property/arbitraries/candid/reference/func_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/func/tsconfig.json b/tests/property/candid_rpc/functional_api/func/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/func/tsconfig.json rename to tests/property/candid_rpc/functional_api/func/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/int/dfx.json b/tests/property/candid_rpc/functional_api/int/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int/dfx.json rename to tests/property/candid_rpc/functional_api/int/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/int/package-lock.json b/tests/property/candid_rpc/functional_api/int/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int/package-lock.json rename to tests/property/candid_rpc/functional_api/int/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/int/package.json b/tests/property/candid_rpc/functional_api/int/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int/package.json rename to tests/property/candid_rpc/functional_api/int/package.json diff --git a/tests/property/candid_rpc/class_syntax/int/test/generate_body.ts b/tests/property/candid_rpc/functional_api/int/test/generate_body.ts similarity index 73% rename from tests/property/candid_rpc/class_syntax/int/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/int/test/generate_body.ts index 213bb0ae99..20f5dfb198 100644 --- a/tests/property/candid_rpc/class_syntax/int/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/int/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInts: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/int/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/int/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/class_syntax/int/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/int/test/generate_tests.ts index 4e58696822..d371cab3d8 100644 --- a/tests/property/candid_rpc/class_syntax/int/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/int/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/int/test/test.ts b/tests/property/candid_rpc/functional_api/int/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/int/test/test.ts rename to tests/property/candid_rpc/functional_api/int/test/test.ts index c549f5a3c5..3f97c821d9 100644 --- a/tests/property/candid_rpc/functional_syntax/int/test/test.ts +++ b/tests/property/candid_rpc/functional_api/int/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { IntArb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { IntArb } from 'azle/test/property/arbitraries/candid/primitive/ints/int_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/int/tsconfig.json b/tests/property/candid_rpc/functional_api/int/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int/tsconfig.json rename to tests/property/candid_rpc/functional_api/int/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/int16/dfx.json b/tests/property/candid_rpc/functional_api/int16/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int16/dfx.json rename to tests/property/candid_rpc/functional_api/int16/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/int16/package-lock.json b/tests/property/candid_rpc/functional_api/int16/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int16/package-lock.json rename to tests/property/candid_rpc/functional_api/int16/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/int16/package.json b/tests/property/candid_rpc/functional_api/int16/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int16/package.json rename to tests/property/candid_rpc/functional_api/int16/package.json diff --git a/tests/property/candid_rpc/functional_syntax/int16/test/generate_body.ts b/tests/property/candid_rpc/functional_api/int16/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/int16/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/int16/test/generate_body.ts index 0f26a55321..bf8eb93e4e 100644 --- a/tests/property/candid_rpc/functional_syntax/int16/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/int16/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt16s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/int16/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/int16/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/int16/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/int16/test/generate_tests.ts index a541579499..ca7736f384 100644 --- a/tests/property/candid_rpc/class_syntax/int16/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/int16/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/int16/test/test.ts b/tests/property/candid_rpc/functional_api/int16/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/int16/test/test.ts rename to tests/property/candid_rpc/functional_api/int16/test/test.ts index 9a98086f34..7cad7f38cb 100644 --- a/tests/property/candid_rpc/functional_syntax/int16/test/test.ts +++ b/tests/property/candid_rpc/functional_api/int16/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int16Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int16_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int16Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int16_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/int16/tsconfig.json b/tests/property/candid_rpc/functional_api/int16/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int16/tsconfig.json rename to tests/property/candid_rpc/functional_api/int16/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/int32/dfx.json b/tests/property/candid_rpc/functional_api/int32/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int32/dfx.json rename to tests/property/candid_rpc/functional_api/int32/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/int32/package-lock.json b/tests/property/candid_rpc/functional_api/int32/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int32/package-lock.json rename to tests/property/candid_rpc/functional_api/int32/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/int32/package.json b/tests/property/candid_rpc/functional_api/int32/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int32/package.json rename to tests/property/candid_rpc/functional_api/int32/package.json diff --git a/tests/property/candid_rpc/functional_syntax/int32/test/generate_body.ts b/tests/property/candid_rpc/functional_api/int32/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/int32/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/int32/test/generate_body.ts index fcac9922a5..66c38aae59 100644 --- a/tests/property/candid_rpc/functional_syntax/int32/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/int32/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt32s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/int32/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/int32/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/int32/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/int32/test/generate_tests.ts index 7e273b9729..aca24d4e9e 100644 --- a/tests/property/candid_rpc/functional_syntax/int32/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/int32/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/int32/test/test.ts b/tests/property/candid_rpc/functional_api/int32/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/int32/test/test.ts rename to tests/property/candid_rpc/functional_api/int32/test/test.ts index 879aa53941..212868a91f 100644 --- a/tests/property/candid_rpc/functional_syntax/int32/test/test.ts +++ b/tests/property/candid_rpc/functional_api/int32/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int32Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int32_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int32Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int32_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/int32/tsconfig.json b/tests/property/candid_rpc/functional_api/int32/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int32/tsconfig.json rename to tests/property/candid_rpc/functional_api/int32/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/int64/dfx.json b/tests/property/candid_rpc/functional_api/int64/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int64/dfx.json rename to tests/property/candid_rpc/functional_api/int64/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/int64/package-lock.json b/tests/property/candid_rpc/functional_api/int64/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int64/package-lock.json rename to tests/property/candid_rpc/functional_api/int64/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/int64/package.json b/tests/property/candid_rpc/functional_api/int64/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int64/package.json rename to tests/property/candid_rpc/functional_api/int64/package.json diff --git a/tests/property/candid_rpc/class_syntax/int64/test/generate_body.ts b/tests/property/candid_rpc/functional_api/int64/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/int64/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/int64/test/generate_body.ts index a176e72b06..756f0c0432 100644 --- a/tests/property/candid_rpc/class_syntax/int64/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/int64/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt64s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/int64/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/int64/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/int64/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/int64/test/generate_tests.ts index 636992ed67..d4c9ee1e05 100644 --- a/tests/property/candid_rpc/class_syntax/int64/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/int64/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/int64/test/test.ts b/tests/property/candid_rpc/functional_api/int64/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/int64/test/test.ts rename to tests/property/candid_rpc/functional_api/int64/test/test.ts index 3bd29d35ec..53c03325e4 100644 --- a/tests/property/candid_rpc/functional_syntax/int64/test/test.ts +++ b/tests/property/candid_rpc/functional_api/int64/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int64Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int64_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int64Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int64_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/int64/tsconfig.json b/tests/property/candid_rpc/functional_api/int64/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int64/tsconfig.json rename to tests/property/candid_rpc/functional_api/int64/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/int8/dfx.json b/tests/property/candid_rpc/functional_api/int8/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int8/dfx.json rename to tests/property/candid_rpc/functional_api/int8/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/int8/package-lock.json b/tests/property/candid_rpc/functional_api/int8/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int8/package-lock.json rename to tests/property/candid_rpc/functional_api/int8/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/int8/package.json b/tests/property/candid_rpc/functional_api/int8/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int8/package.json rename to tests/property/candid_rpc/functional_api/int8/package.json diff --git a/tests/property/candid_rpc/class_syntax/int8/test/generate_body.ts b/tests/property/candid_rpc/functional_api/int8/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/int8/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/int8/test/generate_body.ts index 030c06a9bc..44d2a1f3af 100644 --- a/tests/property/candid_rpc/class_syntax/int8/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/int8/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt8s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/int8/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/int8/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/int8/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/int8/test/generate_tests.ts index 947d939c1d..2895ddb7b8 100644 --- a/tests/property/candid_rpc/functional_syntax/int8/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/int8/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/int8/test/test.ts b/tests/property/candid_rpc/functional_api/int8/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/int8/test/test.ts rename to tests/property/candid_rpc/functional_api/int8/test/test.ts index 263b614e85..d3c933bbe1 100644 --- a/tests/property/candid_rpc/functional_syntax/int8/test/test.ts +++ b/tests/property/candid_rpc/functional_api/int8/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int8Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int8_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int8Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int8_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/int8/tsconfig.json b/tests/property/candid_rpc/functional_api/int8/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int8/tsconfig.json rename to tests/property/candid_rpc/functional_api/int8/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/nat/dfx.json b/tests/property/candid_rpc/functional_api/nat/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat/dfx.json rename to tests/property/candid_rpc/functional_api/nat/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/nat/package-lock.json b/tests/property/candid_rpc/functional_api/nat/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat/package-lock.json rename to tests/property/candid_rpc/functional_api/nat/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/nat/package.json b/tests/property/candid_rpc/functional_api/nat/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat/package.json rename to tests/property/candid_rpc/functional_api/nat/package.json diff --git a/tests/property/candid_rpc/class_syntax/nat/test/generate_body.ts b/tests/property/candid_rpc/functional_api/nat/test/generate_body.ts similarity index 73% rename from tests/property/candid_rpc/class_syntax/nat/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/nat/test/generate_body.ts index ba2e63496a..433fae1de6 100644 --- a/tests/property/candid_rpc/class_syntax/nat/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/nat/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNats: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/nat/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/nat/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/class_syntax/nat/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/nat/test/generate_tests.ts index 7cd446f07d..88de4ee05b 100644 --- a/tests/property/candid_rpc/class_syntax/nat/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/nat/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/nat/test/test.ts b/tests/property/candid_rpc/functional_api/nat/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/nat/test/test.ts rename to tests/property/candid_rpc/functional_api/nat/test/test.ts index 9f5222d0b2..cf20941bdd 100644 --- a/tests/property/candid_rpc/functional_syntax/nat/test/test.ts +++ b/tests/property/candid_rpc/functional_api/nat/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { NatArb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { NatArb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/nat/tsconfig.json b/tests/property/candid_rpc/functional_api/nat/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat/tsconfig.json rename to tests/property/candid_rpc/functional_api/nat/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/nat16/dfx.json b/tests/property/candid_rpc/functional_api/nat16/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat16/dfx.json rename to tests/property/candid_rpc/functional_api/nat16/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/nat16/package-lock.json b/tests/property/candid_rpc/functional_api/nat16/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat16/package-lock.json rename to tests/property/candid_rpc/functional_api/nat16/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/nat16/package.json b/tests/property/candid_rpc/functional_api/nat16/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat16/package.json rename to tests/property/candid_rpc/functional_api/nat16/package.json diff --git a/tests/property/candid_rpc/class_syntax/nat16/test/generate_body.ts b/tests/property/candid_rpc/functional_api/nat16/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/nat16/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/nat16/test/generate_body.ts index 36c5809b54..556e2bee55 100644 --- a/tests/property/candid_rpc/class_syntax/nat16/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/nat16/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat16s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/nat16/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/nat16/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/nat16/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/nat16/test/generate_tests.ts index 712cfd11df..8830422ece 100644 --- a/tests/property/candid_rpc/class_syntax/nat16/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/nat16/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/nat16/test/test.ts b/tests/property/candid_rpc/functional_api/nat16/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/nat16/test/test.ts rename to tests/property/candid_rpc/functional_api/nat16/test/test.ts index 9c1606b13a..8ae99786f1 100644 --- a/tests/property/candid_rpc/functional_syntax/nat16/test/test.ts +++ b/tests/property/candid_rpc/functional_api/nat16/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat16Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat16_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat16Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat16_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/nat16/tsconfig.json b/tests/property/candid_rpc/functional_api/nat16/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat16/tsconfig.json rename to tests/property/candid_rpc/functional_api/nat16/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/nat32/dfx.json b/tests/property/candid_rpc/functional_api/nat32/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat32/dfx.json rename to tests/property/candid_rpc/functional_api/nat32/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/nat32/package-lock.json b/tests/property/candid_rpc/functional_api/nat32/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat32/package-lock.json rename to tests/property/candid_rpc/functional_api/nat32/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/nat32/package.json b/tests/property/candid_rpc/functional_api/nat32/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat32/package.json rename to tests/property/candid_rpc/functional_api/nat32/package.json diff --git a/tests/property/candid_rpc/functional_syntax/nat32/test/generate_body.ts b/tests/property/candid_rpc/functional_api/nat32/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/nat32/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/nat32/test/generate_body.ts index 3ead7aca94..946047b3ee 100644 --- a/tests/property/candid_rpc/functional_syntax/nat32/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/nat32/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat32s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/nat32/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/nat32/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/nat32/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/nat32/test/generate_tests.ts index 9b67e1291b..cb3c408713 100644 --- a/tests/property/candid_rpc/class_syntax/nat32/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/nat32/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/nat32/test/test.ts b/tests/property/candid_rpc/functional_api/nat32/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/nat32/test/test.ts rename to tests/property/candid_rpc/functional_api/nat32/test/test.ts index 0093ecbb3d..582f0720ee 100644 --- a/tests/property/candid_rpc/functional_syntax/nat32/test/test.ts +++ b/tests/property/candid_rpc/functional_api/nat32/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat32Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat32_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat32Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat32_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/nat32/tsconfig.json b/tests/property/candid_rpc/functional_api/nat32/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat32/tsconfig.json rename to tests/property/candid_rpc/functional_api/nat32/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/nat64/dfx.json b/tests/property/candid_rpc/functional_api/nat64/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat64/dfx.json rename to tests/property/candid_rpc/functional_api/nat64/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/nat64/package-lock.json b/tests/property/candid_rpc/functional_api/nat64/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat64/package-lock.json rename to tests/property/candid_rpc/functional_api/nat64/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/nat64/package.json b/tests/property/candid_rpc/functional_api/nat64/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat64/package.json rename to tests/property/candid_rpc/functional_api/nat64/package.json diff --git a/tests/property/candid_rpc/functional_syntax/nat64/test/generate_body.ts b/tests/property/candid_rpc/functional_api/nat64/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/nat64/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/nat64/test/generate_body.ts index 423f9a0013..b14079001d 100644 --- a/tests/property/candid_rpc/functional_syntax/nat64/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/nat64/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat64s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/nat64/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/nat64/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/nat64/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/nat64/test/generate_tests.ts index 1bf97bf853..0c1b787e13 100644 --- a/tests/property/candid_rpc/class_syntax/nat64/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/nat64/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/nat64/test/test.ts b/tests/property/candid_rpc/functional_api/nat64/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/nat64/test/test.ts rename to tests/property/candid_rpc/functional_api/nat64/test/test.ts index 9bc71e9c0d..7120659aed 100644 --- a/tests/property/candid_rpc/functional_syntax/nat64/test/test.ts +++ b/tests/property/candid_rpc/functional_api/nat64/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat64Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat64_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat64Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat64_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/nat64/tsconfig.json b/tests/property/candid_rpc/functional_api/nat64/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat64/tsconfig.json rename to tests/property/candid_rpc/functional_api/nat64/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/nat8/dfx.json b/tests/property/candid_rpc/functional_api/nat8/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat8/dfx.json rename to tests/property/candid_rpc/functional_api/nat8/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/nat8/package-lock.json b/tests/property/candid_rpc/functional_api/nat8/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat8/package-lock.json rename to tests/property/candid_rpc/functional_api/nat8/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/nat8/package.json b/tests/property/candid_rpc/functional_api/nat8/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat8/package.json rename to tests/property/candid_rpc/functional_api/nat8/package.json diff --git a/tests/property/candid_rpc/functional_syntax/nat8/test/generate_body.ts b/tests/property/candid_rpc/functional_api/nat8/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/nat8/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/nat8/test/generate_body.ts index 1a06f4ec48..0c91a382d6 100644 --- a/tests/property/candid_rpc/functional_syntax/nat8/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/nat8/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat8s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/nat8/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/nat8/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/nat8/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/nat8/test/generate_tests.ts index 10e8bc18a4..00b271b245 100644 --- a/tests/property/candid_rpc/functional_syntax/nat8/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/nat8/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/nat8/test/test.ts b/tests/property/candid_rpc/functional_api/nat8/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/nat8/test/test.ts rename to tests/property/candid_rpc/functional_api/nat8/test/test.ts index 26068053e7..b46804a260 100644 --- a/tests/property/candid_rpc/functional_syntax/nat8/test/test.ts +++ b/tests/property/candid_rpc/functional_api/nat8/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat8Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat8_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat8Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat8_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/nat8/tsconfig.json b/tests/property/candid_rpc/functional_api/nat8/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat8/tsconfig.json rename to tests/property/candid_rpc/functional_api/nat8/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/null/dfx.json b/tests/property/candid_rpc/functional_api/null/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/null/dfx.json rename to tests/property/candid_rpc/functional_api/null/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/null/package-lock.json b/tests/property/candid_rpc/functional_api/null/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/null/package-lock.json rename to tests/property/candid_rpc/functional_api/null/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/null/package.json b/tests/property/candid_rpc/functional_api/null/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/null/package.json rename to tests/property/candid_rpc/functional_api/null/package.json diff --git a/tests/property/candid_rpc/functional_syntax/null/test/generate_body.ts b/tests/property/candid_rpc/functional_api/null/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/functional_syntax/null/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/null/test/generate_body.ts index 407c964407..4f492c6131 100644 --- a/tests/property/candid_rpc/functional_syntax/null/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/null/test/generate_body.ts @@ -1,5 +1,5 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParamNulls: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/null/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/null/test/generate_tests.ts similarity index 75% rename from tests/property/candid_rpc/functional_syntax/null/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/null/test/generate_tests.ts index ab971a20d4..b768bdc13a 100644 --- a/tests/property/candid_rpc/functional_syntax/null/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/null/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/null/test/test.ts b/tests/property/candid_rpc/functional_api/null/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/null/test/test.ts rename to tests/property/candid_rpc/functional_api/null/test/test.ts index 04902e8e8f..9636341b66 100644 --- a/tests/property/candid_rpc/functional_syntax/null/test/test.ts +++ b/tests/property/candid_rpc/functional_api/null/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { NullArb } from 'azle/property_tests/arbitraries/candid/primitive/null'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { NullArb } from 'azle/test/property/arbitraries/candid/primitive/null'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/null/tsconfig.json b/tests/property/candid_rpc/functional_api/null/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/null/tsconfig.json rename to tests/property/candid_rpc/functional_api/null/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/opt/dfx.json b/tests/property/candid_rpc/functional_api/opt/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/opt/dfx.json rename to tests/property/candid_rpc/functional_api/opt/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/opt/package-lock.json b/tests/property/candid_rpc/functional_api/opt/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/opt/package-lock.json rename to tests/property/candid_rpc/functional_api/opt/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/opt/package.json b/tests/property/candid_rpc/functional_api/opt/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/opt/package.json rename to tests/property/candid_rpc/functional_api/opt/package.json diff --git a/tests/property/candid_rpc/functional_syntax/opt/test/generate_body.ts b/tests/property/candid_rpc/functional_api/opt/test/generate_body.ts similarity index 70% rename from tests/property/candid_rpc/functional_syntax/opt/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/opt/test/generate_body.ts index 1973730d8e..81b132aab0 100644 --- a/tests/property/candid_rpc/functional_syntax/opt/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/opt/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Opt } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Opt } from 'azle/test/property/arbitraries/candid/constructed/opt_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamOpts: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/opt/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/opt/test/generate_tests.ts similarity index 70% rename from tests/property/candid_rpc/functional_syntax/opt/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/opt/test/generate_tests.ts index 1c6ce71905..8061de7166 100644 --- a/tests/property/candid_rpc/functional_syntax/opt/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/opt/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Opt } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Opt } from 'azle/test/property/arbitraries/candid/constructed/opt_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/opt/test/test.ts b/tests/property/candid_rpc/functional_api/opt/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/opt/test/test.ts rename to tests/property/candid_rpc/functional_api/opt/test/test.ts index abb8c6adb0..edb1768d89 100644 --- a/tests/property/candid_rpc/functional_syntax/opt/test/test.ts +++ b/tests/property/candid_rpc/functional_api/opt/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { OptArb } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { OptArb } from 'azle/test/property/arbitraries/candid/constructed/opt_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/opt/tsconfig.json b/tests/property/candid_rpc/functional_api/opt/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/opt/tsconfig.json rename to tests/property/candid_rpc/functional_api/opt/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/principal/dfx.json b/tests/property/candid_rpc/functional_api/principal/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/principal/dfx.json rename to tests/property/candid_rpc/functional_api/principal/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/principal/package-lock.json b/tests/property/candid_rpc/functional_api/principal/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/principal/package-lock.json rename to tests/property/candid_rpc/functional_api/principal/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/principal/package.json b/tests/property/candid_rpc/functional_api/principal/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/principal/package.json rename to tests/property/candid_rpc/functional_api/principal/package.json diff --git a/tests/property/candid_rpc/functional_syntax/principal/test/generate_body.ts b/tests/property/candid_rpc/functional_api/principal/test/generate_body.ts similarity index 77% rename from tests/property/candid_rpc/functional_syntax/principal/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/principal/test/generate_body.ts index 69dc896e1a..a43d5e00c2 100644 --- a/tests/property/candid_rpc/functional_syntax/principal/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/principal/test/generate_body.ts @@ -1,7 +1,7 @@ import { Principal } from '@dfinity/principal'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamPrincipals: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/principal/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/principal/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/principal/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/principal/test/generate_tests.ts index 05f59dc620..fad105f8fb 100644 --- a/tests/property/candid_rpc/class_syntax/principal/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/principal/test/generate_tests.ts @@ -1,7 +1,7 @@ import { Principal } from '@dfinity/principal'; -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/principal/test/test.ts b/tests/property/candid_rpc/functional_api/principal/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/principal/test/test.ts rename to tests/property/candid_rpc/functional_api/principal/test/test.ts index 00b1a13b45..cce2a5f3cb 100644 --- a/tests/property/candid_rpc/functional_syntax/principal/test/test.ts +++ b/tests/property/candid_rpc/functional_api/principal/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { PrincipalArb } from 'azle/property_tests/arbitraries/candid/reference/principal_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { PrincipalArb } from 'azle/test/property/arbitraries/candid/reference/principal_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/principal/tsconfig.json b/tests/property/candid_rpc/functional_api/principal/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/principal/tsconfig.json rename to tests/property/candid_rpc/functional_api/principal/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/record/dfx.json b/tests/property/candid_rpc/functional_api/record/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/record/dfx.json rename to tests/property/candid_rpc/functional_api/record/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/record/package-lock.json b/tests/property/candid_rpc/functional_api/record/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/record/package-lock.json rename to tests/property/candid_rpc/functional_api/record/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/record/package.json b/tests/property/candid_rpc/functional_api/record/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/record/package.json rename to tests/property/candid_rpc/functional_api/record/package.json diff --git a/tests/property/candid_rpc/class_syntax/record/test/generate_body.ts b/tests/property/candid_rpc/functional_api/record/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/class_syntax/record/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/record/test/generate_body.ts index 56d5b4a55f..503fb61421 100644 --- a/tests/property/candid_rpc/class_syntax/record/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/record/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Record } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Record } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamRecords: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/record/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/record/test/generate_tests.ts similarity index 71% rename from tests/property/candid_rpc/functional_syntax/record/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/record/test/generate_tests.ts index e23fd20329..dbcbc2348a 100644 --- a/tests/property/candid_rpc/functional_syntax/record/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/record/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Record } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Record } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/record/test/test.ts b/tests/property/candid_rpc/functional_api/record/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/record/test/test.ts rename to tests/property/candid_rpc/functional_api/record/test/test.ts index 712746e896..c57abf1ad4 100644 --- a/tests/property/candid_rpc/functional_syntax/record/test/test.ts +++ b/tests/property/candid_rpc/functional_api/record/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { RecordArb } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { RecordArb } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/record/tsconfig.json b/tests/property/candid_rpc/functional_api/record/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/record/tsconfig.json rename to tests/property/candid_rpc/functional_api/record/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/recursive/dfx.json b/tests/property/candid_rpc/functional_api/recursive/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/recursive/dfx.json rename to tests/property/candid_rpc/functional_api/recursive/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/recursive/package-lock.json b/tests/property/candid_rpc/functional_api/recursive/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/recursive/package-lock.json rename to tests/property/candid_rpc/functional_api/recursive/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/recursive/package.json b/tests/property/candid_rpc/functional_api/recursive/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/recursive/package.json rename to tests/property/candid_rpc/functional_api/recursive/package.json diff --git a/tests/property/candid_rpc/functional_syntax/recursive/test/generate_body.ts b/tests/property/candid_rpc/functional_api/recursive/test/generate_body.ts similarity index 55% rename from tests/property/candid_rpc/functional_syntax/recursive/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/recursive/test/generate_body.ts index 6488fdc42b..fc82049805 100644 --- a/tests/property/candid_rpc/functional_syntax/recursive/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/recursive/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Recursive } from 'azle/property_tests/arbitraries/candid/recursive'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Recursive } from 'azle/test/property/arbitraries/candid/recursive'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamRecursive: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/recursive/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/recursive/test/generate_tests.ts similarity index 72% rename from tests/property/candid_rpc/class_syntax/recursive/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/recursive/test/generate_tests.ts index d6459ffb9e..f051ae2125 100644 --- a/tests/property/candid_rpc/class_syntax/recursive/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/recursive/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Recursive } from 'azle/property_tests/arbitraries/candid/recursive'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Recursive } from 'azle/test/property/arbitraries/candid/recursive'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/recursive/test/test.ts b/tests/property/candid_rpc/functional_api/recursive/test/test.ts similarity index 68% rename from tests/property/candid_rpc/functional_syntax/recursive/test/test.ts rename to tests/property/candid_rpc/functional_api/recursive/test/test.ts index c08da73148..3f598f9e9b 100644 --- a/tests/property/candid_rpc/functional_syntax/recursive/test/test.ts +++ b/tests/property/candid_rpc/functional_api/recursive/test/test.ts @@ -1,12 +1,12 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { RecursiveArb } from 'azle/property_tests/arbitraries/candid/recursive'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { RecursiveArb } from 'azle/test/property/arbitraries/candid/recursive'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/recursive/tsconfig.json b/tests/property/candid_rpc/functional_api/recursive/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/recursive/tsconfig.json rename to tests/property/candid_rpc/functional_api/recursive/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/service/dfx.json b/tests/property/candid_rpc/functional_api/service/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/service/dfx.json rename to tests/property/candid_rpc/functional_api/service/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/service/package-lock.json b/tests/property/candid_rpc/functional_api/service/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/service/package-lock.json rename to tests/property/candid_rpc/functional_api/service/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/service/package.json b/tests/property/candid_rpc/functional_api/service/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/service/package.json rename to tests/property/candid_rpc/functional_api/service/package.json diff --git a/tests/property/candid_rpc/functional_syntax/service/test/generate_body.ts b/tests/property/candid_rpc/functional_api/service/test/generate_body.ts similarity index 84% rename from tests/property/candid_rpc/functional_syntax/service/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/service/test/generate_body.ts index 21e6caaec4..bfc2501091 100644 --- a/tests/property/candid_rpc/functional_syntax/service/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/service/test/generate_body.ts @@ -1,6 +1,6 @@ import { Principal } from '@dfinity/principal'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParamServices: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/service/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/service/test/generate_tests.ts similarity index 86% rename from tests/property/candid_rpc/functional_syntax/service/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/service/test/generate_tests.ts index 0f28d07c9c..f1e003ce6e 100644 --- a/tests/property/candid_rpc/functional_syntax/service/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/service/test/generate_tests.ts @@ -1,7 +1,7 @@ import { Principal } from '@dfinity/principal'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { execSync } from 'child_process'; export function generateTests( diff --git a/tests/property/candid_rpc/functional_syntax/service/test/test.ts b/tests/property/candid_rpc/functional_api/service/test/test.ts similarity index 70% rename from tests/property/candid_rpc/functional_syntax/service/test/test.ts rename to tests/property/candid_rpc/functional_api/service/test/test.ts index d0347fb3c5..b5a0470a08 100644 --- a/tests/property/candid_rpc/functional_syntax/service/test/test.ts +++ b/tests/property/candid_rpc/functional_api/service/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { ServiceArb } from 'azle/property_tests/arbitraries/candid/reference/service_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { ServiceArb } from 'azle/test/property/arbitraries/candid/reference/service_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/service/tsconfig.json b/tests/property/candid_rpc/functional_api/service/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/service/tsconfig.json rename to tests/property/candid_rpc/functional_api/service/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/dfx.json b/tests/property/candid_rpc/functional_api/stable_b_tree_map/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/dfx.json rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/package-lock.json b/tests/property/candid_rpc/functional_api/stable_b_tree_map/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/package-lock.json rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/package.json b/tests/property/candid_rpc/functional_api/stable_b_tree_map/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/package.json rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/package.json diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/contains_key.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/contains_key.ts similarity index 87% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/contains_key.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/contains_key.ts index 51071a6976..b51178b4e8 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/contains_key.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/contains_key.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function ContainsKeyTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/get.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/get.ts similarity index 89% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/get.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/get.ts index 8776841b04..5f8352db63 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/get.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/get.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function GetTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/insert.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/insert.ts similarity index 85% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/insert.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/insert.ts index eee4aff2ed..de593afbda 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/insert.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/insert.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function InsertTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/is_empty.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/is_empty.ts similarity index 83% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/is_empty.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/is_empty.ts index cee6467046..91bea2690a 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/is_empty.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/is_empty.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function IsEmptyTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/items.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/items.ts similarity index 88% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/items.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/items.ts index 052986ad4c..d2d123801a 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/items.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/items.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function ItemsTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/keys.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/keys.ts similarity index 89% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/keys.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/keys.ts index 2fee7a3318..b64008bda4 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/keys.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/keys.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; import { getArrayForCandidType, getArrayStringForCandidType } from './utils'; diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/len.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/len.ts similarity index 84% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/len.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/len.ts index 626ca45e94..c6046ee4bb 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/len.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/len.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function LenTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/remove.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/remove.ts similarity index 86% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/remove.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/remove.ts index 0aa2c2b6a4..2101a2194f 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/remove.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/remove.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function RemoveTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/test.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/test.ts similarity index 92% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/test.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/test.ts index 75ee3008df..19951ca3cf 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/test.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/test.ts @@ -1,7 +1,7 @@ -import { runPropTests } from 'azle/property_tests'; -import { CanisterArb } from 'azle/property_tests/arbitraries/canister_arb'; -import { StableBTreeMapArb } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { Context } from 'azle/property_tests/arbitraries/types'; +import { runPropTests } from 'azle/test/property'; +import { CanisterArb } from 'azle/test/property/arbitraries/canister_arb'; +import { StableBTreeMapArb } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { Context } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { ContainsKeyTestArb } from './contains_key'; diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/utils.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/utils.ts similarity index 100% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/utils.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/utils.ts diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/values.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/values.ts similarity index 89% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/values.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/values.ts index cb63b05728..05700543f1 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/values.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/values.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; import { getArrayForCandidType, getArrayStringForCandidType } from './utils'; diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/tsconfig.json b/tests/property/candid_rpc/functional_api/stable_b_tree_map/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/tsconfig.json rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/text/dfx.json b/tests/property/candid_rpc/functional_api/text/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/text/dfx.json rename to tests/property/candid_rpc/functional_api/text/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/text/package-lock.json b/tests/property/candid_rpc/functional_api/text/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/text/package-lock.json rename to tests/property/candid_rpc/functional_api/text/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/text/package.json b/tests/property/candid_rpc/functional_api/text/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/text/package.json rename to tests/property/candid_rpc/functional_api/text/package.json diff --git a/tests/property/candid_rpc/functional_syntax/text/test/generate_body.ts b/tests/property/candid_rpc/functional_api/text/test/generate_body.ts similarity index 74% rename from tests/property/candid_rpc/functional_syntax/text/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/text/test/generate_body.ts index 0e2091277f..12eb7385e2 100644 --- a/tests/property/candid_rpc/functional_syntax/text/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/text/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamTexts: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/text/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/text/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/class_syntax/text/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/text/test/generate_tests.ts index 370e30d251..864fad0251 100644 --- a/tests/property/candid_rpc/class_syntax/text/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/text/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/text/test/test.ts b/tests/property/candid_rpc/functional_api/text/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/text/test/test.ts rename to tests/property/candid_rpc/functional_api/text/test/test.ts index 61dcd8b245..74c2d8ec5e 100644 --- a/tests/property/candid_rpc/functional_syntax/text/test/test.ts +++ b/tests/property/candid_rpc/functional_api/text/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { TextArb } from 'azle/property_tests/arbitraries/candid/primitive/text'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { TextArb } from 'azle/test/property/arbitraries/candid/primitive/text'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/text/tsconfig.json b/tests/property/candid_rpc/functional_api/text/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/text/tsconfig.json rename to tests/property/candid_rpc/functional_api/text/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/tuple/dfx.json b/tests/property/candid_rpc/functional_api/tuple/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/tuple/dfx.json rename to tests/property/candid_rpc/functional_api/tuple/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/tuple/package-lock.json b/tests/property/candid_rpc/functional_api/tuple/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/tuple/package-lock.json rename to tests/property/candid_rpc/functional_api/tuple/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/tuple/package.json b/tests/property/candid_rpc/functional_api/tuple/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/tuple/package.json rename to tests/property/candid_rpc/functional_api/tuple/package.json diff --git a/tests/property/candid_rpc/functional_syntax/tuple/test/generate_body.ts b/tests/property/candid_rpc/functional_api/tuple/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/functional_syntax/tuple/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/tuple/test/generate_body.ts index 9db56b18d1..9d15797453 100644 --- a/tests/property/candid_rpc/functional_syntax/tuple/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/tuple/test/generate_body.ts @@ -1,10 +1,10 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { ReturnTuple, Tuple -} from 'azle/property_tests/arbitraries/candid/constructed/tuple_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +} from 'azle/test/property/arbitraries/candid/constructed/tuple_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamTuples: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/tuple/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/tuple/test/generate_tests.ts similarity index 73% rename from tests/property/candid_rpc/functional_syntax/tuple/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/tuple/test/generate_tests.ts index c35eedb756..387be4ae21 100644 --- a/tests/property/candid_rpc/functional_syntax/tuple/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/tuple/test/generate_tests.ts @@ -1,10 +1,10 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { ReturnTuple, Tuple -} from 'azle/property_tests/arbitraries/candid/constructed/tuple_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +} from 'azle/test/property/arbitraries/candid/constructed/tuple_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/tuple/test/test.ts b/tests/property/candid_rpc/functional_api/tuple/test/test.ts similarity index 66% rename from tests/property/candid_rpc/functional_syntax/tuple/test/test.ts rename to tests/property/candid_rpc/functional_api/tuple/test/test.ts index 69af2d38a4..42bca543ba 100644 --- a/tests/property/candid_rpc/functional_syntax/tuple/test/test.ts +++ b/tests/property/candid_rpc/functional_api/tuple/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { TupleArb } from 'azle/property_tests/arbitraries/candid/constructed/tuple_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { TupleArb } from 'azle/test/property/arbitraries/candid/constructed/tuple_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/tuple/tsconfig.json b/tests/property/candid_rpc/functional_api/tuple/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/tuple/tsconfig.json rename to tests/property/candid_rpc/functional_api/tuple/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/variant/dfx.json b/tests/property/candid_rpc/functional_api/variant/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/variant/dfx.json rename to tests/property/candid_rpc/functional_api/variant/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/variant/package-lock.json b/tests/property/candid_rpc/functional_api/variant/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/variant/package-lock.json rename to tests/property/candid_rpc/functional_api/variant/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/variant/package.json b/tests/property/candid_rpc/functional_api/variant/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/variant/package.json rename to tests/property/candid_rpc/functional_api/variant/package.json diff --git a/tests/property/candid_rpc/class_syntax/variant/test/generate_body.ts b/tests/property/candid_rpc/functional_api/variant/test/generate_body.ts similarity index 67% rename from tests/property/candid_rpc/class_syntax/variant/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/variant/test/generate_body.ts index 30e7aea51d..74c5ff75b8 100644 --- a/tests/property/candid_rpc/class_syntax/variant/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/variant/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Variant } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Variant } from 'azle/test/property/arbitraries/candid/constructed/variant_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamVariants: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/variant/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/variant/test/generate_tests.ts similarity index 71% rename from tests/property/candid_rpc/functional_syntax/variant/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/variant/test/generate_tests.ts index d9e46079d2..540ee8ead8 100644 --- a/tests/property/candid_rpc/functional_syntax/variant/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/variant/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Variant } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Variant } from 'azle/test/property/arbitraries/candid/constructed/variant_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/variant/test/test.ts b/tests/property/candid_rpc/functional_api/variant/test/test.ts similarity index 66% rename from tests/property/candid_rpc/functional_syntax/variant/test/test.ts rename to tests/property/candid_rpc/functional_api/variant/test/test.ts index 458e9d1db5..ea758d638a 100644 --- a/tests/property/candid_rpc/functional_syntax/variant/test/test.ts +++ b/tests/property/candid_rpc/functional_api/variant/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { VariantArb } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { VariantArb } from 'azle/test/property/arbitraries/candid/constructed/variant_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/variant/tsconfig.json b/tests/property/candid_rpc/functional_api/variant/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/variant/tsconfig.json rename to tests/property/candid_rpc/functional_api/variant/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/vec/dfx.json b/tests/property/candid_rpc/functional_api/vec/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/vec/dfx.json rename to tests/property/candid_rpc/functional_api/vec/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/vec/package-lock.json b/tests/property/candid_rpc/functional_api/vec/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/vec/package-lock.json rename to tests/property/candid_rpc/functional_api/vec/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/vec/package.json b/tests/property/candid_rpc/functional_api/vec/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/vec/package.json rename to tests/property/candid_rpc/functional_api/vec/package.json diff --git a/tests/property/candid_rpc/class_syntax/vec/test/generate_body.ts b/tests/property/candid_rpc/functional_api/vec/test/generate_body.ts similarity index 72% rename from tests/property/candid_rpc/class_syntax/vec/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/vec/test/generate_body.ts index e209ee6cd3..512c4d1b63 100644 --- a/tests/property/candid_rpc/class_syntax/vec/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/vec/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamVecs: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/vec/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/vec/test/generate_tests.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/vec/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/vec/test/generate_tests.ts index f668d981b1..682face3fd 100644 --- a/tests/property/candid_rpc/functional_syntax/vec/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/vec/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/vec/test/test.ts b/tests/property/candid_rpc/functional_api/vec/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/vec/test/test.ts rename to tests/property/candid_rpc/functional_api/vec/test/test.ts index 47b2f5168f..c6288e00a6 100644 --- a/tests/property/candid_rpc/functional_syntax/vec/test/test.ts +++ b/tests/property/candid_rpc/functional_api/vec/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { VecArb } from 'azle/property_tests/arbitraries/candid/constructed/vec_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { VecArb } from 'azle/test/property/arbitraries/candid/constructed/vec_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/vec/tsconfig.json b/tests/property/candid_rpc/functional_api/vec/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/vec/tsconfig.json rename to tests/property/candid_rpc/functional_api/vec/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_callable_method_body.ts b/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_callable_method_body.ts deleted file mode 100644 index d52e92001a..0000000000 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_callable_method_body.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; - -export function generateBody( - _namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - return `return ${returnType.src.valueLiteral}`; -} diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts b/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts deleted file mode 100644 index d52e92001a..0000000000 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; - -export function generateBody( - _namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - return `return ${returnType.src.valueLiteral}`; -} diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_body.ts b/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_body.ts deleted file mode 100644 index 0a78fed29d..0000000000 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_body.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; - -export function generateBody( - namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); - - return ` - ${paramsAreCorrectlyOrdered} - - return ${returnType.src.valueLiteral} - `; -} diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_body.ts b/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_body.ts deleted file mode 100644 index 0a78fed29d..0000000000 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_body.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; - -export function generateBody( - namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); - - return ` - ${paramsAreCorrectlyOrdered} - - return ${returnType.src.valueLiteral} - `; -}