Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions cypress.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,21 @@ export default defineConfig({
define: {
NEXTCLOUD_VERSION: '"32.0.0"',
},
optimizeDeps: {
include: [
'vue',
'@cypress/vue2',
'rehype-highlight',
],
force: true,
},
warmup: {
clientFiles: [
'cypress/support/component.ts',
'cypress/**/*.cy.ts',
'cypress/**/*.cy.js',
],
},
css: {
devSourcemap: true,
preprocessorOptions: {
Expand Down
2 changes: 1 addition & 1 deletion cypress/component/NcAppSettingsDialog.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { mount } from 'cypress/vue2'
import { mount } from '@cypress/vue2'
import { defineComponent } from 'vue'
import NcAppSettingsDialog from '../../src/components/NcAppSettingsDialog/NcAppSettingsDialog.vue'
import NcAppSettingsSection from '../../src/components/NcAppSettingsSection/NcAppSettingsSection.vue'
Expand Down
2 changes: 1 addition & 1 deletion cypress/component/NcDialog.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { mount } from 'cypress/vue2'
import { mount } from '@cypress/vue2'
import NcDialog from '../../src/components/NcDialog/NcDialog.vue'

describe('NcDialog', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/component/NcModal.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import type { Component } from 'vue'

import { mount } from 'cypress/vue2'
import { mount } from '@cypress/vue2'
import NcModal from '../../src/components/NcModal/NcModal.vue'

describe('NcModal', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/component/NcSelect.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { mount } from 'cypress/vue2'
import { mount } from '@cypress/vue2'
import NcSelect from '../../src/components/NcSelect/NcSelect.vue'

describe('NcSelect', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/component/NcSelectUsers.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { mount } from 'cypress/vue2'
import { mount } from '@cypress/vue2'
import NcSelectUsers from '../../src/components/NcSelectUsers/NcSelectUsers.vue'

it('emits the search event', async () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/component/richtext.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Markdown guide: https://www.markdownguide.org/basic-syntax/
// Reference tests: https://github.com/nextcloud-deps/CDMarkdownKit/tree/master/CDMarkdownKitTests

import { mount } from 'cypress/vue2'
import { mount } from '@cypress/vue2'
import NcRichText from '../../src/components/NcRichText/NcRichText.vue'

describe('NcRichText', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/visual/AppNavigationItem.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { mount } from 'cypress/vue2'
import { mount } from '@cypress/vue2'
import Vue, { defineComponent } from 'vue'
import VueRouter from 'vue-router'
import NcAppNavigationItem from '../../src/components/NcAppNavigationItem/NcAppNavigationItem.vue'
Expand Down
Loading