diff --git a/.github/workflows/test-e2e-composable.yml b/.github/workflows/test-e2e-composable.yml index b46eb14fa..8d2c46aa5 100644 --- a/.github/workflows/test-e2e-composable.yml +++ b/.github/workflows/test-e2e-composable.yml @@ -56,6 +56,10 @@ jobs: - name: Build run: pnpm run build + - name: Build app + working-directory: ${{env.dir}} + run: pnpm run build + - name: E2E tests working-directory: ${{env.dir}} run: pnpm run test:e2e diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1893a82c2..95d75a660 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,10 +10,10 @@ pnpm install Go to a package in `packages`. -Build the library with watching: +Build the library: ``` -pnpm run dev +pnpm run build ``` Run tests: diff --git a/packages/test-e2e-composable-vue3/babel.config.js b/packages/test-e2e-composable-vue3/babel.config.js deleted file mode 100644 index df195386e..000000000 --- a/packages/test-e2e-composable-vue3/babel.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - presets: [ - '@vue/cli-plugin-babel/preset', - ], -} diff --git a/packages/test-e2e-composable-vue3/cypress.config.ts b/packages/test-e2e-composable-vue3/cypress.config.ts index 6a205cc41..947187ca0 100644 --- a/packages/test-e2e-composable-vue3/cypress.config.ts +++ b/packages/test-e2e-composable-vue3/cypress.config.ts @@ -1,23 +1,26 @@ import { defineConfig } from 'cypress' +import vitePreprocessor from 'cypress-vite' import axios from 'axios' -module.exports = defineConfig({ +export default defineConfig({ fixturesFolder: 'tests/e2e/fixtures', screenshotsFolder: 'tests/e2e/screenshots', videosFolder: 'tests/e2e/videos', downloadsFolder: 'tests/e2e/downloads', e2e: { + baseUrl: 'http://localhost:8080', // We've imported your old cypress plugins here. // You may want to clean this up later by importing these. - setupNodeEvents (on, config) { + setupNodeEvents (on) { on('task', { async 'db:reset' () { await axios.get('http://localhost:4042/_reset') return true }, }) + on('file:preprocessor', vitePreprocessor()) }, specPattern: 'tests/e2e/specs/**/*.cy.{js,jsx,ts,tsx}', - supportFile: 'tests/e2e/support/index.js', + supportFile: 'tests/e2e/support/index.ts', }, }) diff --git a/packages/test-e2e-composable-vue3/public/index.html b/packages/test-e2e-composable-vue3/index.html similarity index 55% rename from packages/test-e2e-composable-vue3/public/index.html rename to packages/test-e2e-composable-vue3/index.html index 412352865..de0bcffcf 100644 --- a/packages/test-e2e-composable-vue3/public/index.html +++ b/packages/test-e2e-composable-vue3/index.html @@ -4,14 +4,13 @@ - -