We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6063b92 commit 2d16a01Copy full SHA for 2d16a01
packages/e2e-tests/wdio.conf.base.ts
@@ -1,6 +1,8 @@
1
/* eslint-disable no-undef */
2
3
import extensionUtils from './src/utils/utils';
4
+import fs from 'fs';
5
+import { Logger } from './src/support/logger';
6
7
export const config: WebdriverIO.Config = {
8
runner: 'local',
@@ -140,5 +142,12 @@ export const config: WebdriverIO.Config = {
140
142
timeout: 200_000,
141
143
retry: 1,
144
noStrictFlaky: true
- } as WebdriverIO.CucumberOpts
145
+ } as WebdriverIO.CucumberOpts,
146
+ async onPrepare() {
147
+ if (!fs.existsSync('./src/support/walletConfiguration.ts')) {
148
+ Logger.log('walletConfiguration.ts is missing, decrypt the file first!');
149
+ // eslint-disable-next-line unicorn/no-process-exit
150
+ process.exit(1);
151
+ }
152
153
};
0 commit comments