Skip to content

Commit

Permalink
fix: LaunchDevly UI: Add testing framework (#442)
Browse files Browse the repository at this point in the history
Add testing framework
  • Loading branch information
cdelst authored Oct 1, 2024
1 parent d2c7fff commit eac35d5
Show file tree
Hide file tree
Showing 16 changed files with 720 additions and 84 deletions.
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

0 comments on commit eac35d5

Please sign in to comment.