Skip to content

Commit

Permalink
fix: fix issue w/ Cypress and GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Uninen committed Mar 12, 2022
1 parent f8d7e83 commit 5b65b07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/component/HelloWorld.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import HelloWorld from '../../src/components/HelloWorld.vue'

describe('Basic demo', () => {
before(() => {
// An attempt to fix https://github.com/cypress-io/cypress/issues/4925
setTimeout(() => {
console.log('waiting for CI to catch up')
}, 2000)
}, 1000)
})

it('Passes msg prop correctly', () => {
Expand Down
8 changes: 7 additions & 1 deletion tests/e2e/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import { resolve } from 'path'
import { startDevServer } from '@cypress/vite-dev-server'

export default function (
on: Cypress.PluginEvents,
config: Cypress.PluginConfigOptions
): void | Cypress.ConfigOptions | Promise<Cypress.ConfigOptions> {
on('dev-server:start', async (options: Cypress.DevServerConfig) => {
return startDevServer({ options })
return startDevServer({
options,
viteConfig: {
configFile: resolve(__dirname, '..', '..', '..', 'vite.config.ts'),
},
})
})
return config
}

1 comment on commit 5b65b07

@vercel
Copy link

@vercel vercel bot commented on 5b65b07 Mar 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.