Skip to content
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

fix: LaunchDevly UI: Add testing framework #442

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
20 changes: 17 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: golangci-lint
entry: golangci-lint run
exclude: '^(vendor/|.circleci/)'
exclude: "^(vendor/|.circleci/)"
language: golang
require_serial: true
types: [go]
Expand All @@ -13,7 +13,7 @@ repos:
hooks:
- id: compile-go-tests
entry: bin/run-script run-on-dirs "go test ./..."
exclude: '^vendor/|^.circleci/image/tools'
exclude: "^vendor/|^.circleci/image/tools"
name: run-go-tests
- id: discarded-stacktrace
exclude: '(^vendor/|.*gen\.go)'
Expand All @@ -24,4 +24,18 @@ repos:
rev: v4.6.0
hooks:
- id: end-of-file-fixer
exclude: '^vendor'
exclude: "^vendor"
- repo: local
hooks:
- id: ui-tests
name: Run UI tests
entry: bash -c 'cd internal/dev_server/ui && npm test'
language: system
files: \.(jsx|tsx)$
pass_filenames: false
- id: ui-build
name: Build UI
entry: bash -c 'cd internal/dev_server/ui && npm run build'
language: system
files: \.(jsx|tsx)$
pass_filenames: false
22 changes: 11 additions & 11 deletions internal/dev_server/ui/dist/index.html

Large diffs are not rendered by default.

Loading
Loading