From 2dac8e96f46a0a465d75f9544ceba285faf96ac7 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 4 May 2019 16:11:43 +0700 Subject: [PATCH] Meta tweaks --- package.json | 9 ++++----- test/test.ts | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 1ab22a3..68c09ee 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/test.ts b/test/test.ts index 75aac80..b0a9780 100644 --- a/test/test.ts +++ b/test/test.ts @@ -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; }