Skip to content

Commit

Permalink
Merge pull request Expensify#37432 from kubabutkiewicz/ts-migration/c…
Browse files Browse the repository at this point in the history
…onfig

[TS migration] Migrate 'config.js' test to TypeScript
  • Loading branch information
stitesExpensify authored Mar 5, 2024
2 parents 9c2f146 + 7c0606f commit 478050e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libs/E2E/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import type {TEST_NAMES} from 'tests/e2e/config';
import type {ValueOf} from 'type-fest';

type SigninParams = {
email?: string;
};
Expand All @@ -19,7 +22,7 @@ type NetworkCacheMap = Record<
>;

type TestConfig = {
name: string;
name: ValueOf<typeof TEST_NAMES>;
[key: string]: string | {autoFocus: boolean};
};

Expand Down
3 changes: 3 additions & 0 deletions tests/e2e/config.js → tests/e2e/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- if the first value is '' nullish coalescing will return '' so leaving || for safty
const OUTPUT_DIR = process.env.WORKING_DIRECTORY || './tests/e2e/results';

// add your test name here …
Expand Down Expand Up @@ -88,3 +89,5 @@ export default {
},
},
};

export {TEST_NAMES};

0 comments on commit 478050e

Please sign in to comment.