@magidoc/plugin-starter-variables 2.5.2 → 2.6.2

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@magidoc/plugin-starter-variables",
3
3
  "description": "A shared library that contains common Magidoc starter environment variables keys.",
4
4
  "private": false,
5
- "version": "2.5.2",
5
+ "version": "2.6.2",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "./build/index.js",
@@ -19,25 +19,25 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@rollup/plugin-typescript": "^8.3.3",
22
- "@types/jest": "^28.1.5",
23
22
  "@types/lodash": "^4.14.182",
24
- "@types/node": "^18.0.3",
25
- "jest": "^28.1.3",
23
+ "@types/node": "^18.6.1",
24
+ "c8": "^7.12.0",
26
25
  "lodash": "^4.17.21",
27
- "rollup": "^2.76.0",
28
- "ts-jest": "^28.0.5",
26
+ "rollup": "^2.77.0",
29
27
  "tslib": "^2.4.0",
30
- "typescript": "^4.7.4"
28
+ "typescript": "^4.7.4",
29
+ "vite": "^3.0.3",
30
+ "vitest": "^0.19.1"
31
31
  },
32
32
  "optionalDependencies": {
33
- "zod": "^3.17.3"
33
+ "zod": "^3.17.10"
34
34
  },
35
35
  "scripts": {
36
36
  "start": "pnpm build:rollup && node build/index.js",
37
37
  "build": "run-p build:*",
38
38
  "build:rollup": "rollup -c",
39
39
  "build:tsc": "tsc --build tsconfig.build.json",
40
- "test": "jest",
40
+ "test": "vitest run --coverage",
41
41
  "release": "pnpm publish --no-git-checks --access public"
42
42
  }
43
43
  }
@@ -1,5 +1,6 @@
1
1
  import { templates, Variable, magidoc, toVariablesFile } from '../../src'
2
2
  import { UnsupportedVariablesError } from '../../src/env/envFileContent'
3
+ import { describe, expect, it } from 'vitest'
3
4
 
4
5
  describe('creating a variables file ', () => {
5
6
  const initialObject = {
@@ -3,6 +3,7 @@ import * as variables from '../src/index'
3
3
  import type { Variable } from '../src/variables/variable'
4
4
  import z from 'zod'
5
5
  import type { Page } from '../src/index'
6
+ import { describe, expect, it, test } from 'vitest'
6
7
 
7
8
  describe('variables', () => {
8
9
  it('contains the right number of export keys', () => {
package/tsconfig.json CHANGED
@@ -17,6 +17,11 @@
17
17
  "skipLibCheck": true,
18
18
  "lib": ["esnext", "dom"]
19
19
  },
20
- "include": ["src/**/*.ts", "src/**/*.d.ts", "tests/**/*.ts"],
20
+ "include": [
21
+ "vitest.config.ts",
22
+ "src/**/*.ts",
23
+ "src/**/*.d.ts",
24
+ "tests/**/*.ts"
25
+ ],
21
26
  "exclude": ["build", "node_modules"]
22
27
  }
@@ -0,0 +1,12 @@
1
+ /// <reference types="vitest" />
2
+ import { defineConfig } from 'vite'
3
+
4
+ export default defineConfig({
5
+ test: {
6
+ mockReset: true,
7
+ coverage: {
8
+ all: true,
9
+ reporter: ['clover', 'lcov', 'html'],
10
+ },
11
+ },
12
+ })
@@ -1,18 +0,0 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "type": "node",
6
- "name": "vscode-jest-tests",
7
- "request": "launch",
8
- "program": "${workspaceFolder}/node_modules/jest/bin/jest",
9
- "args": [
10
- "--runInBand"
11
- ],
12
- "cwd": "${workspaceFolder}",
13
- "console": "integratedTerminal",
14
- "internalConsoleOptions": "neverOpen",
15
- "disableOptimisticBPs": true,
16
- }
17
- ]
18
- }
package/jest.config.cjs DELETED
@@ -1,11 +0,0 @@
1
- const base = require('../../../jest.config.cjs')
2
-
3
- /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
4
- module.exports = {
5
- ...base,
6
- globals: {
7
- 'ts-jest': {
8
- tsconfig: 'tsconfig.json',
9
- },
10
- }
11
- }