Skip to content

Commit

Permalink
build(deps-dev): bump vitest from 0.31.1 to 0.34.1
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Aug 7, 2023
1 parent d77c0f5 commit 043911c
Show file tree
Hide file tree
Showing 5 changed files with 222 additions and 698 deletions.
6 changes: 0 additions & 6 deletions __tests__/serve.json

This file was deleted.

12 changes: 6 additions & 6 deletions __tests__/ts/v4/tsconfig.typecheck.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
},
"extends": "./tsconfig.json",
"include": [
"**/**.cts",
"**/**.mts",
"**/**.ts",
"**/.*.cts",
"**/.*.mts",
"**/.*.ts"
"../../../**/**.cts",
"../../../**/**.mts",
"../../../**/**.ts",
"../../../**/.*.cts",
"../../../**/.*.mts",
"../../../**/.*.ts"
]
}
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"release": "bash ./scripts/release.sh",
"test": "vitest run",
"test:cov": "yarn clean:coverage; yarn test --coverage",
"test:cov:serve": "serve __tests__ --listen 5432 --no-port-switching",
"test:cov:serve": "vite preview --outDir ./coverage",
"test:cov:upload": "./codecov -t $CODECOV_TOKEN -f ./coverage/lcov.info",
"test:watch": "vitest",
"typecheck": "vitest typecheck --run",
Expand Down Expand Up @@ -107,8 +107,7 @@
"@typescript-eslint/eslint-plugin": "5.59.7",
"@typescript-eslint/parser": "5.59.2",
"@vates/toggle-scripts": "1.0.0",
"@vitest/coverage-c8": "0.31.0",
"@vitest/ui": "0.31.1",
"@vitest/coverage-v8": "0.34.1",
"add-stream": "1.0.0",
"chai": "4.3.7",
"conventional-changelog": "3.1.25",
Expand Down Expand Up @@ -147,15 +146,14 @@
"prettier-plugin-sh": "0.12.8",
"sade": "1.8.1",
"semver": "7.5.2",
"serve": "14.2.0",
"tempfile": "5.0.0",
"trash-cli": "5.0.0",
"ts-dedent": "2.2.0",
"typescript": "5.1.0-dev.20230301",
"version-bump-prompt": "6.1.0",
"vite": "4.3.9",
"vite-tsconfig-paths": "4.2.0",
"vitest": "0.31.1",
"vitest": "0.34.1",
"vitest-github-actions-reporter": "0.10.0",
"yaml-eslint-parser": "1.2.0"
},
Expand Down
14 changes: 7 additions & 7 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import pathe from '@flex-development/pathe'
import { NodeEnv, template } from '@flex-development/tutils'
import { template } from '@flex-development/tutils'
import ci from 'is-ci'
import tsconfigpaths from 'vite-tsconfig-paths'
import GithubActionsReporter from 'vitest-github-actions-reporter'
Expand Down Expand Up @@ -41,9 +41,7 @@ const config: UserConfigExport = defineConfig((): UserConfig => {
process.env.TYPESCRIPT_VERSION?.startsWith('5') ?? true

return {
define: {
'import.meta.env.NODE_ENV': JSON.stringify(NodeEnv.TEST)
},
define: {},
plugins: [tsconfigpaths({ projects: [pathe.resolve('tsconfig.json')] })],
test: {
allowOnly: !ci,
Expand All @@ -67,8 +65,8 @@ const config: UserConfigExport = defineConfig((): UserConfig => {
],
extension: ['.ts'],
include: ['src'],
provider: 'c8',
reporter: [ci ? 'lcovonly' : 'lcov', 'text'],
provider: 'v8',
reporter: [ci ? 'lcovonly' : 'html', 'text'],
reportsDirectory: './coverage',
skipFull: false
},
Expand All @@ -77,7 +75,9 @@ const config: UserConfigExport = defineConfig((): UserConfig => {
globalSetup: [],
globals: true,
hookTimeout: 10 * 1000,
include: [`**/__tests__/*.spec${LINT_STAGED ? ',spec-d' : ''}.{ts,tsx}`],
include: [
`**/__tests__/*.${LINT_STAGED ? '{spec,spec-d}' : 'spec'}.{ts,tsx}`
],
isolate: true,
mockReset: true,
outputFile: { json: './__tests__/report.json' },
Expand Down
Loading

0 comments on commit 043911c

Please sign in to comment.