@axe-core/cli 4.7.4-alpha.408 → 4.7.4-bbfaae4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/package.json +12 -11
  2. package/.eslintrc.js +0 -18
  3. package/CHANGELOG.md +0 -235
  4. package/dist/package.json +0 -91
  5. package/dist/src/bin/cli.d.ts +0 -2
  6. package/dist/src/bin/cli.js +0 -39
  7. package/dist/src/bin/cli.js.map +0 -1
  8. package/dist/src/bin/cli.test.d.ts +0 -1
  9. package/dist/src/bin/cli.test.js +0 -251
  10. package/dist/src/bin/cli.test.js.map +0 -1
  11. package/dist/src/bin/index.d.ts +0 -5
  12. package/dist/src/bin/index.js +0 -138
  13. package/dist/src/bin/index.js.map +0 -1
  14. package/dist/src/lib/axe-test-urls.d.ts +0 -4
  15. package/dist/src/lib/axe-test-urls.js +0 -89
  16. package/dist/src/lib/axe-test-urls.js.map +0 -1
  17. package/dist/src/lib/axe-test-urls.test.d.ts +0 -1
  18. package/dist/src/lib/axe-test-urls.test.js +0 -73
  19. package/dist/src/lib/axe-test-urls.test.js.map +0 -1
  20. package/dist/src/lib/events.d.ts +0 -10
  21. package/dist/src/lib/events.js +0 -54
  22. package/dist/src/lib/events.js.map +0 -1
  23. package/dist/src/lib/events.test.d.ts +0 -1
  24. package/dist/src/lib/events.test.js +0 -31
  25. package/dist/src/lib/events.test.js.map +0 -1
  26. package/dist/src/lib/index.d.ts +0 -4
  27. package/dist/src/lib/index.js +0 -36
  28. package/dist/src/lib/index.js.map +0 -1
  29. package/dist/src/lib/utils.d.ts +0 -15
  30. package/dist/src/lib/utils.js +0 -120
  31. package/dist/src/lib/utils.js.map +0 -1
  32. package/dist/src/lib/utils.test.d.ts +0 -1
  33. package/dist/src/lib/utils.test.js +0 -140
  34. package/dist/src/lib/utils.test.js.map +0 -1
  35. package/dist/src/lib/webdriver.d.ts +0 -4
  36. package/dist/src/lib/webdriver.js +0 -46
  37. package/dist/src/lib/webdriver.js.map +0 -1
  38. package/dist/src/lib/webdriver.test.d.ts +0 -1
  39. package/dist/src/lib/webdriver.test.js +0 -102
  40. package/dist/src/lib/webdriver.test.js.map +0 -1
  41. package/dist/src/testutils/index.d.ts +0 -19
  42. package/dist/src/testutils/index.js +0 -51
  43. package/dist/src/testutils/index.js.map +0 -1
  44. package/dist/src/types.d.ts +0 -36
  45. package/dist/src/types.js +0 -18
  46. package/dist/src/types.js.map +0 -1
  47. package/src/bin/cli.test.ts +0 -407
  48. package/src/bin/cli.ts +0 -82
  49. package/src/bin/index.ts +0 -184
  50. package/src/lib/axe-test-urls.test.ts +0 -73
  51. package/src/lib/axe-test-urls.ts +0 -98
  52. package/src/lib/events.test.ts +0 -26
  53. package/src/lib/events.ts +0 -68
  54. package/src/lib/index.ts +0 -5
  55. package/src/lib/utils.test.ts +0 -130
  56. package/src/lib/utils.ts +0 -143
  57. package/src/lib/webdriver.test.ts +0 -104
  58. package/src/lib/webdriver.ts +0 -38
  59. package/src/testutils/axe-core@2.5.0.js +0 -18941
  60. package/src/testutils/index.ts +0 -47
  61. package/src/testutils/simple-clean.html +0 -11
  62. package/src/testutils/simple.html +0 -12
  63. package/src/types.ts +0 -41
  64. package/tsconfig.json +0 -19
@@ -1,47 +0,0 @@
1
- import execa from 'execa';
2
- import path from 'path';
3
- import fs from 'fs';
4
-
5
- const TS_NODE = require.resolve('ts-node/dist/bin.js');
6
- const CLI = path.resolve(__dirname, '..', 'bin', 'cli.ts');
7
- const PROJECT_FILE = path.join(__dirname, '..', 'tsconfig.json');
8
-
9
- /**
10
- * Run the CLI with the given `args`.
11
- *
12
- * Will not reject if the CLI exits with a non-zero exit code. It is expected that you check the `.exitCode` value yourself.
13
- *
14
- * @param args CLI arguments to pass
15
- */
16
-
17
- const runCLI = (...args: string[]): Promise<execa.ExecaChildProcess<string>> =>
18
- runCLIWithOptions(args, { reject: false });
19
-
20
- export default runCLI;
21
-
22
- /**
23
- * Run the CLI with the given `args` and `options`.
24
- *
25
- * Set `DEBUG_CLI_TESTS` for additional debugging support (logging).
26
- *
27
- * @param args CLI arguments to pass
28
- * @param options Options for `execa`
29
- */
30
-
31
- export const runCLIWithOptions = async (
32
- args: string[],
33
- options: execa.Options
34
- ): Promise<execa.ExecaChildProcess<string>> => {
35
- if ('DEBUG_CLI_TESTS' in process.env) {
36
- console.log('cli', args.join(' '));
37
- }
38
-
39
- const result = await execa(TS_NODE, [CLI, ...args], options);
40
-
41
- if ('DEBUG_CLI_TESTS' in process.env) {
42
- fs.writeFileSync('./stdout.txt', result.stdout);
43
- fs.writeFileSync('./stderr.txt', result.stderr);
44
- }
45
-
46
- return result;
47
- };
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Document</title>
7
- </head>
8
- <body>
9
- <h1>This is a document.</h1>
10
- </body>
11
- </html>
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Document</title>
7
- </head>
8
- <body>
9
- <h1>This is a document.</h1>
10
- <marquee>This is bad.</marquee>
11
- </body>
12
- </html>
package/src/types.ts DELETED
@@ -1,41 +0,0 @@
1
- import type { AxeResults } from 'axe-core';
2
- import type { WebDriver, Builder } from 'selenium-webdriver';
3
-
4
- export * from './lib';
5
-
6
- export interface EventParams {
7
- silentMode: boolean;
8
- timer: boolean;
9
- cliReporter: (...args: unknown[]) => void;
10
- verbose: boolean;
11
- exit: boolean;
12
- }
13
-
14
- export interface EventResponse {
15
- startTimer: (message: string) => void;
16
- endTimer: (message: string) => void;
17
- waitingMessage: (loadDelayTime: number) => void;
18
- onTestStart: (url: string) => void;
19
- onTestComplete: (results: AxeResults) => void;
20
- }
21
-
22
- export interface WebdriverConfigParams {
23
- browser: string;
24
- timeout: number;
25
- chromedriverPath?: string;
26
- path?: string;
27
- chromeOptions?: string[];
28
- builder?: Builder;
29
- }
30
-
31
- export interface ConfigParams {
32
- driver: WebDriver;
33
- timer?: boolean;
34
- loadDelay?: number;
35
- axeSource?: string;
36
- include?: string | string[];
37
- exclude?: string | string[];
38
- tags?: string | string[];
39
- rules?: string | string[];
40
- disable?: string | string[];
41
- }
package/tsconfig.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "types": ["node"],
4
- "outDir": "./dist/",
5
- "sourceMap": true,
6
- "noImplicitAny": true,
7
- "strictNullChecks": true,
8
- "moduleResolution": "node",
9
- "resolveJsonModule": true,
10
- "module": "commonjs",
11
- "target": "ES2015",
12
- "allowJs": true,
13
- "lib": ["dom", "ES2015", "esnext.asynciterable"],
14
- "esModuleInterop": true,
15
- "skipLibCheck": true,
16
- "declaration": true
17
- },
18
- "include": ["./src/lib", "./src/bin"]
19
- }