Im trying to run tests in my Github Actions, i have sample test there and all is good on my local enviroment, but when running into github, test runner fails.
Your 'pluginsFile' is set to '/home/runner/work/xxx/xxx/cypress/plugins/index.js, but either the file is missing, it contains a syntax error, or threw an error when required. The 'pluginsFile' must be a '.js', '.ts', or '.coffee' file.
Or you might have renamed the extension of your 'pluginsFile'. If that's the case, restart the test runner.
Please fix this, or set 'pluginsFile' to 'false' if a plugins file is not necessary for your project.
Error: Cannot find module 'webpack-dev-server'
const { getWebpackConfig } = require('nuxt')
export default (on) => {
on('dev-server:start', async (options) => {
const webpackConfig = await getWebpackConfig()
return startDevServer({
options,
webpackConfig
})
})
}
on:
push:
branches: ['*']
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm ci
- name: Run Component tests ๐งช
uses: cypress-io/github-action@v2
with:
# we have already installed everything
install: false
# to run component tests we need to use "cypress run-ct"
command: yarn cypress run-ct