tstyche 4.0.0-beta.4 → 4.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/tstyche.js +12 -5
- package/package.json +4 -4
package/build/tstyche.js
CHANGED
|
@@ -2072,15 +2072,20 @@ class AbilityLayer {
|
|
|
2072
2072
|
const matcherNameEnd = assertionNode.matcherNameNode.getEnd();
|
|
2073
2073
|
switch (assertionNode.matcherNameNode.name.text) {
|
|
2074
2074
|
case "toBeApplicable":
|
|
2075
|
-
case "toBeCallableWith":
|
|
2076
2075
|
this.#addRanges(assertionNode, [
|
|
2077
2076
|
{ end: expectExpressionEnd, start: expectStart },
|
|
2078
2077
|
{ end: matcherNameEnd, start: expectEnd },
|
|
2079
2078
|
]);
|
|
2080
2079
|
break;
|
|
2080
|
+
case "toBeCallableWith":
|
|
2081
|
+
this.#addRanges(assertionNode, [
|
|
2082
|
+
{ end: expectExpressionEnd, start: expectStart, replacement: ";" },
|
|
2083
|
+
{ end: matcherNameEnd, start: expectEnd },
|
|
2084
|
+
]);
|
|
2085
|
+
break;
|
|
2081
2086
|
case "toBeConstructableWith":
|
|
2082
2087
|
this.#addRanges(assertionNode, [
|
|
2083
|
-
{ end: expectExpressionEnd, start: expectStart, replacement: "new" },
|
|
2088
|
+
{ end: expectExpressionEnd, start: expectStart, replacement: "; new" },
|
|
2084
2089
|
{ end: matcherNameEnd, start: expectEnd },
|
|
2085
2090
|
]);
|
|
2086
2091
|
break;
|
|
@@ -4003,7 +4008,8 @@ class ToBeCallableWith {
|
|
|
4003
4008
|
this.#compiler.isFunctionDeclaration(sourceNode) ||
|
|
4004
4009
|
this.#compiler.isFunctionExpression(sourceNode) ||
|
|
4005
4010
|
this.#compiler.isExpressionWithTypeArguments(sourceNode) ||
|
|
4006
|
-
this.#compiler.isIdentifier(sourceNode)
|
|
4011
|
+
this.#compiler.isIdentifier(sourceNode) ||
|
|
4012
|
+
this.#compiler.isPropertyAccessExpression(sourceNode)) {
|
|
4007
4013
|
type = matchWorker.getType(sourceNode);
|
|
4008
4014
|
}
|
|
4009
4015
|
if (!type || type.getCallSignatures().length === 0) {
|
|
@@ -4081,7 +4087,8 @@ class ToBeConstructableWith {
|
|
|
4081
4087
|
type = matchWorker.typeChecker.getResolvedSignature(sourceNode)?.getReturnType();
|
|
4082
4088
|
}
|
|
4083
4089
|
if (this.#compiler.isExpressionWithTypeArguments(sourceNode) ||
|
|
4084
|
-
this.#compiler.isIdentifier(sourceNode)
|
|
4090
|
+
this.#compiler.isIdentifier(sourceNode) ||
|
|
4091
|
+
this.#compiler.isPropertyAccessExpression(sourceNode)) {
|
|
4085
4092
|
type = matchWorker.getType(sourceNode);
|
|
4086
4093
|
}
|
|
4087
4094
|
if (!type || type.getConstructSignatures().length === 0) {
|
|
@@ -4593,7 +4600,7 @@ class TaskRunner {
|
|
|
4593
4600
|
class Runner {
|
|
4594
4601
|
#eventEmitter = new EventEmitter();
|
|
4595
4602
|
#resolvedConfig;
|
|
4596
|
-
static version = "4.0.0-beta.
|
|
4603
|
+
static version = "4.0.0-beta.6";
|
|
4597
4604
|
constructor(resolvedConfig) {
|
|
4598
4605
|
this.#resolvedConfig = resolvedConfig;
|
|
4599
4606
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tstyche",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.6",
|
|
4
4
|
"description": "The Essential Type Testing Tool.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"@biomejs/biome": "1.9.4",
|
|
64
64
|
"@rollup/plugin-typescript": "12.1.2",
|
|
65
65
|
"@types/node": "22.14.1",
|
|
66
|
-
"@types/react": "19.1.
|
|
66
|
+
"@types/react": "19.1.2",
|
|
67
67
|
"ajv": "8.17.1",
|
|
68
68
|
"cspell": "8.18.1",
|
|
69
69
|
"magic-string": "0.30.17",
|
|
70
|
-
"monocart-coverage-reports": "2.12.
|
|
70
|
+
"monocart-coverage-reports": "2.12.4",
|
|
71
71
|
"pretty-ansi": "3.0.0",
|
|
72
72
|
"rollup": "4.40.0",
|
|
73
73
|
"rollup-plugin-dts": "6.2.1",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"optional": true
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"packageManager": "yarn@4.9.
|
|
85
|
+
"packageManager": "yarn@4.9.1",
|
|
86
86
|
"engines": {
|
|
87
87
|
"node": ">=20.9"
|
|
88
88
|
}
|