@eclipse-glsp/config-test 2.8.0-next.11 → 2.8.0-next.15

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.
Files changed (2) hide show
  1. package/README.md +8 -27
  2. package/package.json +5 -15
package/README.md CHANGED
@@ -1,18 +1,13 @@
1
1
  # Eclipse GLSP - Shared configuration for testing
2
2
 
3
- Common shared configuration for testing Eclipse GLSP components that are implemented with Typescript.
4
- Provides a meta package that export common configuration objects for:
3
+ Meta package that bundles the shared [Vitest](https://vitest.dev) test configuration and the test
4
+ dependencies (Vitest + the V8 coverage provider) for Eclipse GLSP components implemented with TypeScript.
5
5
 
6
- - [Mocha](https://www.typescriptlang.org/) (`.mocharc`)
7
- - [nyc](https://github.com/istanbuljs/nyc) (`.nycrc`)
8
-
9
- The package is available via npm and can be used by all GLSP components implemented with Typescript.
10
- Mocha and nyc are included as direct dependencies.
6
+ The package is available via npm and can be used by all GLSP components implemented with TypeScript.
11
7
 
12
8
  ## Components
13
9
 
14
- - [`@eclipse-glsp/mocha-config`](https://www.npmjs.com/package/@eclipse-glsp/mocha-config): Shared Mocha configuration for GLSP projects
15
- - [`@eclipse-glsp/nyc-config`](https://www.npmjs.com/package/@eclipse-glsp/nyc-config): Shared nyc configuration for GLSP projects
10
+ - [`@eclipse-glsp/vitest-config`](https://www.npmjs.com/package/@eclipse-glsp/vitest-config): Shared Vitest configuration for GLSP projects.
16
11
 
17
12
  ## Install
18
13
 
@@ -22,27 +17,13 @@ pnpm add --save-dev @eclipse-glsp/config-test
22
17
 
23
18
  ## Usage
24
19
 
25
- ### Mocha
26
-
27
- **Create a `.mocharc`**:
20
+ **Create a `vite.config.ts`** that extends the shared config (provided by `@eclipse-glsp/vitest-config`,
21
+ pulled in transitively by this package):
28
22
 
29
- ```json
30
- {
31
- "$schema": "https://json.schemastore.org/mocharc",
32
- "extends": "@eclipse-glsp/mocha-config"
33
- }
23
+ ```ts
24
+ export { default } from '@eclipse-glsp/vitest-config';
34
25
  ```
35
26
 
36
- ### Nyc
37
-
38
- **Add a `.nycrc.json` to your project root**:
39
-
40
- ```json
41
- "@eclipse-glsp/prettier-config"
42
- ```
43
-
44
- Configuration can also be provided by `nyc.config.js` if programmed logic is required.
45
-
46
27
  ## More information
47
28
 
48
29
  For more information, please visit the [Eclipse GLSP Umbrella repository](https://github.com/eclipse-glsp/glsp) and the [Eclipse GLSP Website](https://www.eclipse.org/glsp/).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eclipse-glsp/config-test",
3
- "version": "2.8.0-next.11",
4
- "description": "Meta package that provides Mocha and nyc configurations for GLSP projects",
3
+ "version": "2.8.0-next.15",
4
+ "description": "Meta package that provides the shared Vitest test configuration and dependencies for GLSP projects",
5
5
  "keywords": [
6
6
  "eclipse",
7
7
  "testing",
@@ -25,19 +25,9 @@
25
25
  }
26
26
  ],
27
27
  "dependencies": {
28
- "@istanbuljs/nyc-config-typescript": "^1.0.2",
29
- "@types/chai": "^4.3.20",
30
- "@types/mocha": "^10.0.10",
31
- "@types/sinon": "^21.0.1",
32
- "chai": "^4.5.0",
33
- "ignore-styles": "^5.0.1",
34
- "mocha": "^11.7.6",
35
- "nyc": "^18.0.0",
36
- "reflect-metadata": "^0.2.2",
37
- "sinon": "^22.0.0",
38
- "ts-node": "^10.9.1",
39
- "@eclipse-glsp/mocha-config": "2.8.0-next.11",
40
- "@eclipse-glsp/nyc-config": "2.8.0-next.11"
28
+ "@vitest/coverage-v8": "^4.1.9",
29
+ "vitest": "^4.1.9",
30
+ "@eclipse-glsp/vitest-config": "2.8.0-next.15"
41
31
  },
42
32
  "publishConfig": {
43
33
  "access": "public"