diff --git a/src/services/development.ts b/src/services/development.ts index 4e636211e..6e864cbd6 100644 --- a/src/services/development.ts +++ b/src/services/development.ts @@ -71,9 +71,14 @@ export const services: ServiceConfigurator = (app) => [ [token('development.components'), { service: () => { - return [ - ['KClipboardProvider', DebugKClipboardProvider], - ] + // unit testing is likely to have process + // no matter which runner is used + // if we are unit testing don't decorate KClipboardProvider + return typeof process === 'undefined' + ? [ + ['KClipboardProvider', DebugKClipboardProvider], + ] + : [] }, labels: [ app.components,