1.4.15 • Published 9 months ago
@ebi-gene-expression-group/scxa-cell-type-wheel-heatmap v1.4.15
scxa-cell-type-wheel
Run tests with:
npx cypress run --component
If you want to omit video recording:
npx cypress run --component --record false
Find 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-coverage
Add 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'
1.4.15
9 months ago
1.4.6
11 months ago
1.4.5
11 months ago
1.4.4
12 months ago
1.4.3
12 months ago
1.4.1
12 months ago
1.4.0
12 months ago
1.4.9
11 months ago
1.4.11
10 months ago
1.4.8
11 months ago
1.4.7
11 months ago
1.4.13
10 months ago
1.4.12
10 months ago
1.4.14
10 months ago
1.3.2
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.0
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.2.0-beta1
3 years ago
1.2.0-beta3
3 years ago
1.2.0-beta2
3 years ago
1.2.0-beta4
3 years ago
1.1.0-beta2
3 years ago
1.1.0-beta
4 years ago
1.0.0-beta
4 years ago