From d044ebc37d9f4d8a8d6ea82cd55a2bdc4984c92d Mon Sep 17 00:00:00 2001 From: cdibble Date: Mon, 22 Jan 2024 15:15:48 -0800 Subject: [PATCH] move globals vars to own file for webpack and vitest usage --- test/globals.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/globals.js diff --git a/test/globals.js b/test/globals.js new file mode 100644 index 00000000..ff758af6 --- /dev/null +++ b/test/globals.js @@ -0,0 +1,23 @@ +/* eslint flowtype/require-valid-file-annotation: off, flowtype/require-return-type: off */ + +export const sdkClientTestGlobals = { + __PORT__: 8000, + __STAGE_HOST__: "sandbox.paypal.com", + __HOST__: "test.paypal.com", + __HOSTNAME__: "test.paypal.com", + __SDK_HOST__: "test.paypal.com", + __PATH__: "/sdk/js", + + __ENV__: "test", + __VERSION__: "1.0.45", + __CORRELATION_ID__: "abc123", + __NAMESPACE__: "paypaltest", + __PAYPAL_DOMAIN__: "mock://www.paypal.com", + __PAYPAL_API_DOMAIN__: "mock://sandbox.paypal.com", + __COMPONENTS__: ["buttons"], + __DISABLE_SET_COOKIE__: true, + __EXPERIMENTATION__: { + __EXPERIENCE__: "1122", + __TREATMENT__: "1234", + }, +};