Skip to content

Commit

Permalink
fix: Allow Vitest to process the "accessor" keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode committed Jan 8, 2025
1 parent ea3e04f commit ada36e0
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 87 deletions.
173 changes: 88 additions & 85 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.0",
"@evilmartians/lefthook": "^1.9.0",
"@tstv/eslint-config": "^3.2.2",
"@tstv/tsconfig-common": "^3.6.0",
"@tstv/eslint-config": "^3.2.4",
"@tstv/tsconfig-common": "^3.7.0",
"@types/node": "^22.5.1",
"@vitest/coverage-v8": "^2.0.5",
"cross-env": "^7.0.3",
Expand Down
5 changes: 5 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import {defineConfig} from 'vitest/config';

export default defineConfig({
esbuild: {
// Allows using the "accessor" keyword in TypeScript:
// https://github.com/vitest-dev/vitest/issues/5976#issuecomment-2190804966
target: 'es2022',
},
test: {
bail: 1,
coverage: {
Expand Down

0 comments on commit ada36e0

Please sign in to comment.