Skip to content

Commit

Permalink
Merge pull request #110 from grucloud/vitest
Browse files Browse the repository at this point in the history
update vitest, add export in package.json
  • Loading branch information
FredericHeem authored Sep 14, 2024
2 parents 9b06ac5 + 2de975e commit b2840dc
Show file tree
Hide file tree
Showing 13 changed files with 1,219 additions and 1,185 deletions.
11 changes: 2 additions & 9 deletions bau-css/examples/bau-bau-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,14 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"bundle-visualizer": "vite-bundle-visualizer",
"test": "vitest",
"coverage": "vitest run --coverage"
"preview": "vite preview"
},
"dependencies": {
"@grucloud/bau": "^0.85.0",
"@grucloud/bau-css": "^0.85.0"
},
"devDependencies": {
"@vitest/coverage-c8": "0.32.0",
"happy-dom": "9.20.3",
"vite": "^5.2.11",
"vite-bundle-visualizer": "0.7.0",
"vitest": "0.31.4"
"vite": "^5.4.5"
},
"repository": {
"type": "git",
Expand Down
14 changes: 8 additions & 6 deletions bau-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"version": "0.85.0",
"type": "module",
"module": "./bau-css.js",
"exports": {
".": "./bau-css.js",
"./bau-css.js": "./bau-css.js"
},
"license": "BSD",
"files": [
"bau-css.js",
Expand All @@ -21,15 +25,13 @@
"build": "vite build",
"preview": "vite preview",
"bundle-visualizer": "vite-bundle-visualizer",
"test": "vitest",
"coverage": "vitest run --coverage"
"test": "vitest"
},
"devDependencies": {
"@vitest/coverage-c8": "0.32.0",
"happy-dom": "14.11.0",
"vite": "^5.2.11",
"happy-dom": "15.7.4",
"vite": "^5.4.5",
"vite-bundle-visualizer": "1.2.1",
"vitest": "1.6.0"
"vitest": "2.1.1"
},
"repository": {
"type": "git",
Expand Down
10 changes: 4 additions & 6 deletions bau-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,16 @@
"build": "vite build",
"preview": "vite preview",
"bundle-visualizer": "vite-bundle-visualizer",
"test": "vitest",
"coverage": "vitest run --coverage"
"test": "vitest"
},
"dependencies": {
"@grucloud/bau": "^0.85.0"
},
"devDependencies": {
"@vitest/coverage-c8": "0.32.0",
"happy-dom": "14.11.0",
"vite": "^5.2.11",
"happy-dom": "15.7.4",
"vite": "^5.4.5",
"vite-bundle-visualizer": "1.2.1",
"vitest": "1.6.0"
"vitest": "2.1.1"
},
"repository": {
"type": "git",
Expand Down
1 change: 0 additions & 1 deletion bau-router/test/bau-router.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import assert from "assert";
import { describe, it, vi, expect } from "vitest";

import Bau from "@grucloud/bau";
Expand Down
18 changes: 11 additions & 7 deletions bau/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"version": "0.85.0",
"type": "module",
"module": "bau.js",
"exports": {
".": "./bau.js",
"./bau.js": "./bau.js"
},
"license": "BSD",
"files": [
"bau.js",
Expand All @@ -24,13 +28,13 @@
"coverage": "vitest run --coverage"
},
"devDependencies": {
"@vitest/browser": "0.32.2",
"@vitest/coverage-c8": "0.32.2",
"@vitest/utils": "0.32.2",
"vite": "^5.2.11",
"vite-bundle-visualizer": "0.8.0",
"vitest": "0.32.2",
"webdriverio": "8.11.2"
"@vitest/browser": "2.1.1",
"@vitest/coverage-v8": "2.1.1",
"@vitest/utils": "2.1.1",
"vite": "^5.4.5",
"vite-bundle-visualizer": "1.2.1",
"vitest": "2.1.1",
"webdriverio": "9.0.9"
},
"repository": {
"type": "git",
Expand Down
1 change: 0 additions & 1 deletion bau/test/counter.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import assert from "assert";
import { describe, it, vi, expect } from "vitest";

// import Bau from "../bau";
Expand Down
3 changes: 1 addition & 2 deletions bau/test/state-array.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import assert from "assert";
import { beforeEach, describe, it, vi } from "vitest";
import { beforeEach, describe, it, assert } from "vitest";

import Bau from "../bau";

Expand Down
3 changes: 1 addition & 2 deletions bau/test/state.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import assert from "assert";
import { beforeEach, describe, it, vi } from "vitest";
import { beforeEach, describe, it, assert } from "vitest";

import Bau from "../bau";

Expand Down
3 changes: 1 addition & 2 deletions bau/test/tags.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import assert from "assert";
import { describe, it, vi, expect } from "vitest";
import { describe, it, vi, expect, assert } from "vitest";

import Bau from "../bau";

Expand Down
3 changes: 1 addition & 2 deletions bau/test/tagsNS.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import assert from "assert";
import { describe, it, vi, expect } from "vitest";
import { describe, it, assert } from "vitest";

import Bau from "../bau";

Expand Down
4 changes: 0 additions & 4 deletions bau/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,5 @@ export default defineConfig(({ command, mode, ssrBuild }) => {
name: "chrome", // browser name is required
},
},
// pnpm
resolve: {
preserveSymlinks: true,
},
};
});
4 changes: 2 additions & 2 deletions examples/bau-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"bundle-visualizer": "vite-bundle-visualizer"
},
"devDependencies": {
"vite": "^5.2.11",
"vite": "^5.4.5",
"vite-bundle-visualizer": "1.2.1",
"vite-plugin-svg-sprite": "0.5.2",
"vite-plugin-virtual-mpa": "1.11.0"
"vite-plugin-virtual-mpa": "1.12.1"
},
"dependencies": {
"@grucloud/bau": "^0.85.0",
Expand Down
Loading

0 comments on commit b2840dc

Please sign in to comment.