Apply suggestions from code review of branch webapp_unit_testing
Co-authored-by: Beth Probert <beth_probert@outlook.com>
This commit is contained in:
parent
63991b3425
commit
ad22d106a6
2 changed files with 3 additions and 3 deletions
|
|
@ -40,7 +40,7 @@ export default defineConfig(({ command, mode }) => {
|
||||||
? [
|
? [
|
||||||
(node) => {
|
(node) => {
|
||||||
// Check if the current AST node is an HTML element
|
// Check if the current AST node is an HTML element
|
||||||
if (node.type === 1 /* NodeTypes.ELEMENT */) {
|
if (node.type === 1) {
|
||||||
// Filter out any property named "data-test-id"
|
// Filter out any property named "data-test-id"
|
||||||
node.props = node.props.filter((prop) => prop.name !== "data-test-id");
|
node.props = node.props.filter((prop) => prop.name !== "data-test-id");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@ export default defineConfig({
|
||||||
// Files to include or exclude in coverage
|
// Files to include or exclude in coverage
|
||||||
include: ["src/**/*.vue", "src/**/*.js"],
|
include: ["src/**/*.vue", "src/**/*.js"],
|
||||||
exclude: [],
|
exclude: [],
|
||||||
// These thresholds raise ERROR if the coverture it's under the provided percentages.
|
// These thresholds raise ERROR if the coverage it's under the provided percentages.
|
||||||
// As the coverture is low we set the limit low, as testing spec files increase,
|
// As the coverage is low we set the limit low, as testing spec files increase,
|
||||||
// these thresholds need to increase accordingly.
|
// these thresholds need to increase accordingly.
|
||||||
thresholds: {
|
thresholds: {
|
||||||
lines: 4,
|
lines: 4,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue