Skip to content

Commit

Permalink
chore: upgrade vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Dec 7, 2023
1 parent 1a5df4f commit db4cf1c
Show file tree
Hide file tree
Showing 5 changed files with 356 additions and 96 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
"tsx": "^4.6.2",
"typescript": "^5.3.3",
"unbuild": "2.0.0",
"vite": "^5.0.2",
"vitest": "^0.34.6",
"vite": "^5.0.6",
"vitest": "^1.0.1",
"vue": "^3.3.10"
},
"simple-git-hooks": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue-jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@vue/babel-plugin-jsx": "^1.1.5"
},
"devDependencies": {
"vite": "^5.0.2"
"vite": "^5.0.6"
},
"peerDependencies": {
"vite": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"rollup": "^4.6.1",
"slash": "^5.1.0",
"source-map-js": "^1.0.2",
"vite": "^5.0.2",
"vite": "^5.0.6",
"vue": "^3.3.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ exports[`serve:vue-sourcemap > css > serve-css 1`] = `
],
"sourcesContent": [
"<template>
<p class=\\"css\\">&lt;css&gt;</p>
<p :class=\\"$style['css-module']\\">&lt;css&gt; module</p>
<p class=\\"css-scoped\\">&lt;css&gt; scoped</p>
<p class=\\"css-scoped-nested\\">&lt;css&gt; scoped with nested</p>
<p class="css">&lt;css&gt;</p>
<p :class="$style['css-module']">&lt;css&gt; module</p>
<p class="css-scoped">&lt;css&gt; scoped</p>
<p class="css-scoped-nested">&lt;css&gt; scoped with nested</p>
</template>
<style>
Expand Down Expand Up @@ -55,10 +55,10 @@ exports[`serve:vue-sourcemap > css module > serve-css-module 1`] = `
],
"sourcesContent": [
"<template>
<p class=\\"css\\">&lt;css&gt;</p>
<p :class=\\"$style['css-module']\\">&lt;css&gt; module</p>
<p class=\\"css-scoped\\">&lt;css&gt; scoped</p>
<p class=\\"css-scoped-nested\\">&lt;css&gt; scoped with nested</p>
<p class="css">&lt;css&gt;</p>
<p :class="$style['css-module']">&lt;css&gt; module</p>
<p class="css-scoped">&lt;css&gt; scoped</p>
<p class="css-scoped-nested">&lt;css&gt; scoped with nested</p>
</template>
<style>
Expand Down Expand Up @@ -102,10 +102,10 @@ exports[`serve:vue-sourcemap > css scoped > serve-css-scoped 1`] = `
],
"sourcesContent": [
"<template>
<p class=\\"css\\">&lt;css&gt;</p>
<p :class=\\"$style['css-module']\\">&lt;css&gt; module</p>
<p class=\\"css-scoped\\">&lt;css&gt; scoped</p>
<p class=\\"css-scoped-nested\\">&lt;css&gt; scoped with nested</p>
<p class="css">&lt;css&gt;</p>
<p :class="$style['css-module']">&lt;css&gt; module</p>
<p class="css-scoped">&lt;css&gt; scoped</p>
<p class="css-scoped-nested">&lt;css&gt; scoped with nested</p>
</template>
<style>
Expand Down Expand Up @@ -173,10 +173,10 @@ exports[`serve:vue-sourcemap > less with additionalData > serve-less-with-additi
],
"sourcesContent": [
"<template>
<p class=\\"less\\">&lt;less&gt; with additionalData</p>
<p class="less">&lt;less&gt; with additionalData</p>
</template>
<style lang=\\"less\\">
<style lang="less">
.less {
color: @color;
}
Expand Down Expand Up @@ -232,10 +232,10 @@ exports[`serve:vue-sourcemap > sass > serve-sass 1`] = `
],
"sourcesContent": [
"<template>
<p class=\\"sass\\">&lt;sass&gt;</p>
<p class="sass">&lt;sass&gt;</p>
</template>
<style lang=\\"sass\\">
<style lang="sass">
.sass
color: red
</style>
Expand All @@ -257,11 +257,11 @@ exports[`serve:vue-sourcemap > sass with import > serve-sass-with-import 1`] = `
color: red
",
"<template>
<p class=\\"sass-with-import\\">&lt;sass&gt; with import</p>
<p class=\\"sass-with-import-imported\\">&lt;sass&gt; with import (imported)</p>
<p class="sass-with-import">&lt;sass&gt; with import</p>
<p class="sass-with-import-imported">&lt;sass&gt; with import (imported)</p>
</template>
<style lang=\\"sass\\">
<style lang="sass">
@import './sassWithImportImported'
.sass-with-import
Expand Down Expand Up @@ -321,11 +321,11 @@ exports[`serve:vue-sourcemap > ts > serve-ts 1`] = `
<p>&lt;ts&gt;</p>
</template>
<script lang=\\"ts\\">
<script lang="ts">
console.log('ts script')
</script>
<script lang=\\"ts\\" setup>
<script lang="ts" setup>
console.log('ts setup')
</script>
",
Expand Down
Loading

0 comments on commit db4cf1c

Please sign in to comment.