diff --git a/src/App.js b/src/App.js index 726133ef..c0f5ba24 100644 --- a/src/App.js +++ b/src/App.js @@ -117,6 +117,7 @@ export default class App extends Base { process.env.STANDALONE_PREFIX = standalonePrefix; process.env.ID = 0; process.env.REGISTERPROVIDER = true; + process.env.SDKS_AVAILABLE = [...CONSTANTS.defaultSDKs, ...CONSTANTS.additionalSDKs]; // Set the pubSub URL if present process.env.PUB_SUB_URL = new URLSearchParams(window.location.search).get('pubSubUrl'); diff --git a/src/IntentReader.js b/src/IntentReader.js index 427b9c94..b2b6bcda 100644 --- a/src/IntentReader.js +++ b/src/IntentReader.js @@ -34,7 +34,6 @@ import GetPubSubStatusHandler from './pubsub/handlers/GetPubSubStatusHandler'; import CallMethodHandler from './pubsub/handlers/CallMethodHandler'; import DataFetchHandler from './pubsub/handlers/DataFetchHandler'; import HealthCheckHandler from './pubsub/handlers/HealthCheckHandler'; -import RunTestHandler from './pubsub/handlers/RunTestHandler'; import RegisterEventHandler from './pubsub/handlers/RegisterEventHandler'; import ClearEventListeners from './pubsub/handlers/ClearEventListeners'; import ClearEventHandler from './pubsub/handlers/clearEventHandler'; @@ -45,6 +44,7 @@ import GetEventResponse from './pubsub/handlers/GetEventResponse'; import GetMethodResponseHandler from './pubsub/handlers/GetMethodResponseHandler'; import VisibilityStateHandler from '../src/pubsub/handlers/VisibilityStateHandler'; import LifecycleMethodHandler from './pubsub/handlers/LifecycleMethodHandler'; +import RunTestHandler from 'RunTestHandler'; const logger = require('./utils/Logger')('IntentReader.js'); diff --git a/test/jest.config.js b/test/jest.config.js index aff43ae3..b6e49c41 100644 --- a/test/jest.config.js +++ b/test/jest.config.js @@ -34,6 +34,7 @@ module.exports = { '^EventInvocation$': '/../src//EventInvocation.js', '^IntentReader$': '../src/IntentReader.js', '^CensorData$': '/../src/source/censorData.json', + '^RunTestHandler$': '/../src/pubsub/handlers/RunTestHandler.js', }, collectCoverage: true, coverageThreshold: { diff --git a/webpack.dev.js b/webpack.dev.js index 51ac2894..1cae4777 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -109,7 +109,7 @@ module.exports = { alias: ['/plugins/censorData.json', '/src/source/censorData.json'], }, { - name: 'runTestHandler', + name: 'RunTestHandler', alias: ['/plugins/runTestHandler.js', '/src/pubsub/handlers/RunTestHandler.js'], }, ], diff --git a/webpack.prod.js b/webpack.prod.js index 0d35ac90..4a58f527 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -92,7 +92,7 @@ module.exports = { alias: ['/plugins/censorData.json', '/src/source/censorData.json'], }, { - name: 'runTestHandler', + name: 'RunTestHandler', alias: ['/plugins/runTestHandler.js', '/src/pubsub/handlers/RunTestHandler.js'], }, ],