tstyche 5.0.0-rc.0 → 5.0.1
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/README.md +2 -6
- package/build/tstyche.js +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ test("toMilliseconds", () => {
|
|
|
65
65
|
|
|
66
66
|
Here is the list of all matchers:
|
|
67
67
|
|
|
68
|
-
- `.toBe()`, `.
|
|
68
|
+
- `.toBe()`, `.toBeAssignableFrom()`, `.toBeAssignableTo()` compare types or types of expression,
|
|
69
69
|
- `.toAcceptProps()` checks the type of JSX component props,
|
|
70
70
|
- `.toBeApplicable` ensures that the decorator function can be applied,
|
|
71
71
|
- `.toBeCallableWith()` checks whether a function is callable with the given arguments,
|
|
@@ -77,7 +77,7 @@ Here is the list of all matchers:
|
|
|
77
77
|
The `tstyche` command is the heart of TSTyche. For example, it can select test files by path, filter tests by name and to run the tests against specific versions of TypeScript:
|
|
78
78
|
|
|
79
79
|
```shell
|
|
80
|
-
tstyche query-params --only multiple --target '>=5.
|
|
80
|
+
tstyche query-params --only multiple --target '>=5.6'
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
This simple! (And it has watch mode too.)
|
|
@@ -86,10 +86,6 @@ This simple! (And it has watch mode too.)
|
|
|
86
86
|
|
|
87
87
|
Visit [tstyche.org](https://tstyche.org) to view the full documentation.
|
|
88
88
|
|
|
89
|
-
## Feedback
|
|
90
|
-
|
|
91
|
-
If you have any questions or suggestions, [start a discussion](https://github.com/tstyche/tstyche/discussions/new/choose) or [open an issue](https://github.com/tstyche/tstyche/issues/new/choose) on GitHub. Preferring a chat? Join our [Discord server](https://discord.gg/gCSasd3QJq).
|
|
92
|
-
|
|
93
89
|
## License
|
|
94
90
|
|
|
95
91
|
[MIT][license-url] © TSTyche
|
package/build/tstyche.js
CHANGED
|
@@ -957,8 +957,8 @@ class Store {
|
|
|
957
957
|
return compilerInstance;
|
|
958
958
|
}
|
|
959
959
|
static async #loadModule(modulePath) {
|
|
960
|
-
const exports = {};
|
|
961
|
-
const module = { exports };
|
|
960
|
+
const exports$1 = {};
|
|
961
|
+
const module = { exports: exports$1 };
|
|
962
962
|
const packageConfigText = await fs.readFile(Path.resolve(modulePath, "../../package.json"), { encoding: "utf8" });
|
|
963
963
|
const { version: packageVersion } = JSON.parse(packageConfigText);
|
|
964
964
|
if (!Version.isSatisfiedWith(packageVersion, "5.3")) {
|
|
@@ -968,7 +968,7 @@ class Store {
|
|
|
968
968
|
const toExpose = ["isTypeIdenticalTo"];
|
|
969
969
|
const modifiedSourceText = sourceText.replace("return checker;", `return { ...checker, ${toExpose.join(", ")} };`);
|
|
970
970
|
const compiledWrapper = vm.compileFunction(modifiedSourceText, ["exports", "require", "module", "__filename", "__dirname"], { filename: modulePath });
|
|
971
|
-
compiledWrapper(exports, createRequire(modulePath), module, modulePath, Path.dirname(modulePath));
|
|
971
|
+
compiledWrapper(exports$1, createRequire(modulePath), module, modulePath, Path.dirname(modulePath));
|
|
972
972
|
return module.exports;
|
|
973
973
|
}
|
|
974
974
|
static #onDiagnostics(diagnostic) {
|
|
@@ -4042,6 +4042,8 @@ class ProjectService {
|
|
|
4042
4042
|
}
|
|
4043
4043
|
#getDefaultCompilerOptions() {
|
|
4044
4044
|
const defaultCompilerOptions = {
|
|
4045
|
+
allowJs: true,
|
|
4046
|
+
checkJs: true,
|
|
4045
4047
|
allowImportingTsExtensions: true,
|
|
4046
4048
|
exactOptionalPropertyTypes: true,
|
|
4047
4049
|
jsx: this.#compiler.JsxEmit.Preserve,
|
|
@@ -5477,7 +5479,7 @@ class FileRunner {
|
|
|
5477
5479
|
class Runner {
|
|
5478
5480
|
#eventEmitter = new EventEmitter();
|
|
5479
5481
|
#resolvedConfig;
|
|
5480
|
-
static version = "5.0.
|
|
5482
|
+
static version = "5.0.1";
|
|
5481
5483
|
constructor(resolvedConfig) {
|
|
5482
5484
|
this.#resolvedConfig = resolvedConfig;
|
|
5483
5485
|
}
|