@tryghost/admin-toolbar 0.1.1 → 0.1.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.
Files changed (1) hide show
  1. package/package.json +9 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/admin-toolbar",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,8 +23,8 @@
23
23
  "concurrently": "10.0.3",
24
24
  "eslint": "8.57.1",
25
25
  "jsdom": "29.1.1",
26
- "mocha": "11.7.6",
27
- "vite": "7.3.2"
26
+ "vite": "7.3.2",
27
+ "vitest": "4.1.8"
28
28
  },
29
29
  "eslintConfig": {
30
30
  "ignorePatterns": [
@@ -49,9 +49,13 @@
49
49
  "test/**/*.js"
50
50
  ],
51
51
  "env": {
52
- "mocha": true,
53
52
  "node": true
54
53
  },
54
+ "globals": {
55
+ "afterEach": "readonly",
56
+ "describe": "readonly",
57
+ "it": "readonly"
58
+ },
55
59
  "parserOptions": {
56
60
  "sourceType": "script"
57
61
  }
@@ -71,7 +75,7 @@
71
75
  "dev": "concurrently --kill-others --names preview,build \"pnpm exec vite preview -l silent\" \"pnpm build:watch\"",
72
76
  "lint": "pnpm exec eslint src --ext .js --cache",
73
77
  "test": "pnpm test:unit",
74
- "test:unit": "pnpm run build && pnpm exec mocha --exit --trace-warnings --timeout=60000 \"test/**/*.test.js\"",
78
+ "test:unit": "pnpm run build && pnpm exec vitest run",
75
79
  "preship": "pnpm lint",
76
80
  "ship": "node ../../.github/scripts/release-apps.js"
77
81
  }