Skip to content

Commit 0bbbf71

Browse files
committed
feat: add unitTesting env variable to webpack process
1 parent 8ee2bed commit 0bbbf71

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/services/test-execution-service.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,16 @@ export class TestExecutionService implements ITestExecutionService {
107107
return info;
108108
});
109109

110+
const env = this.$options.env || {};
111+
env.unitTesting = !!this.$options.bundle;
112+
110113
const liveSyncInfo: ILiveSyncInfo = {
111114
projectDir: projectData.projectDir,
112115
skipWatcher: !this.$options.watch || this.$options.justlaunch,
113116
watchAllFiles: this.$options.syncAllFiles,
114117
bundle: !!this.$options.bundle,
115118
release: this.$options.release,
116-
env: this.$options.env,
119+
env,
117120
timeout: this.$options.timeout,
118121
useHotModuleReload: this.$options.hmr
119122
};

0 commit comments

Comments
 (0)