-
Notifications
You must be signed in to change notification settings - Fork 3.4k
chore: vitest project config #32447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: vitest project config #32447
Changes from 10 commits
e1feeb3
055910e
565911f
88cf57b
f7d1198
d7bce24
c8b0993
abc1add
d33fdcf
a8fac8f
aeb9bc6
281c04b
6783c69
6053a8c
28a2c0b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
import { baseConfig } from '@packages/eslint-config' | ||
import { baseConfig, cliOverrides } from '@packages/eslint-config' | ||
import { globalIgnores } from 'eslint/config' | ||
|
||
export default [ | ||
// these are configured to build in place, rather than in a separate | ||
// dist folder, so we need to ignore them | ||
globalIgnores(['src/**/*.{js,js.map,d.ts}']), | ||
...baseConfig, | ||
...cliOverrides, | ||
{ | ||
files: ['**/*.spec.ts', '**/*.component.ts'], | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: false, | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}, | ||
}, | ||
{ | ||
rules: { | ||
'no-console': 'off', | ||
}, | ||
}, | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"noEmit": false | ||
}, | ||
"exclude": ["src/**/files-core/**/*", "src/**/files-ct/**/*", "src/**/*.spec.ts"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { defineConfig } from 'vitest/config' | ||
|
||
export default defineConfig({ | ||
test: { | ||
include: ['src/**/*.spec.ts'], | ||
globals: true, | ||
environment: 'node', | ||
}, | ||
}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { defineConfig } from 'vitest/config' | ||
|
||
export default defineConfig({ | ||
test: { | ||
include: ['src/**/*.spec.ts'], | ||
globals: true, | ||
environment: 'node', | ||
}, | ||
}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { defineConfig } from 'vitest/config' | ||
|
||
export default defineConfig({ | ||
test: { | ||
include: ['src/**/*.spec.ts'], | ||
globals: true, | ||
environment: 'node', | ||
}, | ||
}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { defineConfig } from 'vitest/config' | ||
|
||
export default defineConfig({ | ||
test: { | ||
projects: [ | ||
'{packages,tooling,scripts}/*/vitest.config.{ts,mjs}', | ||
'cli/vitest.config.*', | ||
], | ||
exclude: ['**/node_modules/**', '**/dist/**', 'system-tests/**'], | ||
coverage: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. where exactly does the coverage get output to and do we need to check if they are generated similar to our current CI process? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They aren't, yet! I've been using it personally to check coverage locally, but not anything in CI. |
||
provider: 'v8', | ||
reporter: ['clover'], | ||
}, | ||
reporters: ['default', 'junit'], | ||
}, | ||
}) |
Uh oh!
There was an error while loading. Please reload this page.