@ebi-gene-expression-group/scxa-cell-type-wheel-heatmap v1.4.24
scxa-cell-type-wheel
Run tests with:
npx cypress run --componentIf you want to omit video recording:
npx cypress run --component --record falseFind coverage reports at:
./coverage/lcov-report/index.html
Add code coverage (in a nutshell)
This is an abridged version of https://docs.cypress.io/guides/tooling/code-coverage.
Add the following three packages:
npm install -D babel-plugin-transform-class-properties babel-plugin-istanbul @cypress/code-coverageAdd the two plugins to your .babelrc file:
{
"presets": ["@babel/preset-react", "@babel/preset-env"],
"plugins": [ "transform-class-properties", "istanbul" ]
}Add @cypress/code-coverage in your cypress.config.js file so it looks like this:
const { defineConfig } = require(`cypress`)
module.exports = defineConfig({
component: {
setupNodeEvents(on, config) {
require(`@cypress/code-coverage/task`)(on, config)
// include any other plugin code...
// It's IMPORTANT to return the config object
// with any changed environment variables
return config
},
devServer: {
framework: `react`,
bundler: `webpack`
}
}
})Lastly, add the following import to cypress/support/component.js:
import '@cypress/code-coverage/support'7 months ago
8 months ago
10 months ago
11 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago