mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-12 20:39:22 -05:00
fix(app): allow launching app dev server w/o relying on supportFile to bundle deps (#18354)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
This commit is contained in:
@@ -14,10 +14,9 @@
|
||||
"reporterOptions": {
|
||||
"configFile": "../../mocha-reporter-config.json"
|
||||
},
|
||||
"componentFolder": "src",
|
||||
"supportFile": false,
|
||||
"component": {
|
||||
"componentFolder": "src"
|
||||
},
|
||||
"e2e": {
|
||||
"supportFile": false
|
||||
"testFiles": "**/*.spec.{js,ts,tsx,jsx}"
|
||||
}
|
||||
}
|
||||
|
||||
5
packages/app/src/Basic.spec.tsx
Normal file
5
packages/app/src/Basic.spec.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('hello', () => {
|
||||
it('works', () => {
|
||||
expect(1).to.eq(1)
|
||||
})
|
||||
})
|
||||
@@ -2,7 +2,17 @@ import { makeConfig } from '../frontend-shared/vite.config'
|
||||
import Layouts from 'vite-plugin-vue-layouts'
|
||||
import Pages from 'vite-plugin-pages'
|
||||
|
||||
export default makeConfig({}, {
|
||||
export default makeConfig({
|
||||
optimizeDeps: {
|
||||
include: [
|
||||
'@urql/core',
|
||||
'vue-i18n',
|
||||
'vue-router',
|
||||
'@urql/devtools',
|
||||
'@urql/exchange-graphcache',
|
||||
],
|
||||
},
|
||||
}, {
|
||||
plugins: [
|
||||
Layouts(),
|
||||
Pages({ extensions: ['vue'] }),
|
||||
|
||||
Reference in New Issue
Block a user