Skip to content

Commit

Permalink
feat: support Vite 4 (#2470)
Browse files Browse the repository at this point in the history
* chore: fix types issues

* chore: update deps and docs

* chore: update deps

* chore: reorder deps

* fix: make junit output consistent number
  • Loading branch information
sheremet-va authored Dec 10, 2022
1 parent b5eb7a9 commit 3bb6b0c
Show file tree
Hide file tree
Showing 17 changed files with 1,416 additions and 1,174 deletions.
92 changes: 74 additions & 18 deletions docs/.vitepress/contributor-names.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,57 @@
"userquin",
"Demivan",
"Aslemammad",
"poyoho",
"DerYeger",
"AriPerkkio",
"edimitchel",
"togami2864",
"dammy001",
"cexbrayat",
"Saul-Mirone",
"btea",
"poyoho",
"AriPerkkio",
"Saul-Mirone",
"nieyuyao",
"wtchnm",
"11joselu",
"nieyuyao",
"sapphi-red",
"dominikg",
"simon-abbott",
"tony-go",
"zxch3n",
"mitchelvanbever",
"stygian-desolator",
"ChpShy",
"bartoszgolebiowski",
"horacioh",
"JessicaSachs",
"pd4d10",
"narutosstudent",
"azaleta",
"ouduidui",
"haikyuu",
"aleclarson",
"kalvenschraut",
"leonardssh",
"sachinraja",
"Shinigami92",
"Tanimodori",
"pastelmind",
"alexzhang1030",
"jereklas",
"webfansplz",
"BluesYoung-web",
"antoinerey",
"sudongyuer",
"cawa-93",
"bluwy",
"Monkatraz",
"ChrisTowles",
"danez",
"Dragomir-Ivanov",
"EvHaus",
"filiptammergard",
"Akryum",
"g4rry420",
"hannoeru",
"IanVS",
"JakeGinnivan",
Expand All @@ -50,129 +64,169 @@
"JoostK",
"LoTwT",
"ciddan",
"nickmccurdy",
"eroblaze",
"pionxzh",
"PuruVJ",
"robcaldecott",
"sabertazimi",
"TheJaredWilcurt",
"tmkx",
"TrickyPi",
"vasilii-kovalev",
"irvile",
"ocavue",
"scarf005",
"skarab42",
"webfansplz",
"sun0day",
"murongg",
"pikax",
"IgnusG",
"jfgreffier",
"katranci",
"atk",
"benjakugler96",
"bluwy",
"bfanger",
"CyriacBr",
"calebwaldner",
"craciuncezar",
"ChrisTowles",
"christianhg",
"screendriver",
"cpojer",
"Cphayim",
"luckylooke",
"Xwil",
"freezepluto",
"DannyFeliz",
"byr-gdp",
"david-crespo",
"voraciousdev",
"Dragomir-Ivanov",
"voracious",
"euaaaio",
"elliotwestlake",
"innocenzi",
"ericjgagnon",
"erik-perri",
"evandroguedes",
"cyco130",
"filiptammergard",
"GabrielAlfs",
"GeopJr",
"ghiscoding",
"gleysonabreu",
"gdorsi",
"guoyunhe",
"bissolli",
"hamirmahal",
"sodatea",
"hubertstrk",
"hugoattal",
"nvh95",
"cogor",
"maIIady",
"Lounane",
"jamacku",
"nyarthan",
"jhuleatt",
"stormwarning",
"Jastor11",
"ydcjeff",
"okxiaoliang4",
"WonderPanda",
"joeyhuang0235",
"wuzzeb",
"IgnusG",
"dotnetCarpenter",
"FlippingBinary",
"Jordan-Hall",
"joshnuss",
"jgoux",
"zephraph",
"kainstar",
"kazuma1989",
"oekazuma",
"gaokun",
"KentoMoriwaki",
"kidonng",
"kkuegler",
"krishnan-chandra",
"linux-china",
"Lioness100",
"localhousee",
"luismartinezs",
"lukashass",
"brzezinskimarcin",
"marcomuser",
"marshallswain",
"silvenon",
"MPeloquin",
"mikearnaldi",
"lampewebdev",
"mcous",
"mikekidder",
"mikestopcontinues",
"mikewheaton",
"NMinhNguyen",
"RedJanvier",
"okikio",
"freshollie",
"OrestHk",
"Orleydovsky",
"pengYYYYY",
"patrickelectric",
"yingpengsha",
"Peeterush",
"rafedramzi",
"believer",
"rmehner",
"rowanwins",
"pandyarudra",
"ecstrema",
"ST-DDT",
"Sajad-Sharhani",
"sakit0",
"sanjaiyan-dev",
"sebastinez",
"ShivamJoker",
"shiwano",
"simon-abbott",
"sidharthv96",
"smcenlly",
"NoriSte",
"TadejPolajnar",
"cyamy",
"Tanimodori",
"TommyDew42",
"tony19",
"veritem",
"victortolbert",
"Baael",
"ycmjason",
"promer94",
"ysaskia",
"kingyue737",
"Talljack",
"iamyuu",
"zrev2220",
"zachOS-tech",
"zingxy",
"await-ovo",
"c0dedance",
"canyonwan",
"ChpShy",
"eleith",
"MatthewZito",
"exbotanical",
"gtarsia",
"yamazaki-sensei",
"hugo-t-b",
"irvile",
"jamsch",
"jfgreffier",
"jfrs",
"josefaidt",
"jp-liu",
"lexmin0412",
"lxy-yz",
"remcovaes",
"silverwind",
"SnowingFox",
"so11y",
"steve-py96",
"vaakian",
"wael-fadlallah",
"warmthdawn",
"wheatjs",
"wjx0820",
"yaegassy",
Expand All @@ -181,5 +235,7 @@
"zthxxx",
"artplan1",
"shiradofu",
"sxzz"
"sxzz",
"zhangzhonghe",
"ahaoboy"
]
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"https-localhost": "^4.7.1",
"unocss": "^0.46.0",
"unplugin-vue-components": "^0.22.9",
"vite": "^3.2.3",
"vite-plugin-pwa": "0.13.1",
"vitepress": "1.0.0-alpha.27",
"vite": "^4.0.0",
"vite-plugin-pwa": "0.13.3",
"vitepress": "1.0.0-alpha.30",
"workbox-window": "^6.5.4"
}
}
1 change: 1 addition & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
| `basic` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/basic) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/basic?initialPath=__vitest__) |
| `fastify` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/fastify) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/fastify?initialPath=__vitest__) |
| `graphql` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/graphql) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/graphql?initialPath=__vitest__) |
| `image-snapshot` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/image-snapshot) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/image-snapshot?initialPath=__vitest__) |
| `lit` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/lit) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/lit?initialPath=__vitest__) |
| `mocks` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/mocks) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/mocks?initialPath=__vitest__) |
| `nextjs` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/nextjs) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/nextjs?initialPath=__vitest__) |
Expand Down
1 change: 0 additions & 1 deletion examples/solid/components/Hello.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/prop-types */
import { createSignal } from 'solid-js'

export const Hello = (props) => {
Expand Down
6 changes: 4 additions & 2 deletions examples/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
"solid-js": "^1.4.3"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.4",
"jsdom": "latest",
"solid-testing-library": "0.3.0",
"vite-plugin-solid": "^2.2.6",
"solid-testing-library": "^0.5.0",
"vite": "latest",
"vite-plugin-solid": "^2.5.0",
"vitest": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/solid/test/Hello.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('<Hello />', () => {
unmount()
})

test('updates', async() => {
test('updates', async () => {
const { container, unmount, queryByText } = render(() => <Hello count={4} />)
const button = queryByText('x1')
const buttonClicked = new Promise((resolve) => {
Expand Down
3 changes: 0 additions & 3 deletions examples/solid/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ export default defineConfig({
transformMode: {
web: [/.[jt]sx?/],
},
deps: {
registerNodeLoader: true,
},
threads: false,
isolate: false,
},
Expand Down
6 changes: 3 additions & 3 deletions examples/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"coverage": "vitest run --coverage"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^1.0.1",
"@testing-library/svelte": "^3.1.3",
"@sveltejs/vite-plugin-svelte": "^2.0.0",
"@testing-library/svelte": "^3.2.2",
"@vitest/ui": "latest",
"jsdom": "latest",
"svelte": "^3.48.0",
"svelte": "latest",
"vite": "latest",
"vitest": "latest"
},
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@vitest/ui": "workspace:*",
"bumpp": "^8.2.1",
"c8": "^7.12.0",
"esbuild": "^0.15.13",
"esbuild": "^0.16.3",
"eslint": "^8.27.0",
"esno": "^0.16.3",
"fast-glob": "^3.2.12",
Expand All @@ -73,8 +73,8 @@
},
"pnpm": {
"overrides": {
"esbuild": "^0.14.47",
"vite": "^3.2.3",
"esbuild": "^0.16.3",
"vite": "^4.0.0",
"vitest": "workspace:*",
"rollup": "^2.79.1"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
},
"devDependencies": {
"@faker-js/faker": "^7.6.0",
"@testing-library/cypress": "^8.0.3",
"@testing-library/cypress": "^8.0.7",
"@types/codemirror": "^5.60.5",
"@types/d3-force": "^3.0.3",
"@types/d3-selection": "^3.0.3",
"@types/ws": "^8.5.3",
"@unocss/reset": "^0.46.3",
"@vitejs/plugin-vue": "^3.2.0",
"@vitejs/plugin-vue-jsx": "^2.1.1",
"@unocss/reset": "^0.47.5",
"@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue-jsx": "^3.0.0",
"@vitest/ws-client": "workspace:*",
"@vueuse/core": "^9.4.0",
"ansi-to-html": "^0.7.2",
Expand All @@ -64,7 +64,7 @@
"unocss": "^0.46.3",
"unplugin-auto-import": "^0.11.4",
"unplugin-vue-components": "^0.22.9",
"vite": "^3.2.3",
"vite": "^4.0.0",
"vite-plugin-pages": "^0.27.1",
"vue": "^3.2.41",
"vue-router": "^4.1.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"pathe": "^0.2.0",
"source-map": "^0.6.1",
"source-map-support": "^0.5.21",
"vite": "^3.0.0"
"vite": "^3.0.0 || ^4.0.0"
},
"devDependencies": {
"@types/debug": "^4.1.7",
Expand Down
Loading

0 comments on commit 3bb6b0c

Please sign in to comment.