Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions npm/cypress-schematic/eslint.config.ts
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',
},
},
]
2 changes: 1 addition & 1 deletion npm/cypress-schematic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@types/node": "^22.17.1",
"eslint": "^9.31.0",
"typescript": "~5.4.5",
"vitest": "3.2.4"
"vitest": "^3.2.4"
},
"peerDependencies": {
"@angular/cli": ">=18.0.0",
Expand Down
7 changes: 7 additions & 0 deletions npm/cypress-schematic/tsconfig.build.json
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"]
}
2 changes: 1 addition & 1 deletion npm/cypress-schematic/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"declaration": true,
"module": "commonjs",
"moduleResolution": "node",
"noEmit": true,
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
Expand All @@ -27,5 +28,4 @@
"include": [
"src/**/*"
],
"exclude": ["src/**/files-core/**/*", "src/**/files-ct/**/*", "src/**/*.spec.ts"]
}
9 changes: 9 additions & 0 deletions npm/cypress-schematic/vitest.config.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',
},
})
2 changes: 1 addition & 1 deletion npm/vite-dev-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"vite-6": "npm:vite@^6.2.5",
"vite-7": "npm:vite@^7.0.0",
"vite-plugin-inspect": "0.8.4",
"vitest": "2.1.9"
"vitest": "^3.2.4"
},
"peerDependencies": {
"cypress": ">=15.0.0"
Expand Down
9 changes: 9 additions & 0 deletions npm/vite-dev-server/vitest.config.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',
},
})
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"@typescript-eslint/eslint-plugin": "7.2.0",
"@typescript-eslint/parser": "7.2.0",
"@urql/introspection": "^0.3.0",
"@vitest/coverage-v8": "^3.2.4",
"ascii-table": "0.0.9",
"autobarrel": "^1.1.0",
"bluebird": "3.5.3",
Expand Down Expand Up @@ -211,6 +212,7 @@
"tree-kill": "1.2.2",
"ts-node": "^10.9.2",
"typescript": "5.3.3",
"vitest": "^3.2.4",
"yaml": "2.8.0",
"yarn-deduplicate": "3.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"url-parse": "1.5.10",
"vanilla-text-mask": "5.1.1",
"vite": "^6.3.5",
"vitest": "^2.1.9",
"vitest": "^3.2.4",
"webpack": "^5.88.2",
"zone.js": "0.15.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/stderr-filtering/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"devDependencies": {
"@packages/eslint-config": "0.0.0-development",
"@types/node": "^22.13.10",
"@vitest/coverage-v8": "^3.0.9",
"@vitest/coverage-v8": "^3.2.4",
"eslint": "^9.22.0",
"rimraf": "^6.0.1",
"typescript": "^5.8.2",
"vitest": "^3.0.9"
"vitest": "^3.2.4"
},
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"express": "4.21.0",
"socket.io": "4.0.1",
"typescript": "~5.4.5",
"vitest": "2.1.9"
"vitest": "^3.2.4"
},
"files": [
"src/*"
Expand Down
9 changes: 9 additions & 0 deletions packages/types/vitest.config.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',
},
})
16 changes: 16 additions & 0 deletions vitest.config.ts
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: {
Copy link
Contributor

Choose a reason for hiding this comment

The 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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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'],
},
})
Loading
Loading