Skip to content

Commit 5e3ba0e

Browse files
G-RathSimenB
authored andcommitted
chore: upgrade to typescript@4 (#650)
Closes #646
1 parent 40cd89d commit 5e3ba0e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"rimraf": "^3.0.0",
121121
"semantic-release": "^17.0.7",
122122
"ts-node": "^9.0.0",
123-
"typescript": "^3.5.3"
123+
"typescript": "^4.0.0"
124124
},
125125
"peerDependencies": {
126126
"eslint": ">=5"

src/rules/no-focused-tests.ts

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const isConcurrentExpression = (
3030

3131
const matchesTestFunction = (object: TSESTree.LeftHandSideExpression) =>
3232
'name' in object &&
33+
typeof object.name === 'string' &&
3334
(object.name in TestCaseName || object.name in DescribeAlias);
3435

3536
const isCallToFocusedTestFunction = (object: TSESTree.Identifier) =>

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -8538,10 +8538,10 @@ typedarray@^0.0.6:
85388538
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
85398539
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
85408540

8541-
typescript@^3.5.3:
8542-
version "3.9.7"
8543-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa"
8544-
integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==
8541+
typescript@^4.0.0:
8542+
version "4.0.2"
8543+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.2.tgz#7ea7c88777c723c681e33bf7988be5d008d05ac2"
8544+
integrity sha512-e4ERvRV2wb+rRZ/IQeb3jm2VxBsirQLpQhdxplZ2MEzGvDkkMmPglecnNDfSUBivMjP93vRbngYYDQqQ/78bcQ==
85458545

85468546
uglify-js@^3.1.4:
85478547
version "3.10.3"

0 commit comments

Comments
 (0)