Skip to content

Commit

Permalink
move globals vars to own file for webpack and vitest usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cgdibble committed Jan 22, 2024
1 parent fa5970b commit d044ebc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/globals.js
Original file line number Diff line number Diff line change
@@ -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",
},
};

0 comments on commit d044ebc

Please sign in to comment.