cypress-plugin-api
cypress-plugin-api copied to clipboard
Installing without npm
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.jsto<project>/cypress/support/cypress-plugin-api.js; - add the line
import './cypress-plugin-api'to<project>/cypress/support/e2e.js; - create a
node_modules/vuefolder in<project>/cypress/support; - copy
https://unpkg.com/vue@latest/dist/vue.runtime.global.prod.jsto<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.