@testspectra/cli 1.0.51 → 1.0.54

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/dist/plugin.d.ts CHANGED
@@ -9,7 +9,7 @@ import type ts from "typescript";
9
9
  declare function init(modules: {
10
10
  typescript: typeof ts;
11
11
  }): {
12
- create: (info: ts.server.PluginCreateInfo) => ts.LanguageService;
12
+ create: (info: ts.server.PluginCreateInfo) => any;
13
13
  getExternalFiles: (project: ts.server.Project) => string[];
14
14
  };
15
15
  export default init;
package/dist/plugin.js CHANGED
@@ -121,6 +121,9 @@ function init(modules) {
121
121
  log(`Note: Recursive fs.watch not supported or failed: ${err?.message}`);
122
122
  }
123
123
  // 3. Proxy language service methods to detect file modifications / completions
124
+ if (!info.languageService) {
125
+ return Object.create(null);
126
+ }
124
127
  const proxy = Object.create(null);
125
128
  for (const k of Object.keys(info.languageService)) {
126
129
  const x = info.languageService[k];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testspectra/cli",
3
- "version": "1.0.51",
3
+ "version": "1.0.54",
4
4
  "description": "TestSpectra Zero-Config Cross-Platform Test Runner CLI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "@clack/prompts": "^1.7.0",
24
- "@testspectra/matchers": "^1.0.51",
24
+ "@testspectra/matchers": "^1.0.54",
25
25
  "chalk": "^5.3.0",
26
26
  "commander": "^12.1.0",
27
27
  "dotenv": "^16.4.5",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "devDependencies": {
11
11
  "@testspectra/cli": "workspace:*",
12
- "@testspectra/matchers": "^1.0.51",
12
+ "@testspectra/matchers": "^1.0.54",
13
13
  "@types/node": "^20.14.0",
14
14
  "@wdio/globals": "^9.2.8",
15
15
  "@wdio/mocha-framework": "^9.2.8",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@testspectra/cli": "workspace:*",
14
- "@testspectra/matchers": "^1.0.51",
14
+ "@testspectra/matchers": "^1.0.54",
15
15
  "@types/node": "^20.14.0",
16
16
  "@wdio/globals": "^9.2.8",
17
17
  "@wdio/mocha-framework": "^9.2.8",