forked from paypal/paypal-card-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
44 lines (37 loc) · 1.07 KB
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* @flow */
import { getKarmaConfig } from 'grumbler-scripts/config/karma.conf';
import { getWebpackConfig } from 'grumbler-scripts/config/webpack.config';
import globals from './globals';
const hostedFieldsGlobal = {
serverConfig: {
fundingEligibility: {
card: () => 'window.TEST_CARD_ELIGIBILITY'
}
}
};
export default (karma : Object) =>
karma.set(getKarmaConfig(karma, {
client: {
captureConsole: true
},
basePath: __dirname,
webpack: getWebpackConfig({
vars: {
...globals,
__hosted_fields__: hostedFieldsGlobal,
__CLIENT_ID__: 'xyz',
__MERCHANT_ID__: 'abc',
__LOCALE_COUNTRY__: 'US',
__DEFAULT_LANG__: 'en',
__INTENT__: 'capture',
__COMMIT__: true,
__VAULT__: true,
__PORT__: 8000,
__STAGE_HOST__: 'msmaster.qa.paypal.com',
__HOST__: 'test.paypal.com',
__HOSTNAME__: 'test.paypal.com',
__PATH__: '/sdk/js',
__CORRELATION_ID__: 'abc123'
}
})
}));