Skip to content

Commit

Permalink
feat: add @axe-core/reporter-earl (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek authored May 18, 2020
1 parent d44289e commit 7f77253
Show file tree
Hide file tree
Showing 17 changed files with 6,019 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
- restore_cache:
keys:
- v1-webdriverio-npm-{{ checksum "packages/webdriverio/package-lock.json" }}
- restore_cache:
keys:
- v1-reporter-earl-npm-{{ checksum "packages/reporter-earl/package-lock.json" }}
- run: npm ci
- save_cache:
key: v1-root-npm-{{ checksum "package-lock.json" }}
Expand All @@ -61,6 +64,10 @@ jobs:
key: v1-webdriverio-npm-{{ checksum "packages/webdriverio/package-lock.json" }}
paths:
- packages/webdriverio/node_modules
- save_cache:
key: v1-reporter-earl-npm-{{ checksum "packages/reporter-earl/package-lock.json" }}
paths:
- packages/reporter-earl/node_modules
- save_cache:
key: v1-npm-cache-{{ .Environment.CIRCLE_SHA1 }}
paths:
Expand All @@ -69,6 +76,7 @@ jobs:
- packages/puppeteer/node_modules
- packages/webdriverjs/node_modules
- packages/webdriverio/node_modules
- packages/reporter-earl/node_modules

lint:
<<: *defaults
Expand Down Expand Up @@ -106,6 +114,13 @@ jobs:
- restore_dependency_cache
- run: npm run test --prefix=packages/webdriverio

reporter-earl:
<<: *defaults
steps:
- checkout
- restore_dependency_cache
- run: npm run test --prefix=packages/reporter-earl

workflows:
version: 2
build_and_test:
Expand All @@ -124,5 +139,8 @@ workflows:
requires:
- lint
- webdriverio:
requires:
- lint
- reporter-earl:
requires:
- lint
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules
dist
__tests__
coverage
15 changes: 15 additions & 0 deletions packages/reporter-earl/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'no-debugger': 'off',
'no-empty-pattern': 'off'
},
overrides: [
{
files: 'tests/*.test.ts',
env: {
jest: true
}
}
]
};
17 changes: 17 additions & 0 deletions packages/reporter-earl/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
testEnvironment: 'jsdom',
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
transform: {
'\\.(ts|tsx)$': '<rootDir>/node_modules/ts-jest/preprocessor.js'
},
testRegex: '/tests/.*\\.(ts|tsx|js)$',
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/tests/utils.ts'],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
}
};
Loading

0 comments on commit 7f77253

Please sign in to comment.