Skip to content

Commit

Permalink
test: update env vars in test setup file
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranroneill committed Nov 21, 2023
1 parent 9ddc005 commit 8b36bd1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/setup.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
import 'mockzilla-webextension';
import { TextDecoder, TextEncoder } from 'util';
import { v4 as uuid } from 'uuid';

import { version } from '../package.json';
import { browser_specific_settings } from '../src/manifest.firefox.json';
// config
import { name, version } from '../package.json';

Object.defineProperty(global, '__EXTENSION_ID__', {
value: browser_specific_settings.gecko.id,
Object.defineProperty(global, '__APP_TITLE__', {
value: `${name}-test`,
});
Object.defineProperty(global, '__ENV__', {
value: 'test',
});
Object.defineProperty(global, '__VERSION__', {
value: `${version}-test`,
});
Object.defineProperty(global, '__WALLET_CONNECT_PROJECT_ID__', {
value: uuid(),
});
Object.defineProperty(global, 'TextDecoder', {
value: TextDecoder,
});
Expand Down

0 comments on commit 8b36bd1

Please sign in to comment.