Skip to content

Commit

Permalink
fix: ci/cd build
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellodotgg committed Feb 1, 2025
1 parent 16972dd commit 14e20b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"build:pages": "ng build --output-path=dist --base-href='/ngx-validators/' --project demo",
"deploy": "npm run build:pages && npx angular-cli-ghpages --dir=dist/browser",
"watch": "ng build --watch --configuration development",
"test": "ng test --coverage",
"test:watch": "ng test --watch --coverage"
"test": "ng test --coverage --project ngx-validators",
"test:watch": "ng test --watch --coverage --project ngx-validators"
},
"license": "MIT",
"private": false,
Expand Down
6 changes: 4 additions & 2 deletions projects/ngx-validators/vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
/// <reference types="vitest" />

import angular from '@analogjs/vite-plugin-angular';

import { defineConfig } from 'vite';

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
return {
plugins: [
angular(),

],
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['src/test-setup.ts'],
include: ['**/*.spec.ts'],
reporters: ['default'],
coverage: {
provider: 'v8',
reporter: ['text']
}
},
define: {
'import.meta.vitest': mode !== 'production',
Expand Down

0 comments on commit 14e20b8

Please sign in to comment.