import { defineInlineTest } from 'jscodeshift/src/testUtils' ; const transform = require ( '../root-prop-to-use' ) ; defineInlineTest ( transform , { rootPropName : 'router' , } , `createApp({ router });` , `createApp({}).use(router);` , 'correctly transform root `router` prop to `.use(router)`' ) ; defineInlineTest ( transform , { rootPropName : 'router' , } , `Vue.createApp({ router });` , `Vue.createApp({}).use(router);` , 'Can recognize Vue.createApp' ) ; defineInlineTest ( transform , { rootPropName : 'router' , } , `createApp({});` , `createApp({});` ) ;