Skip to content

Commit fe853b1

Browse files
G-RathSimenB
authored andcommitted
chore: upgrade to typescript@4 (#650)
Closes #646
1 parent 736b8e4 commit fe853b1

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
@@ -8517,10 +8517,10 @@ typedarray@^0.0.6:
85178517
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
85188518
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
85198519

8520-
typescript@^3.5.3:
8521-
version "3.9.7"
8522-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa"
8523-
integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==
8520+
typescript@^4.0.0:
8521+
version "4.0.2"
8522+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.2.tgz#7ea7c88777c723c681e33bf7988be5d008d05ac2"
8523+
integrity sha512-e4ERvRV2wb+rRZ/IQeb3jm2VxBsirQLpQhdxplZ2MEzGvDkkMmPglecnNDfSUBivMjP93vRbngYYDQqQ/78bcQ==
85248524

85258525
uglify-js@^3.1.4:
85268526
version "3.10.2"

0 commit comments

Comments
 (0)