mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-28 19:00:03 -05:00
feat: adding svelte component testing support (#23553)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io> Co-authored-by: Rocky <25568640+rockindahizzy@users.noreply.github.com>
This commit is contained in:
+2
-1
@@ -19,4 +19,5 @@ vue
|
||||
vue2
|
||||
react*
|
||||
mount-utils
|
||||
angular
|
||||
angular
|
||||
svelte
|
||||
|
||||
+7
-1
@@ -108,7 +108,8 @@
|
||||
"react",
|
||||
"vue2",
|
||||
"react18",
|
||||
"angular"
|
||||
"angular",
|
||||
"svelte"
|
||||
],
|
||||
"bin": {
|
||||
"cypress": "bin/cypress"
|
||||
@@ -155,6 +156,11 @@
|
||||
"import": "./angular/dist/index.js",
|
||||
"require": "./angular/dist/index.js",
|
||||
"types": "./angular/dist/index.d.ts"
|
||||
},
|
||||
"./svelte": {
|
||||
"import": "./svelte/dist/cypress-svelte.esm-bundler.js",
|
||||
"require": "./svelte/dist/cypress-svelte.cjs.js",
|
||||
"types": "./svelte/dist/index.d.ts"
|
||||
}
|
||||
},
|
||||
"workspaces": {
|
||||
|
||||
@@ -13,6 +13,7 @@ const npmModulesToCopy = [
|
||||
'vue',
|
||||
'vue2',
|
||||
'angular',
|
||||
'svelte',
|
||||
]
|
||||
|
||||
npmModulesToCopy.forEach((folder) => {
|
||||
|
||||
Vendored
+2
-2
@@ -3058,11 +3058,11 @@ declare namespace Cypress {
|
||||
|
||||
type DevServerConfigOptions = {
|
||||
bundler: 'webpack'
|
||||
framework: 'react' | 'vue' | 'vue-cli' | 'nuxt' | 'create-react-app' | 'next'
|
||||
framework: 'react' | 'vue' | 'vue-cli' | 'nuxt' | 'create-react-app' | 'next' | 'svelte'
|
||||
webpackConfig?: PickConfigOpt<'webpackConfig'>
|
||||
} | {
|
||||
bundler: 'vite'
|
||||
framework: 'react' | 'vue'
|
||||
framework: 'react' | 'vue' | 'svelte'
|
||||
viteConfig?: Omit<Exclude<PickConfigOpt<'viteConfig'>, undefined>, 'base' | 'root'>
|
||||
} | {
|
||||
bundler: 'webpack',
|
||||
|
||||
Reference in New Issue
Block a user