Update packages and remove the instrument step (#854)

* several updates
* avoid the instrumented step in tests
This commit is contained in:
JFH
2022-11-27 23:01:27 +01:00
committed by GitHub
parent c0d0db4d7e
commit 00a7d61122
68 changed files with 1472 additions and 765 deletions

45
cypress.config.mjs Normal file
View File

@@ -0,0 +1,45 @@
import { defineConfig } from 'cypress'
import fs from 'fs'
import codeCoverageTask from '@cypress/code-coverage/task.js'
export default defineConfig({
video: false,
defaultCommandTimeout: 10000,
pageLoadTimeout: 120000,
includeShadowDom: true,
scrollBehavior: false,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents (on, config) {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
// https://docs.cypress.io/guides/tooling/code-coverage.html#Install-the-plugin
codeCoverageTask(on, config)
on('task', {
readFileMaybe (filename) {
if (fs.existsSync(filename)) {
return fs.readFileSync(filename, 'utf8')
}
return null
}
})
return config
},
env: {
codeCoverage: {
exclude: 'cypress/**/*.*'
}
},
baseUrl: 'http://localhost:8000',
excludeSpecPattern: ['**/__snapshots__/*', '**/__image_snapshots__/*']
}
})