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.
|
|
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.
|
|
22
|
-
"@vueuse/components": "^9.
|
|
23
|
-
"@vueuse/core": "^9.
|
|
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.
|
|
31
|
+
"@storybook/builder-vite": "^0.2.7",
|
|
32
32
|
"@storybook/vue3": "^6.5.15",
|
|
33
|
-
"@
|
|
34
|
-
"@typescript-eslint/
|
|
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.
|
|
39
|
-
"
|
|
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
|
-
"
|
|
42
|
+
"jsdom": "^21.0.0",
|
|
46
43
|
"lint-staged": "^13.1.0",
|
|
47
|
-
"postcss": "^8.4.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
});
|
package/tsconfig.json
CHANGED
package/vitest.config.ts
ADDED
|
@@ -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);
|