Skip to content

Commit

Permalink
Merge pull request #33 from lpelypenko/bump-version
Browse files Browse the repository at this point in the history
updated jest version and removed dependency on rimraf
  • Loading branch information
lpelypenko authored Aug 21, 2024
2 parents 0880856 + 5f79a5d commit f1a05ed
Show file tree
Hide file tree
Showing 3 changed files with 6,907 additions and 6,908 deletions.
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"homepage": "https://github.com/lpelypenko/axe-html-reporter",
"scripts": {
"prebuild": "rimraf dist build",
"prebuild": "rm -rf dist build",
"copy": "cp -R ./src/util/template ./dist/util/template",
"build": "tsc --project tsconfig.build.json && npm run copy",
"test": "jest test",
Expand All @@ -44,16 +44,15 @@
"axe-core": ">=3"
},
"devDependencies": {
"@types/jest": "^25.2.3",
"@types/jest": "^29.5.12",
"@types/mustache": "^4.0.1",
"@types/node": "^14.11.8",
"jest": "^26.5.3",
"jest": "^29.7.0",
"prettier": "^2.1.2",
"ts-jest": "^26.4.1",
"ts-jest": "^29.2.4",
"typescript": "^4.0.3"
},
"dependencies": {
"mustache": "^4.0.1",
"rimraf": "^3.0.2"
"mustache": "^4.0.1"
}
}
94 changes: 47 additions & 47 deletions test/__snapshots__/getWcagReference.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Successful tests Tags for all C 1`] = `
Array [
Object {
[
{
"id": "label-content-name-mismatch",
"tags": Array [
"tags": [
"wcag21a",
"wcag253",
"experimental",
],
"wcag": "WCAG 2.1 Level A, WCAG 2.5.3",
},
Object {
{
"id": "duplicate-id-aria",
"tags": Array [
"tags": [
"cat.parsing",
"wcag2a",
"wcag411",
],
"wcag": "WCAG 2 Level A, WCAG 4.1.1",
},
Object {
{
"id": "svg-img-alt",
"tags": Array [
"tags": [
"cat.text-alternatives",
"wcag2a",
"wcag111",
Expand All @@ -31,18 +31,18 @@ Array [
],
"wcag": "WCAG 2 Level A, WCAG 1.1.1",
},
Object {
{
"id": "aria-required-children",
"tags": Array [
"tags": [
"cat.aria",
"wcag2a",
"wcag131",
],
"wcag": "WCAG 2 Level A, WCAG 1.3.1",
},
Object {
{
"id": "aria-required-parent",
"tags": Array [
"tags": [
"cat.aria",
"wcag2a",
"wcag131",
Expand All @@ -53,28 +53,28 @@ Array [
`;

exports[`Successful tests Tags for all J 1`] = `
Array [
Object {
[
{
"id": "label-content-name-mismatch",
"tags": Array [
"tags": [
"wcag21a",
"wcag253",
"experimental",
],
"wcag": "WCAG 2.1 Level A, WCAG 2.5.3",
},
Object {
{
"id": "duplicate-id-aria",
"tags": Array [
"tags": [
"cat.parsing",
"wcag2a",
"wcag411",
],
"wcag": "WCAG 2 Level A, WCAG 4.1.1",
},
Object {
{
"id": "svg-img-alt",
"tags": Array [
"tags": [
"cat.text-alternatives",
"wcag2a",
"wcag111",
Expand All @@ -87,10 +87,10 @@ Array [
`;

exports[`Successful tests Tags for general set of violations 1`] = `
Array [
Object {
[
{
"id": "button-name",
"tags": Array [
"tags": [
"cat.name-role-value",
"wcag2a",
"wcag412",
Expand All @@ -99,36 +99,36 @@ Array [
],
"wcag": "WCAG 2 Level A, WCAG 4.1.2",
},
Object {
{
"id": "color-contrast",
"tags": Array [
"tags": [
"cat.color",
"wcag2aa",
"wcag143",
],
"wcag": "WCAG 2 Level AA, WCAG 1.4.3",
},
Object {
{
"id": "duplicate-id-active",
"tags": Array [
"tags": [
"cat.parsing",
"wcag2a",
"wcag411",
],
"wcag": "WCAG 2 Level A, WCAG 4.1.1",
},
Object {
{
"id": "duplicate-id",
"tags": Array [
"tags": [
"cat.parsing",
"wcag2a",
"wcag411",
],
"wcag": "WCAG 2 Level A, WCAG 4.1.1",
},
Object {
{
"id": "frame-title",
"tags": Array [
"tags": [
"cat.text-alternatives",
"wcag2a",
"wcag241",
Expand All @@ -138,18 +138,18 @@ Array [
],
"wcag": "WCAG 2 Level A, WCAG 2.4.1, WCAG 4.1.2",
},
Object {
{
"id": "html-has-lang",
"tags": Array [
"tags": [
"cat.language",
"wcag2a",
"wcag311",
],
"wcag": "WCAG 2 Level A, WCAG 3.1.1",
},
Object {
{
"id": "image-alt",
"tags": Array [
"tags": [
"cat.text-alternatives",
"wcag2a",
"wcag111",
Expand All @@ -158,9 +158,9 @@ Array [
],
"wcag": "WCAG 2 Level A, WCAG 1.1.1",
},
Object {
{
"id": "label",
"tags": Array [
"tags": [
"cat.forms",
"wcag2a",
"wcag412",
Expand All @@ -170,35 +170,35 @@ Array [
],
"wcag": "WCAG 2 Level A, WCAG 4.1.2, WCAG 1.3.1",
},
Object {
{
"id": "landmark-one-main",
"tags": Array [
"tags": [
"cat.semantics",
"best-practice",
],
"wcag": "Best practice",
},
Object {
{
"id": "landmark-unique",
"tags": Array [
"tags": [
"cat.semantics",
"best-practice",
],
"wcag": "Best practice",
},
Object {
{
"id": "link-in-text-block",
"tags": Array [
"tags": [
"cat.color",
"experimental",
"wcag2a",
"wcag141",
],
"wcag": "WCAG 2 Level A, WCAG 1.4.1",
},
Object {
{
"id": "link-name",
"tags": Array [
"tags": [
"cat.name-role-value",
"wcag2a",
"wcag412",
Expand All @@ -208,17 +208,17 @@ Array [
],
"wcag": "WCAG 2 Level A, WCAG 4.1.2, WCAG 2.4.4",
},
Object {
{
"id": "region",
"tags": Array [
"tags": [
"cat.keyboard",
"best-practice",
],
"wcag": "Best practice",
},
Object {
{
"id": "tabindex",
"tags": Array [
"tags": [
"cat.keyboard",
"best-practice",
],
Expand Down
Loading

0 comments on commit f1a05ed

Please sign in to comment.