Skip to content
Permalink
Browse files

Chore: Remove `.serial` from tests

Fix #1693 
Close #1768
  • Loading branch information...
sarvaje authored and molant committed Jan 30, 2019
1 parent 5d4f790 commit 76cd4030b5a7d0b3ac127e0c5b67aaccbcf47612
Showing with 3,721 additions and 1,702 deletions.
  1. +1 βˆ’1 packages/connector-local/package.json
  2. +13 βˆ’9 packages/connector-local/src/connector.ts
  3. +140 βˆ’152 packages/connector-local/tests/tests.ts
  4. +2 βˆ’1 packages/create-hint/src/create-hint.ts
  5. +92 βˆ’30 packages/create-hint/tests/create-hint.ts
  6. +2 βˆ’1 packages/create-hintrc/src/create-hintrc.ts
  7. +33 βˆ’18 packages/create-hintrc/tests/browserslist.ts
  8. +136 βˆ’77 packages/create-hintrc/tests/create-hintrc.ts
  9. +24 βˆ’10 packages/create-parser/src/templates/tests.hbs
  10. +95 βˆ’46 packages/create-parser/tests/new-parser.ts
  11. +0 βˆ’1 packages/extension-browser/package.json
  12. +106 βˆ’104 packages/extension-browser/tests/content-script.ts
  13. +2 βˆ’2 packages/extension-browser/tests/end-to-end.ts
  14. +138 βˆ’109 packages/extension-vscode/tests/fixtures/mocks.ts
  15. +119 βˆ’114 packages/extension-vscode/tests/server.ts
  16. +21 βˆ’10 packages/formatter-codeframe/tests/tests.ts
  17. +3 βˆ’9 packages/formatter-excel/tests/tests.ts
  18. +52 βˆ’25 packages/formatter-html/tests/tests.ts
  19. +23 βˆ’11 packages/formatter-json/tests/tests.ts
  20. +21 βˆ’10 packages/formatter-stylish/tests/tests.ts
  21. +28 βˆ’13 packages/formatter-summary/tests/tests.ts
  22. +1 βˆ’0 packages/hint-html-checker/package.json
  23. +2 βˆ’0 packages/hint-http-compression/package.json
  24. +1 βˆ’0 packages/hint-image-optimization-cloudinary/package.json
  25. +2 βˆ’0 packages/hint-no-bom/package.json
  26. +1 βˆ’0 packages/hint-ssllabs/package.json
  27. +1 βˆ’0 packages/hint-strict-transport-security/package.json
  28. +2 βˆ’0 packages/hint-webpack-config/package.json
  29. +3 βˆ’0 packages/hint/src/lib/utils/fs/cwd.ts
  30. +2 βˆ’1 packages/hint/src/lib/utils/npm.ts
  31. +2 βˆ’1 packages/hint/src/lib/utils/resource-loader.ts
  32. +72 βˆ’49 packages/hint/tests/lib/cli.ts
  33. +282 βˆ’252 packages/hint/tests/lib/cli/analyze.ts
  34. +25 βˆ’15 packages/hint/tests/lib/cli/help.ts
  35. +21 βˆ’13 packages/hint/tests/lib/cli/version.ts
  36. +49 βˆ’34 packages/hint/tests/lib/config.ts
  37. +99 βˆ’55 packages/hint/tests/lib/engine.ts
  38. +119 βˆ’63 packages/hint/tests/lib/types/parser.ts
  39. +100 βˆ’130 packages/hint/tests/lib/utils/appinsights.ts
  40. +1 βˆ’1 packages/hint/tests/lib/utils/hint-helpers.ts
  41. +139 βˆ’108 packages/hint/tests/lib/utils/npm.ts
  42. +4 βˆ’0 packages/hint/tests/lib/utils/resource-loader.ts
  43. +0 βˆ’4 packages/parser-css/tests/interface-tests.ts
  44. +78 βˆ’71 packages/parser-javascript/tests/tests.ts
  45. +102 βˆ’46 packages/parser-package-json/tests/tests.ts
  46. +66 βˆ’64 packages/parser-typescript-config/tests/tests.ts
  47. +42 βˆ’32 packages/parser-webpack-config/tests/webpack-config.ts
  48. +1,454 βˆ’10 yarn.lock
@@ -23,9 +23,9 @@
"eslint-plugin-typescript": "0.14.0",
"hint": "^4.3.1",
"lodash": "^4.17.11",
"mock-require": "^3.0.3",
"npm-run-all": "^4.1.5",
"nyc": "^13.1.0",
"proxyquire": "2.0.0",
"rimraf": "^2.6.3",
"sinon": "^7.2.3",
"typescript": "^3.2.4",
@@ -26,6 +26,7 @@ import { getContentTypeData, isTextMediaType, getType } from 'hint/dist/src/lib/
import { IAsyncHTMLDocument, IAsyncHTMLElement, IAsyncWindow } from 'hint/dist/src/lib/types/async-html';

import isFile from 'hint/dist/src/lib/utils/fs/is-file';
import cwd from 'hint/dist/src/lib/utils/fs/cwd';
import readFileAsync from 'hint/dist/src/lib/utils/fs/read-file-async';
import * as logger from 'hint/dist/src/lib/utils/logging';

@@ -113,7 +114,7 @@ export default class LocalConnector implements IConnector {

private getGitIgnore = async () => {
try {
const rawList = await readFileAsync(path.join(process.cwd(), '.gitignore'));
const rawList = await readFileAsync(path.join(cwd(), '.gitignore'));
const splitList = rawList.split('\n');

const result = splitList.reduce((total: string[], ignore: string) => {
@@ -233,21 +234,24 @@ export default class LocalConnector implements IConnector {
reject(err);
};

const onClose = () => {
if (this.watcher) {
this.watcher.close();
}
this.engine.clear();
resolve();
};

this.watcher
.on('add', onAdd.bind(this))
.on('change', onChange.bind(this))
.on('unlink', onUnlink.bind(this))
.on('error', onError)
.on('ready', onReady);
.on('ready', onReady)
.on('close', onClose);

// Close the watcher after press Ctrl + C
process.once('SIGINT', () => {
if (this.watcher) {
this.watcher.close();
}
this.engine.clear();
resolve();
});
process.once('SIGINT', onClose);
});
}

Oops, something went wrong.

0 comments on commit 76cd403

Please sign in to comment.
You can’t perform that action at this time.