1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: update package json and remove empty exports (#2625)

* Removes exports statements in e2e tests
* Updates package.json to optionally use heroku url for e2e tests when
running locally
This commit is contained in:
Fredrik Strand Oseberg 2022-12-07 14:08:59 +01:00 committed by GitHub
parent d69ca0a508
commit 928b3515dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1 additions and 6 deletions

View File

@ -1,7 +1,5 @@
/// <reference types="cypress" />
export {};
const ENTERPRISE = Boolean(Cypress.env('ENTERPRISE'));
const randomId = String(Math.random()).split('.')[1];
const featureToggleName = `unleash-e2e-${randomId}`;

View File

@ -1,6 +1,5 @@
/// <reference types="cypress" />
export {};
const baseUrl = Cypress.config().baseUrl;
const randomId = String(Math.random()).split('.')[1];
const groupName = `unleash-e2e-${randomId}`;

View File

@ -10,7 +10,6 @@ import {
PA_USERS_GROUPS_TITLE_ID,
} from '../../../src/utils/testIds';
export {};
const baseUrl = Cypress.config().baseUrl;
const randomId = String(Math.random()).split('.')[1];
const groupAndProjectName = `group-e2e-${randomId}`;

View File

@ -1,6 +1,5 @@
/// <reference types="cypress" />
export {};
const randomId = String(Math.random()).split('.')[1];
const segmentName = `unleash-e2e-${randomId}`;

View File

@ -22,7 +22,7 @@
"fmt:check": "prettier src --check",
"ts:check": "tsc",
"e2e": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all",
"e2e:heroku": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=example@example.com",
"e2e:heroku": "yarn run cypress open --config baseUrl='https://unleash.herokuapp.com' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all",
"prepare": "yarn run build"
},
"devDependencies": {