Skip to content

Commit

Permalink
chore(PN-10564): remove jest-axe file tests in PF (#1180)
Browse files Browse the repository at this point in the history
* feat(PN-10564): remove jest-axe file tests in PF

* feat(PN-10564): update readme.md

* feat(PN-10564): remove instruction in readme.md

* fix(PN-10564): remove jest-axe dependency

* fix(PN-10564): update yarn.lock
  • Loading branch information
SarahDonvito authored Apr 15, 2024
1 parent 5fb74fb commit 9ed0a5a
Show file tree
Hide file tree
Showing 36 changed files with 7 additions and 2,002 deletions.
3 changes: 1 addition & 2 deletions packages/pn-personafisica-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"preview": "vite preview",
"test": "tsc && vitest --run",
"test:fast": "vitest --run",
"test:a11y": "vitest --run --config ./vite.config.a11y.ts",
"test:all": "vitest --run --config ./vite.config.all.ts",
"test:coverage": "tsc && vitest run --coverage",
"lint": "eslint . -c .eslintrc.js --ext .ts,.tsx --fix",
Expand Down Expand Up @@ -74,6 +73,7 @@
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.5.1",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/jest": "^29.5.12",
"@types/mixpanel-browser": "^2.38.0",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
Expand All @@ -88,7 +88,6 @@
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-sonarjs": "^0.10.0",
"jest-axe": "^6.0.0",
"jsdom": "^24.0.0",
"prettier": "^2.4.1",
"sonarqube-scanner": "^3.3.0",
Expand Down
133 changes: 0 additions & 133 deletions packages/pn-personafisica-webapp/src/__test__/App.a11y.test.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions packages/pn-personafisica-webapp/src/__test__/test-utils.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { configureAxe, toHaveNoViolations } from 'jest-axe';
import { ReactElement, ReactNode } from 'react';
import { Provider } from 'react-redux';
import { BrowserRouter } from 'react-router-dom';
Expand Down Expand Up @@ -37,12 +36,6 @@ const customRender = (
});
};

const axe = configureAxe({
rules: {
region: { enabled: false },
},
});

const createMockedStore = (preloadedState: any) =>
configureStore({
reducer: appReducers,
Expand All @@ -53,8 +46,5 @@ const createMockedStore = (preloadedState: any) =>
}),
});

expect.extend(toHaveNoViolations);

export * from '@testing-library/react';
export { customRender as render, createMockedStore, testStore };
export { axe };

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9ed0a5a

Please sign in to comment.