Skip to content

Commit ffb916e

Browse files
committed
add prefix to VITE_*_ENABLED env variables
1 parent b0f9c4b commit ffb916e

File tree

16 files changed

+42
-41
lines changed

16 files changed

+42
-41
lines changed

.github/workflows/coverage.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ jobs:
4343

4444
- name: Test with coverage
4545
env:
46-
HTTPSERVER_ENABLED: 1
47-
SIMAPP50_ENABLED: 1
48-
SLOW_SIMAPP50_ENABLED: 1
49-
TENDERMINT_ENABLED: 1
50-
SOCKETSERVER_ENABLED: 1
46+
VITE_HTTPSERVER_ENABLED: 1
47+
VITE_SIMAPP50_ENABLED: 1
48+
VITE_SLOW_SIMAPP50_ENABLED: 1
49+
VITE_TENDERMINT_ENABLED: 1
50+
VITE_SOCKETSERVER_ENABLED: 1
5151
SKIP_BUILD: 1
52-
WASMD_ENABLED: 1
52+
VITE_WASMD_ENABLED: 1
5353
run: yarn coverage
5454

5555
- uses: codecov/codecov-action@v5

.github/workflows/test.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ jobs:
4343

4444
- name: Test
4545
env:
46-
HTTPSERVER_ENABLED: 1
47-
SIMAPP50_ENABLED: 1
48-
SLOW_SIMAPP50_ENABLED: 1
49-
TENDERMINT_ENABLED: 1
50-
SOCKETSERVER_ENABLED: 1
46+
VITE_HTTPSERVER_ENABLED: 1
47+
VITE_SIMAPP50_ENABLED: 1
48+
VITE_SLOW_SIMAPP50_ENABLED: 1
49+
VITE_TENDERMINT_ENABLED: 1
50+
VITE_SOCKETSERVER_ENABLED: 1
5151
SKIP_BUILD: 1
52-
WASMD_ENABLED: 1
52+
VITE_WASMD_ENABLED: 1
5353
run: yarn test-chrome
5454

5555
test:
@@ -92,14 +92,14 @@ jobs:
9292

9393
- name: Test
9494
env:
95-
HTTPSERVER_ENABLED: 1
96-
SIMAPP50_ENABLED: 1
97-
SLOW_SIMAPP50_ENABLED: 1
98-
TENDERMINT_ENABLED: 1
99-
SOCKETSERVER_ENABLED: 1
95+
VITE_HTTPSERVER_ENABLED: 1
96+
VITE_SIMAPP50_ENABLED: 1
97+
VITE_SLOW_SIMAPP50_ENABLED: 1
98+
VITE_TENDERMINT_ENABLED: 1
99+
VITE_SOCKETSERVER_ENABLED: 1
100100
SKIP_BUILD: 1
101-
WASMD_ENABLED: 1
102-
SES_ENABLED: 1
101+
VITE_WASMD_ENABLED: 1
102+
VITE_SES_ENABLED: 1
103103
run: yarn run test
104104

105105
test-backends:
@@ -142,12 +142,12 @@ jobs:
142142

143143
- name: Test
144144
env:
145-
HTTPSERVER_ENABLED: 1
146-
TENDERMINT_ENABLED: 1
147-
SOCKETSERVER_ENABLED: 1
145+
VITE_HTTPSERVER_ENABLED: 1
146+
VITE_TENDERMINT_ENABLED: 1
147+
VITE_SOCKETSERVER_ENABLED: 1
148148
SKIP_BUILD: 1
149-
WASMD_ENABLED: 1
149+
VITE_WASMD_ENABLED: 1
150150
run: |
151-
[ "${{ matrix.simapp }}" = "simapp47" ] && export SIMAPP47_ENABLED=1 SLOW_SIMAPP47_ENABLED=1
152-
[ "${{ matrix.simapp }}" = "simapp50" ] && export SIMAPP50_ENABLED=1 SLOW_SIMAPP50_ENABLED=1
151+
[ "${{ matrix.simapp }}" = "simapp47" ] && export VITE_SIMAPP47_ENABLED=1 VITE_SLOW_SIMAPP47_ENABLED=1
152+
[ "${{ matrix.simapp }}" = "simapp50" ] && export VITE_SIMAPP50_ENABLED=1 VITE_SLOW_SIMAPP50_ENABLED=1
153153
yarn run test

packages/cosmwasm-stargate/src/testutils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export const deployedIbcReflect = {
144144
],
145145
};
146146

147-
export const wasmdEnabled: boolean = !!globalThis.process?.env.WASMD_ENABLED;
147+
export const wasmdEnabled: boolean = !!globalThis.process?.env.VITE_WASMD_ENABLED;
148148

149149
/** Returns first element. Throws if array has a different length than 1. */
150150
export function fromOneElementArray<T>(elements: ArrayLike<T>): T {

packages/faucet-client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The tests need to be told you are running the faucet via an environmental
2727
variable:
2828

2929
```sh
30-
export FAUCET_ENABLED=1
30+
export VITE_FAUCET_ENABLED=1
3131
```
3232

3333
Finally run the tests from this directory:

packages/faucet-client/src/faucetclient.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FaucetClient } from "./faucetclient";
22

3-
const enabled = !!globalThis.process?.env.FAUCET_ENABLED;
3+
const enabled = !!globalThis.process?.env.VITE_FAUCET_ENABLED;
44

55
describe("FaucetClient", () => {
66
const faucetUrl = "http://localhost:8000";

packages/faucet/src/testutils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const simappEnabled = !!(
2-
globalThis.process?.env.SIMAPP47_ENABLED || globalThis.process?.env.SIMAPP50_ENABLED
2+
globalThis.process?.env.VITE_SIMAPP47_ENABLED || globalThis.process?.env.VITE_SIMAPP50_ENABLED
33
);

packages/ledger-amino/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ and execute:
6666

6767
```sh
6868
export LEDGER_ENABLED=1
69-
export SIMAPP50_ENABLED=1
69+
export VITE_SIMAPP50_ENABLED=1
7070
yarn test
7171
```
7272

packages/ledger-amino/src/testutils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const faucet = {
1111
export const ledgerEnabled: boolean = !!globalThis.process?.env.LEDGER_ENABLED;
1212

1313
export const simappEnabled: boolean = !!(
14-
globalThis.process?.env.SIMAPP47_ENABLED || globalThis.process?.env.SIMAPP50_ENABLED
14+
globalThis.process?.env.VITE_SIMAPP47_ENABLED || globalThis.process?.env.VITE_SIMAPP50_ENABLED
1515
);
1616

1717
export const simapp = {

packages/socket/src/queueingstreamingsocket.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ConnectionStatus, QueueingStreamingSocket } from "./queueingstreamingsocket";
22

3-
const enabled = !!globalThis.process?.env.SOCKETSERVER_ENABLED;
3+
const enabled = !!globalThis.process?.env.VITE_SOCKETSERVER_ENABLED;
44

55
describe("QueueingStreamingSocket", () => {
66
const socketServerUrl = "ws://localhost:4444/websocket";

packages/socket/src/reconnectingsocket.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type Exec = (command: string, callback: (error: null | (Error & { readonly code?
55

66
const getExec = async (): Promise<Exec | undefined> => (await import("child_process")).exec;
77

8-
const enabled = !!globalThis.process?.env.SOCKETSERVER_ENABLED;
8+
const enabled = !!globalThis.process?.env.VITE_SOCKETSERVER_ENABLED;
99

1010
describe("ReconnectingSocket", () => {
1111
const socketServerUrl = "ws://localhost:4444/websocket";

0 commit comments

Comments
 (0)