Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a11y: Dropdowns #388

Merged
merged 19 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:import/recommended"
"plugin:import/recommended",
"plugin:jest/recommended"
],
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 2015,
"sourceType": "module"
}
},
"overrides": [
{
"files": ["*.spec.js"],
"env": { "browser": true, "node": true },
"parserOptions": { "ecmaVersion": 2021 }
}
]
}
16 changes: 16 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,22 @@ jobs:
run: yarn install --frozen-lockfile
- name: ESlint
run: yarn eslint
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: zendesk/checkout@v3
with:
persist-credentials: false
- name: Setup Node.js
uses: zendesk/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test
run: yarn test
build:
name: Build
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules/
script.js
style.css
*.DS_Store
coverage/
8 changes: 8 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const config = {
coverageProvider: "v8",
testEnvironment: "jsdom",
preset: "rollup-jest",
setupFilesAfterEnv: ["@testing-library/jest-dom"],
};

export default config;
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"eslint": "eslint src",
"prepare": "husky install",
"download-locales": "node ./bin/update-translations",
"test": "jest",
"test-a11y": "node bin/lighthouse/index.js",
"zcli": "zcli"
},
Expand All @@ -20,19 +21,26 @@
"@semantic-release/changelog": "6.0.2",
"@semantic-release/exec": "6.0.3",
"@semantic-release/git": "10.0.1",
"@testing-library/dom": "^9.3.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/user-event": "^14.4.3",
"@zendesk/zcli": "1.0.0-beta.34",
"concurrently": "8.0.1",
"dotenv": "16.0.3",
"eslint": "8.35.0",
"eslint-config-prettier": "8.6.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jest": "^27.2.2",
"eslint-plugin-prettier": "4.2.1",
"husky": "8.0.2",
"jest": "^29.6.1",
"jest-environment-jsdom": "^29.6.1",
"js-yaml": "4.1.0",
"lighthouse": "10.0.1",
"prettier": "2.8.4",
"puppeteer": "19.4.1",
"rollup": "3.17.3",
"rollup-jest": "^3.1.0",
"rollup-plugin-sass": "1.12.18",
"sass": "1.58.3",
"semantic-release": "19.0.5",
Expand Down
Loading