Meta tweaks

This commit is contained in:
Sindre Sorhus 2019-05-04 16:11:43 +07:00
parent dd2a91dce5
commit 2dac8e96f4
2 changed files with 5 additions and 6 deletions

View file

@ -48,16 +48,15 @@
"devDependencies": {
"@sindresorhus/tsconfig": "^0.3.0",
"@types/jsdom": "^12.2.3",
"@types/node": "^11.12.2",
"@types/tempy": "^0.2.0",
"@types/node": "^12.0.0",
"@types/zen-observable": "^0.8.0",
"@typescript-eslint/eslint-plugin": "^1.5.0",
"ava": "^1.4.1",
"del-cli": "^1.1.0",
"eslint-config-xo-typescript": "^0.9.0",
"jsdom": "^11.6.2",
"eslint-config-xo-typescript": "^0.10.1",
"jsdom": "^15.0.0",
"rxjs": "^6.4.0",
"tempy": "^0.2.1",
"tempy": "^0.3.0",
"ts-node": "^8.0.3",
"typescript": "^3.4.1",
"xo": "^0.24.0",

View file

@ -464,7 +464,7 @@ const testType = (t: ExecutionContext, type: string, exclude?: string[]) => {
for (const [key, {fixtures}] of types) {
// TODO: Automatically exclude value types in other tests that we have in the current one.
// Could reduce the use of `exclude`.
if (exclude && exclude.indexOf(key) !== -1) {
if (exclude && exclude.includes(key)) {
continue;
}