Skip to content

Commit

Permalink
update vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
bichikim committed Jun 15, 2023
1 parent f475134 commit 702e2bc
Show file tree
Hide file tree
Showing 7 changed files with 184 additions and 278 deletions.
2 changes: 0 additions & 2 deletions apps/front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
"vue-router": "^4.2.2"
},
"devDependencies": {
"vite": "^4.3.9",
"@vitejs/plugin-vue": "^4.2.3"
}
}
7 changes: 7 additions & 0 deletions apps/front/src/test.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {describe, expect, it} from 'vitest'

describe('vitest', () => {
it('works well', () => {
expect('1').toBe('1')
})
})
14 changes: 14 additions & 0 deletions apps/front/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/// <reference types="vitest" />
import {fileURLToPath, URL} from 'node:url'
import {defineConfig} from 'vite'

export default defineConfig({
resolve: {
alias: {
src: fileURLToPath(new URL('src', import.meta.url)),
},
},
test: {
// ...
},
})
3 changes: 1 addition & 2 deletions apps/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
"preview": "nuxt preview"
},
"devDependencies": {
"@nuxt/devtools": "latest",
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@
},
"homepage": "https://github.com/byte-abc/byte#readme",
"devDependencies": {
"vitest": "^0.31.4",
"histoire": "^0.16.1",
"@histoire/plugin-vue": "^0.16.1",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@vue/eslint-config-typescript": "^11.0.3",
"eslint": "8.28.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-functional": "^5.0.8",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsonc": "^2.7.0",
"eslint-plugin-jsonc": "^2.8.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-sort-export-all": "^1.2.2",
"eslint-plugin-sort-export-all": "^1.4.1",
"eslint-plugin-sort-keys-fix": "1.1.2",
"eslint-plugin-typescript-sort-keys": "2.1.0",
"eslint-plugin-unicorn": "45.0.0",
"eslint-plugin-vue": "^9.11.0"
"eslint-plugin-vue": "^9.14.1",
"histoire": "^0.16.1",
"vitest": "^0.31.4"
}
}
Loading

0 comments on commit 702e2bc

Please sign in to comment.