Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update cypress 13 #319

Merged
merged 5 commits into from
Sep 21, 2023
Merged
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
24 changes: 12 additions & 12 deletions build/instrumentation.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import visualizer from 'rollup-plugin-visualizer';
import vue from 'rollup-plugin-vue';
import * as fs from 'fs';

const jsOutputDirectory = path.join(process.cwd(), 'dist');

/**
* Creates a rollup configuration for projects that use X-Components. This configuration can be customized with the options object.
*
Expand Down Expand Up @@ -49,26 +47,28 @@ export function createConfig({
};
}

const mergedOutput = {
dir: path.join(process.cwd(), 'dist'),
format: 'es',
sourcemap: true,
assetFileNames: '[name][extname]',
entryFileNames: 'app.js',
...output
};

return {
input,
output: {
dir: jsOutputDirectory,
format: 'es',
sourcemap: true,
assetFileNames: '[name][extname]',
entryFileNames: 'app.js',
...output
},
output: mergedOutput,
preserveEntrySignatures: false,
plugins: [
...prePlugins,
del(
mergeConfig('del', {
targets: [`${jsOutputDirectory}/*`]
targets: [`${mergedOutput.dir}/*`]
})
),
copy({
targets: [{ src: ['public/**', '!public/index.html'], dest: '${output.dir}' }]
targets: [{ src: ['public/**', '!public/index.html'], dest: `${mergedOutput.dir}` }]
}),
// Resolving plugins
replace(
Expand Down
21 changes: 21 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineConfig } from 'cypress'

export default defineConfig({
defaultCommandTimeout: 7000,
fixturesFolder: 'tests/e2e/fixtures',
screenshotsFolder: 'tests/e2e/screenshots',
screenshotOnRunFailure: false,
video: false,
retries: 1,
includeShadowDom: true,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./tests/e2e/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost:8080',
specPattern: 'tests/e2e/cucumber/**/*.feature',
supportFile: 'tests/e2e/support/index.ts',
},
})
14 changes: 0 additions & 14 deletions cypress.json

This file was deleted.

Loading