bonkers-ui 1.0.34 → 1.0.35

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bonkers-ui",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "storybook": "start-storybook -p 6006",
@@ -8,9 +8,9 @@
8
8
  "lint:script": "eslint --fix './src/**/*.{ts,tsx,vue}'",
9
9
  "lint:style": "stylelint --fix './src/**/*.{css,scss,vue}'",
10
10
  "lint:markup": "vue-tsc --noEmit",
11
- "test": "jest",
12
11
  "deploy": "gh-pages -d storybook-static",
13
12
  "typecheck": "tsc --noEmit && vue-tsc --noEmit",
13
+ "test": "vitest run",
14
14
  "i": "yarn install --frozen-lockfile"
15
15
  },
16
16
  "dependencies": {
@@ -18,9 +18,9 @@
18
18
  "@fortawesome/free-brands-svg-icons": "^6.2.1",
19
19
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
20
20
  "@fortawesome/free-solid-svg-icons": "^6.2.1",
21
- "@fortawesome/vue-fontawesome": "^3.0.0-5",
22
- "@vueuse/components": "^9.8.2",
23
- "@vueuse/core": "^9.8.2",
21
+ "@fortawesome/vue-fontawesome": "^3.0.2",
22
+ "@vueuse/components": "^9.10.0",
23
+ "@vueuse/core": "^9.10.0",
24
24
  "vue": "^3.2.45"
25
25
  },
26
26
  "devDependencies": {
@@ -28,55 +28,34 @@
28
28
  "@storybook/addon-essentials": "^6.5.15",
29
29
  "@storybook/addon-links": "^6.5.15",
30
30
  "@storybook/addon-postcss": "^2.0.0",
31
- "@storybook/builder-vite": "^0.2.6",
31
+ "@storybook/builder-vite": "^0.2.7",
32
32
  "@storybook/vue3": "^6.5.15",
33
- "@types/jest": "^29.2.4",
34
- "@typescript-eslint/eslint-plugin": "^5.47.0",
35
- "@typescript-eslint/parser": "^5.47.0",
33
+ "@typescript-eslint/eslint-plugin": "^5.48.1",
34
+ "@typescript-eslint/parser": "^5.48.1",
36
35
  "@vitejs/plugin-vue": "^4.0.0",
37
36
  "@vue/eslint-config-typescript": "^11.0.2",
38
- "@vue/test-utils": "^2.2.6",
39
- "@vue/vue3-jest": "^29.2.2",
40
- "babel-jest": "29.3.1",
41
- "eslint": "8.30.0",
37
+ "@vue/test-utils": "^2.2.7",
38
+ "eslint": "8.31.0",
42
39
  "eslint-plugin-vue": "^9.8.0",
43
40
  "gh-pages": "^4.0.0",
44
41
  "husky": "4.3.8",
45
- "jest": "27.3.1",
42
+ "jsdom": "^21.0.0",
46
43
  "lint-staged": "^13.1.0",
47
- "postcss": "^8.4.20",
44
+ "postcss": "^8.4.21",
48
45
  "postcss-html": "^1.4.1",
49
46
  "storybook-tailwind-dark-mode": "^1.0.15",
50
- "stylelint": "^14.16.0",
47
+ "stylelint": "^14.16.1",
51
48
  "stylelint-config-recommended": "^9.0.0",
52
49
  "stylelint-config-recommended-vue": "^1.4.0",
53
50
  "stylelint-config-standard": "^29.0.0",
54
51
  "tailwindcss": "^3.2.4",
55
- "ts-jest": "^27.0.7",
56
52
  "ts-node": "^10.9.1",
57
53
  "typescript": "^4.9.4",
58
- "vite": "^4.0.2",
54
+ "vite": "^4.0.4",
55
+ "vitest": "^0.27.0",
59
56
  "vue-eslint-parser": "^9.1.0",
60
57
  "vue-loader": "^17.0.1",
61
- "vue-tsc": "^1.0.16"
62
- },
63
- "jest": {
64
- "preset": "ts-jest",
65
- "moduleFileExtensions": [
66
- "vue",
67
- "js",
68
- "jsx",
69
- "ts"
70
- ],
71
- "testEnvironment": "jsdom",
72
- "moduleNameMapper": {
73
- "^@/(.*)$": "<rootDir>/src/$1"
74
- },
75
- "transform": {
76
- ".*\\.(js)$": "babel-jest",
77
- "^.+\\.tsx?$": "ts-jest",
78
- ".*\\.(vue)$": "@vue/vue3-jest"
79
- }
58
+ "vue-tsc": "^1.0.24"
80
59
  },
81
60
  "lint-staged": {
82
61
  "*.{ts,tsx,vue}": [
@@ -1,7 +1,10 @@
1
1
  import { mount } from "@vue/test-utils";
2
2
  import UiButton from "./ui-button.vue";
3
+ import { test, expect } from "vitest";
4
+
5
+ test("VButton.test.ts", async () => {
6
+ expect(UiButton).toBeTruthy();
3
7
 
4
- describe("VButton.test.ts", () => {
5
8
  it("renders props.msg when passed", () => {
6
9
  const className = "message";
7
10
  const wrapper = mount(UiButton, {
@@ -12,4 +15,5 @@ describe("VButton.test.ts", () => {
12
15
 
13
16
  expect(wrapper.classes()).toContain(className);
14
17
  });
18
+
15
19
  });
@@ -5,7 +5,7 @@ export enum EIconType {
5
5
  FAL = "fal",
6
6
  FAD = "fad",
7
7
  FAT = "fat",
8
- BRANDS = "brands",
8
+ BRANDS = "fa-brands",
9
9
  }
10
10
 
11
11
  export type TIconName = [EIconType, string];
package/tsconfig.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "types": [
4
4
  "vite/client",
5
- "jest"
5
+ "vitest/globals"
6
6
  ],
7
7
  "target": "esnext",
8
8
  "module": "esnext",
@@ -0,0 +1,17 @@
1
+
2
+ import { defineConfig, UserConfig } from "vite";
3
+ import type { InlineConfig } from "vitest";
4
+
5
+ import Vue from "@vitejs/plugin-vue";
6
+
7
+ interface VitestConfigExport extends UserConfig {
8
+ test: InlineConfig;
9
+ }
10
+
11
+ export default defineConfig({
12
+ plugins: [Vue()],
13
+ test: {
14
+ globals: true,
15
+ environment: "jsdom",
16
+ },
17
+ } as VitestConfigExport);