A development/acceptance server I maintain is part of infrastructure that doesn't allow internet access. So npm install is not an option. I have installed Cypress via a zip file. To install cypress-plugin-api there were some challenges but I've found a workaround:
copy https://unpkg.com/cypress-plugin-api@latest/dist/support.js to <project>/cypress/support/cypress-plugin-api.js;
add the line import './cypress-plugin-api' to <project>/cypress/support/e2e.js;
create a node_modules/vue folder in <project>/cypress/support;
copy https://unpkg.com/vue@latest/dist/vue.runtime.global.prod.js to <project>/cypress/support/node_modules/vue/index.js;
add the line module.exports = Vue; as the last line to <project>/cypress/support/node_modules/vue/index.js.
Perhaps somebody else could benefit from this setup. Feel free to close the issue.
A development/acceptance server I maintain is part of infrastructure that doesn't allow internet access. So npm install is not an option. I have installed Cypress via a zip file. To install cypress-plugin-api there were some challenges but I've found a workaround:
https://unpkg.com/cypress-plugin-api@latest/dist/support.js
to<project>/cypress/support/cypress-plugin-api.js
;import './cypress-plugin-api'
to<project>/cypress/support/e2e.js
;node_modules/vue
folder in<project>/cypress/support
;https://unpkg.com/vue@latest/dist/vue.runtime.global.prod.js
to<project>/cypress/support/node_modules/vue/index.js
;module.exports = Vue;
as the last line to<project>/cypress/support/node_modules/vue/index.js
.Perhaps somebody else could benefit from this setup. Feel free to close the issue.