diff --git a/x-pack/test/api_integration/apis/transform/transforms_preview.ts b/x-pack/test/api_integration/apis/transform/transforms_preview.ts index 82a6312377cd2..d0fc44cf28fdb 100644 --- a/x-pack/test/api_integration/apis/transform/transforms_preview.ts +++ b/x-pack/test/api_integration/apis/transform/transforms_preview.ts @@ -26,7 +26,10 @@ export default ({ getService }: FtrProviderContext) => { }; function getTransformPreviewConfig() { - const { dest, ...config } = generateTransformConfig('the-dummy-id'); + // passing in an empty string for transform id since we will not use + // it as part of the config request schema. Destructuring will + // remove the `dest` part of the config. + const { dest, ...config } = generateTransformConfig(''); return config as PostTransformsPreviewRequestSchema; }