Skip to content
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
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ VITE_TEMPO_CREDENTIALS= # credentials for Tempo RPCs. format
VITE_TEMPO_ENV=localnet # node environment. values: localnet|devnet|testnet
VITE_TEMPO_LOG=false # whether to enable logs, if VITE_TEMPO_ENV=localnet. values: true|debug|error|trace|warn|info
VITE_TEMPO_TAG=latest # docker image tag, if VITE_TEMPO_ENV=localnet.
VITE_TEMPO_HTTP_LOG=false # whether to enable logs on HTTP RPC requests. values: true|false
VITE_TEMPO_ZONES=false # whether to run local Zone tests. values: true|false
VITE_TEMPO_HTTP_LOG=false # whether to enable logs on HTTP RPC requests. values: true|false
5 changes: 5 additions & 0 deletions test/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { join } from 'node:path'
import { defineConfig, type TestProjectConfiguration } from 'vitest/config'

const zoneNodeConfigured =
(process.env.VITE_TEMPO_ENV || 'localnet') !== 'localnet' ||
process.env.VITE_TEMPO_ZONES === 'true'

export default defineConfig({
test: {
alias: [
Expand Down Expand Up @@ -72,6 +76,7 @@ export default defineConfig({
extends: true,
test: {
name: 'tempo',
exclude: [zoneNodeConfigured ? '' : 'src/tempo/actions/zone.test.ts'],
include: ['src/tempo/**/*.test.ts'],
setupFiles: [join(__dirname, './src/tempo/setup.ts')],
globalSetup: [join(__dirname, './src/tempo/setup.global.ts')],
Expand Down
Loading